diff options
author | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 18:41:35 +0000 |
---|---|---|
committer | fbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 18:41:35 +0000 |
commit | 2aa53e4333637d98c7acedd861e82630f68a9343 (patch) | |
tree | 019a3a473941e1ff21df607ec33fa7ca2f8a6927 /media/tools/media_bench | |
parent | 29653959572251919be4b9658a278b2c6592f2a2 (diff) | |
download | chromium_src-2aa53e4333637d98c7acedd861e82630f68a9343.zip chromium_src-2aa53e4333637d98c7acedd861e82630f68a9343.tar.gz chromium_src-2aa53e4333637d98c7acedd861e82630f68a9343.tar.bz2 |
media_bench output width and height of media
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4128006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools/media_bench')
-rw-r--r-- | media/tools/media_bench/media_bench.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc index 37d7b45..67e4569 100644 --- a/media/tools/media_bench/media_bench.cc +++ b/media/tools/media_bench/media_bench.cc @@ -53,7 +53,7 @@ const char kLoop[] = "loop"; #if defined(OS_WIN) // Enable to build with exception handler -//#define ENABLE_WINDOWS_EXCEPTIONS 1 +// #define ENABLE_WINDOWS_EXCEPTIONS 1 #ifdef ENABLE_WINDOWS_EXCEPTIONS // warning: disable warning about exception handler. @@ -367,6 +367,10 @@ int main(int argc, const char** argv) { return 1; } + // Remember size of video. + int video_width = codec_context->width; + int video_height = codec_context->height; + // Stats collector. EnterTimingSection(); std::vector<double> decode_times; @@ -556,8 +560,9 @@ int main(int argc, const char** argv) { log_out->setf(std::ios::fixed); log_out->precision(2); *log_out << std::endl; - *log_out << " Frames:" << std::setw(11) << frames - << std::endl; + *log_out << " Frames:" << std::setw(11) << frames << std::endl; + *log_out << " Width:" << std::setw(11) << video_width << std::endl; + *log_out << " Height:" << std::setw(11) << video_height << std::endl; *log_out << " Total:" << std::setw(11) << total.InMillisecondsF() << " ms" << std::endl; *log_out << " Summation:" << std::setw(11) << sum |