| Index: media/ffmpeg/ffmpeg_common.cc
|
| diff --git a/media/ffmpeg/ffmpeg_common.cc b/media/ffmpeg/ffmpeg_common.cc
|
| index 72b31252f8508df48cc10c7d2d832264525233cd..7f3411789916cb4b58d3ce491ce2d97c9314d27a 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);
|
| + }
|
| +
|
| VideoFrame::Format format = PixelFormatToVideoFormat(stream->codec->pix_fmt);
|
| if (codec == kCodecVP9) {
|
| // TODO(tomfinegan): libavcodec doesn't know about VP9.
|
|
|