Unverified Commit 1aa5db25 authored by Yuting Jiang's avatar Yuting Jiang Committed by GitHub
Browse files

Benchmarks: bug fix - use absolute path for input file in DirectXEncodingLatency (#554)

**Description**
use absolute path for input file DirectXEncodingLatency.
parent 296cd091
...@@ -98,11 +98,11 @@ def _preprocess(self): ...@@ -98,11 +98,11 @@ def _preprocess(self):
command += f' -HEIGHT {self._args.height}' command += f' -HEIGHT {self._args.height}'
command += f' -WIDTH {self._args.width}' command += f' -WIDTH {self._args.width}'
if self._args.input_file is not None: if self._args.input_file is not None:
command += f' -INPUT {self._args.input_file}' command += f' -INPUT {os.path.abspath(self._args.input_file)}'
else: else:
if not os.path.exists(f'{self._test_file}'): if not os.path.exists(f'{self._test_file}'):
create_nv12_file(self._test_file, self._args.frames, self._args.width, self._args.height) create_nv12_file(self._test_file, self._args.frames, self._args.width, self._args.height)
command += f' -INPUT {self._test_file}' command += f' -INPUT {os.path.abspath(self._test_file)}'
if self._args.output_file is not None: if self._args.output_file is not None:
command += f' -OUTPUT {self._args.output_file}' command += f' -OUTPUT {self._args.output_file}'
command += f' -OUTPUT_HEIGHT {self._args.output_height}' command += f' -OUTPUT_HEIGHT {self._args.output_height}'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment