Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1338)

Side by Side Diff: webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc

Issue 2509273002: Unify VideoCodecType to/from string functionality (Closed)
Patch Set: Rebase and update unknown string in WebRtcVideoEncoderFactory Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 config.name.c_str(), config.description.c_str(), config.test_number, 405 config.name.c_str(), config.description.c_str(), config.test_number,
406 config.input_filename.c_str(), config.output_filename.c_str(), 406 config.input_filename.c_str(), config.output_filename.c_str(),
407 config.output_dir.c_str(), config.networking_config.packet_size_in_bytes, 407 config.output_dir.c_str(), config.networking_config.packet_size_in_bytes,
408 config.networking_config.max_payload_size_in_bytes, 408 config.networking_config.max_payload_size_in_bytes,
409 PacketLossModeToStr(config.networking_config.packet_loss_mode), 409 PacketLossModeToStr(config.networking_config.packet_loss_mode),
410 config.networking_config.packet_loss_probability, 410 config.networking_config.packet_loss_probability,
411 config.networking_config.packet_loss_burst_length, 411 config.networking_config.packet_loss_burst_length,
412 ExcludeFrameTypesToStr(config.exclude_frame_types), 412 ExcludeFrameTypesToStr(config.exclude_frame_types),
413 config.frame_length_in_bytes, config.use_single_core ? "True " : "False", 413 config.frame_length_in_bytes, config.use_single_core ? "True " : "False",
414 config.keyframe_interval, 414 config.keyframe_interval,
415 webrtc::test::VideoCodecTypeToStr(config.codec_settings->codecType), 415 CodecTypeToPayloadName(config.codec_settings->codecType)
416 .value_or("Unknown"),
416 config.codec_settings->width, config.codec_settings->height, 417 config.codec_settings->width, config.codec_settings->height,
417 config.codec_settings->startBitrate); 418 config.codec_settings->startBitrate);
418 printf( 419 printf(
419 "frame_data_types = {" 420 "frame_data_types = {"
420 "'frame_number': ('number', 'Frame number'),\n" 421 "'frame_number': ('number', 'Frame number'),\n"
421 "'encoding_successful': ('boolean', 'Encoding successful?'),\n" 422 "'encoding_successful': ('boolean', 'Encoding successful?'),\n"
422 "'decoding_successful': ('boolean', 'Decoding successful?'),\n" 423 "'decoding_successful': ('boolean', 'Decoding successful?'),\n"
423 "'encode_time': ('number', 'Encode time (us)'),\n" 424 "'encode_time': ('number', 'Encode time (us)'),\n"
424 "'decode_time': ('number', 'Decode time (us)'),\n" 425 "'decode_time': ('number', 'Decode time (us)'),\n"
425 "'encode_return_code': ('number', 'Encode return code'),\n" 426 "'encode_return_code': ('number', 'Encode return code'),\n"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 } 545 }
545 if (FLAGS_python) { 546 if (FLAGS_python) {
546 PrintPythonOutput(config, stats, ssim_result, psnr_result); 547 PrintPythonOutput(config, stats, ssim_result, psnr_result);
547 } 548 }
548 delete processor; 549 delete processor;
549 delete encoder; 550 delete encoder;
550 delete decoder; 551 delete decoder;
551 Log("Quality test finished!"); 552 Log("Quality test finished!");
552 return 0; 553 return 0;
553 } 554 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor.cc ('k') | webrtc/modules/video_coding/utility/ivf_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698