Lines Matching refs:options
57 options, _ = parser.parse_args()
59 if not options.ref_video:
61 if not os.path.exists(options.ref_video):
62 parser.error('Cannot find the reference video at %s' % options.ref_video)
64 if not options.test_video:
66 if not os.path.exists(options.test_video):
67 parser.error('Cannot find the test video at %s' % options.test_video)
69 if not options.frame_analyzer:
71 if not os.path.exists(options.frame_analyzer):
73 options.frame_analyzer)
75 if options.vmaf and not options.vmaf_model:
78 return options
88 def _RunFrameAnalyzer(options, yuv_directory=None): argument
91 options.frame_analyzer,
92 '--label=%s' % options.label,
93 '--reference_file=%s' % options.ref_video,
94 '--test_file=%s' % options.test_video,
95 '--width=%d' % options.yuv_frame_width,
96 '--height=%d' % options.yuv_frame_height,
98 if options.chartjson_result_file:
99 cmd.append('--chartjson_result_file=%s' % options.chartjson_result_file)
100 if options.aligned_output_file:
101 cmd.append('--aligned_output_file=%s' % options.aligned_output_file)
112 def _RunVmaf(options, yuv_directory, logfile): argument
119 options.vmaf,
121 str(options.yuv_frame_width),
122 str(options.yuv_frame_height),
125 options.vmaf_model,
131 if options.vmaf_phone_model:
147 print('RESULT VMAF: %s=' % options.label, vmaf_scores)
164 options = _ParseArgs()
166 if options.vmaf:
173 if _RunFrameAnalyzer(options, yuv_directory=yuv_directory) != 0:
177 return _RunVmaf(options, yuv_directory, vmaf_logfile)
182 return _RunFrameAnalyzer(options)