Chromium Code Reviews| Index: media/ffmpeg/ffmpeg_common.cc |
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc |
| index 72b31252f8508df48cc10c7d2d832264525233cd..8f3d1de5c0573df9815f0d568ae2b19e167b473e 100644 |
| --- a/media/ffmpeg/ffmpeg_common.cc |
| +++ b/media/ffmpeg/ffmpeg_common.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/basictypes.h" |
| #include "base/logging.h" |
| +#include "base/metrics/histogram.h" |
| #include "media/base/decoder_buffer.h" |
| #include "media/base/video_frame.h" |
| #include "media/base/video_util.h" |
| @@ -369,6 +370,12 @@ void AVStreamToVideoDecoderConfig( |
| gfx::Size natural_size = GetNaturalSize( |
| visible_rect.size(), aspect_ratio.num, aspect_ratio.den); |
| + if (record_stats) { |
| + UMA_HISTOGRAM_ENUMERATION("Media.VideoColorRange", |
| + stream->codec->color_range, |
| + AVCOL_RANGE_NB + 1); |
|
scherkus (not reviewing)
2013/10/29 00:36:31
should this be AVCOL_RANGE_NB as opposed to AVCOL_
|
| + } |
| + |
| VideoFrame::Format format = PixelFormatToVideoFormat(stream->codec->pix_fmt); |
| if (codec == kCodecVP9) { |
| // TODO(tomfinegan): libavcodec doesn't know about VP9. |