Lines Matching refs:state
106 static void TranscodeMediaFile(benchmark::State& state, const std::string& srcFileName, in TranscodeMediaFile() argument
135 state.SkipWithError("Unable to open source file"); in TranscodeMediaFile()
139 state.SkipWithError("Unable to open destination file"); in TranscodeMediaFile()
143 for (auto _ : state) { in TranscodeMediaFile()
149 state.SkipWithError("Unable to configure transcoder source"); in TranscodeMediaFile()
155 state.SkipWithError("Unable to configure transcoder destination"); in TranscodeMediaFile()
166 state.SkipWithError("Source track format does not have MIME type"); in TranscodeMediaFile()
173 state.counters[PARAM_VIDEO_FRAME_RATE] = benchmark::Counter( in TranscodeMediaFile()
177 state.SkipWithError("Video source track format does not have width"); in TranscodeMediaFile()
181 state.SkipWithError("Video source track format does not have height"); in TranscodeMediaFile()
206 state.SkipWithError("Unable to configure track"); in TranscodeMediaFile()
213 state.SkipWithError("Unable to start transcoder"); in TranscodeMediaFile()
219 state.SkipWithError("Transcoder timed out"); in TranscodeMediaFile()
223 state.SkipWithError("Transcoder error when running"); in TranscodeMediaFile()
229 state.SetLabel(srcFileName + "," + in TranscodeMediaFile()
250 static void TranscodeMediaFile(benchmark::State& state, const std::string& srcFileName, in TranscodeMediaFile() argument
254 TranscodeMediaFile(state, srcFileName, dstFileName, in TranscodeMediaFile()
276 static void BM_TranscodeAvc2AvcAudioVideo2AudioVideo(benchmark::State& state) { in BM_TranscodeAvc2AvcAudioVideo2AudioVideo() argument
277 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps_aac.mp4", in BM_TranscodeAvc2AvcAudioVideo2AudioVideo()
282 static void BM_TranscodeAvc2AvcVideo2Video(benchmark::State& state) { in BM_TranscodeAvc2AvcVideo2Video() argument
283 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps.mp4", in BM_TranscodeAvc2AvcVideo2Video()
288 static void BM_TranscodeAvc2AvcAV2AVMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AVMaxOperatingRate() argument
289 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps_aac.mp4", in BM_TranscodeAvc2AvcAV2AVMaxOperatingRate()
294 static void BM_TranscodeAvc2AvcV2VMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcV2VMaxOperatingRate() argument
295 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps.mp4", in BM_TranscodeAvc2AvcV2VMaxOperatingRate()
300 static void BM_TranscodeAvc2AvcAV2AV720P(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AV720P() argument
301 TranscodeMediaFile(state, "video_1280x720_3648frame_h264_16Mbps_30fps_aac.mp4", in BM_TranscodeAvc2AvcAV2AV720P()
306 static void BM_TranscodeAvc2AvcAV2AV720PMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AV720PMaxOperatingRate() argument
307 TranscodeMediaFile(state, "video_1280x720_3648frame_h264_16Mbps_30fps_aac.mp4", in BM_TranscodeAvc2AvcAV2AV720PMaxOperatingRate()
313 static void BM_TranscodeHevc2AvcAudioVideo2AudioVideo(benchmark::State& state) { in BM_TranscodeHevc2AvcAudioVideo2AudioVideo() argument
314 TranscodeMediaFile(state, "video_1920x1080_3863frame_hevc_4Mbps_30fps_aac.mp4", in BM_TranscodeHevc2AvcAudioVideo2AudioVideo()
319 static void BM_TranscodeHevc2AvcVideo2Video(benchmark::State& state) { in BM_TranscodeHevc2AvcVideo2Video() argument
320 TranscodeMediaFile(state, "video_1920x1080_3863frame_hevc_4Mbps_30fps.mp4", in BM_TranscodeHevc2AvcVideo2Video()
325 static void BM_TranscodeHevc2AvcAV2AVMaxOperatingRate(benchmark::State& state) { in BM_TranscodeHevc2AvcAV2AVMaxOperatingRate() argument
326 TranscodeMediaFile(state, "video_1920x1080_3863frame_hevc_4Mbps_30fps_aac.mp4", in BM_TranscodeHevc2AvcAV2AVMaxOperatingRate()
331 static void BM_TranscodeHevc2AvcV2VMaxOperatingRate(benchmark::State& state) { in BM_TranscodeHevc2AvcV2VMaxOperatingRate() argument
332 TranscodeMediaFile(state, "video_1920x1080_3863frame_hevc_4Mbps_30fps.mp4", in BM_TranscodeHevc2AvcV2VMaxOperatingRate()
337 static void BM_TranscodeHevc2AvcAV2AV720P(benchmark::State& state) { in BM_TranscodeHevc2AvcAV2AV720P() argument
338 TranscodeMediaFile(state, "video_1280x720_3863frame_hevc_16Mbps_30fps_aac.mp4", in BM_TranscodeHevc2AvcAV2AV720P()
343 static void BM_TranscodeHevc2AvcAV2AV720PMaxOperatingRate(benchmark::State& state) { in BM_TranscodeHevc2AvcAV2AV720PMaxOperatingRate() argument
344 TranscodeMediaFile(state, "video_1280x720_3863frame_hevc_16Mbps_30fps_aac.mp4", in BM_TranscodeHevc2AvcAV2AV720PMaxOperatingRate()
351 static void BM_TranscodeAudioVideoPassthrough(benchmark::State& state) { in BM_TranscodeAudioVideoPassthrough() argument
352 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps_aac.mp4", in BM_TranscodeAudioVideoPassthrough()
356 static void BM_TranscodeVideoPassthrough(benchmark::State& state) { in BM_TranscodeVideoPassthrough() argument
357 TranscodeMediaFile(state, "video_1920x1080_3648frame_h264_22Mbps_30fps.mp4", in BM_TranscodeVideoPassthrough()
368 static void BM_1920x1080_Avc22Mbps2Avc12Mbps(benchmark::State& state) { in BM_1920x1080_Avc22Mbps2Avc12Mbps() argument
369 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_22Mbps.mp4", in BM_1920x1080_Avc22Mbps2Avc12Mbps()
377 static void BM_1920x1080_Avc15Mbps2Avc8Mbps(benchmark::State& state) { in BM_1920x1080_Avc15Mbps2Avc8Mbps() argument
378 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps.mp4", in BM_1920x1080_Avc15Mbps2Avc8Mbps()
386 static void BM_1920x1080_Avc15Mbps2AvcPassthrough(benchmark::State& state) { in BM_1920x1080_Avc15Mbps2AvcPassthrough() argument
387 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps.mp4", in BM_1920x1080_Avc15Mbps2AvcPassthrough()
392 static void BM_1920x1080_Avc15MbpsAac2Avc8Mbps(benchmark::State& state) { in BM_1920x1080_Avc15MbpsAac2Avc8Mbps() argument
393 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps_aac.mp4", in BM_1920x1080_Avc15MbpsAac2Avc8Mbps()
401 static void BM_1920x1080_Avc15MbpsAac2Avc8MbpsAac(benchmark::State& state) { in BM_1920x1080_Avc15MbpsAac2Avc8MbpsAac() argument
402 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps_aac.mp4", in BM_1920x1080_Avc15MbpsAac2Avc8MbpsAac()
410 static void BM_1920x1080_Avc15MbpsAac2AvcPassthrough(benchmark::State& state) { in BM_1920x1080_Avc15MbpsAac2AvcPassthrough() argument
411 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps_aac.mp4", in BM_1920x1080_Avc15MbpsAac2AvcPassthrough()
416 static void BM_1920x1080_Avc15MbpsAac2AvcAacPassthrough(benchmark::State& state) { in BM_1920x1080_Avc15MbpsAac2AvcAacPassthrough() argument
417 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_h264_15Mbps_aac.mp4", in BM_1920x1080_Avc15MbpsAac2AvcAacPassthrough()
422 static void BM_1920x1080_Hevc17Mbps2Hevc8Mbps(benchmark::State& state) { in BM_1920x1080_Hevc17Mbps2Hevc8Mbps() argument
423 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_hevc_17Mbps.mp4", in BM_1920x1080_Hevc17Mbps2Hevc8Mbps()
431 static void BM_1920x1080_Hevc17Mbps2Avc12Mbps(benchmark::State& state) { in BM_1920x1080_Hevc17Mbps2Avc12Mbps() argument
432 TranscodeMediaFile(state, "tx_bm_1920_1080_30fps_hevc_17Mbps.mp4", in BM_1920x1080_Hevc17Mbps2Avc12Mbps()
440 static void BM_1920x1080_60fps_Hevc28Mbps2Avc15Mbps(benchmark::State& state) { in BM_1920x1080_60fps_Hevc28Mbps2Avc15Mbps() argument
441 TranscodeMediaFile(state, "tx_bm_1920_1080_60fps_hevc_28Mbps.mp4", in BM_1920x1080_60fps_Hevc28Mbps2Avc15Mbps()
449 static void BM_1280x720_Avc10Mbps2Avc4Mbps(benchmark::State& state) { in BM_1280x720_Avc10Mbps2Avc4Mbps() argument
450 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps.mp4", in BM_1280x720_Avc10Mbps2Avc4Mbps()
458 static void BM_1280x720_Avc10Mbps2AvcPassthrough(benchmark::State& state) { in BM_1280x720_Avc10Mbps2AvcPassthrough() argument
459 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps.mp4", in BM_1280x720_Avc10Mbps2AvcPassthrough()
464 static void BM_1280x720_Avc10MbpsAac2Avc4Mbps(benchmark::State& state) { in BM_1280x720_Avc10MbpsAac2Avc4Mbps() argument
465 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps_aac.mp4", in BM_1280x720_Avc10MbpsAac2Avc4Mbps()
473 static void BM_1280x720_Avc10MbpsAac2Avc4MbpsAac(benchmark::State& state) { in BM_1280x720_Avc10MbpsAac2Avc4MbpsAac() argument
474 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps_aac.mp4", in BM_1280x720_Avc10MbpsAac2Avc4MbpsAac()
482 static void BM_1280x720_Avc10MbpsAac2AvcPassthrough(benchmark::State& state) { in BM_1280x720_Avc10MbpsAac2AvcPassthrough() argument
483 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps_aac.mp4", in BM_1280x720_Avc10MbpsAac2AvcPassthrough()
488 static void BM_1280x720_Avc10MbpsAac2AvcAacPassthrough(benchmark::State& state) { in BM_1280x720_Avc10MbpsAac2AvcAacPassthrough() argument
489 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_h264_10Mbps_aac.mp4", in BM_1280x720_Avc10MbpsAac2AvcAacPassthrough()
494 static void BM_1280x720_Hevc8Mbps2Avc4Mbps(benchmark::State& state) { in BM_1280x720_Hevc8Mbps2Avc4Mbps() argument
495 TranscodeMediaFile(state, "tx_bm_1280_720_30fps_hevc_8Mbps.mp4", in BM_1280x720_Hevc8Mbps2Avc4Mbps()
503 static void BM_1080x1920_Avc15Mbps2Avc8Mbps(benchmark::State& state) { in BM_1080x1920_Avc15Mbps2Avc8Mbps() argument
504 TranscodeMediaFile(state, "tx_bm_1080_1920_30fps_h264_15Mbps.mp4", in BM_1080x1920_Avc15Mbps2Avc8Mbps()
512 static void BM_720x1280_Avc10Mbps2Avc4Mbps(benchmark::State& state) { in BM_720x1280_Avc10Mbps2Avc4Mbps() argument
513 TranscodeMediaFile(state, "tx_bm_720_1280_30fps_h264_10Mbps.mp4", in BM_720x1280_Avc10Mbps2Avc4Mbps()
521 static void BM_3840x2160_Hevc42Mbps2Avc20Mbps(benchmark::State& state) { in BM_3840x2160_Hevc42Mbps2Avc20Mbps() argument
522 TranscodeMediaFile(state, "tx_bm_3840_2160_30fps_hevc_42Mbps.mp4", in BM_3840x2160_Hevc42Mbps2Avc20Mbps()