summaryrefslogtreecommitdiffstats
path: root/media/base/video_decoder_config.cc
diff options
context:
space:
mode:
authoracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-10 00:29:40 +0000
committeracolwell@chromium.org <acolwell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-10 00:29:40 +0000
commit4b4116d2aca7ea0b1756044b8e26fe01e59ddf5a (patch)
tree511ca8d5b1b2140c1f73bd6174440c59f4f2e647 /media/base/video_decoder_config.cc
parent97cf0b0418cb481a63de19597d966f85ce6af6c9 (diff)
downloadchromium_src-4b4116d2aca7ea0b1756044b8e26fe01e59ddf5a.zip
chromium_src-4b4116d2aca7ea0b1756044b8e26fe01e59ddf5a.tar.gz
chromium_src-4b4116d2aca7ea0b1756044b8e26fe01e59ddf5a.tar.bz2
Revert 116957 - Move WebM specific code from ChunkDemuxer to WebMStreamParser.
Created StreamParser interface to allow ChunkDemuxer to support formats other than WebM. BUG=108329 TEST=Existing ChunkDemuxer unittests Reverting because windows shared build broke. Review URL: http://codereview.chromium.org/9018019 TBR=acolwell@chromium.org Review URL: http://codereview.chromium.org/9149018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_decoder_config.cc')
-rw-r--r--media/base/video_decoder_config.cc38
1 files changed, 10 insertions, 28 deletions
diff --git a/media/base/video_decoder_config.cc b/media/base/video_decoder_config.cc
index 4966dfb..07bf9a5 100644
--- a/media/base/video_decoder_config.cc
+++ b/media/base/video_decoder_config.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -37,7 +37,7 @@ VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec,
Initialize(codec, profile, format, coded_size, visible_rect,
frame_rate_numerator, frame_rate_denominator,
aspect_ratio_numerator, aspect_ratio_denominator,
- extra_data, extra_data_size, true);
+ extra_data, extra_data_size);
}
VideoDecoderConfig::~VideoDecoderConfig() {}
@@ -74,19 +74,16 @@ void VideoDecoderConfig::Initialize(VideoCodec codec,
int aspect_ratio_numerator,
int aspect_ratio_denominator,
const uint8* extra_data,
- size_t extra_data_size,
- bool record_stats) {
+ size_t extra_data_size) {
CHECK((extra_data_size != 0) == (extra_data != NULL));
- if (record_stats) {
- UMA_HISTOGRAM_ENUMERATION("Media.VideoCodec", codec, kVideoCodecMax + 1);
- UMA_HISTOGRAM_ENUMERATION("Media.VideoCodecProfile", profile,
- VIDEO_CODEC_PROFILE_MAX + 1);
- UMA_HISTOGRAM_COUNTS_10000("Media.VideoCodedWidth", coded_size.width());
- UmaHistogramAspectRatio("Media.VideoCodedAspectRatio", coded_size);
- UMA_HISTOGRAM_COUNTS_10000("Media.VideoVisibleWidth", visible_rect.width());
- UmaHistogramAspectRatio("Media.VideoVisibleAspectRatio", visible_rect);
- }
+ UMA_HISTOGRAM_ENUMERATION("Media.VideoCodec", codec, kVideoCodecMax + 1);
+ UMA_HISTOGRAM_ENUMERATION("Media.VideoCodecProfile", profile,
+ VIDEO_CODEC_PROFILE_MAX + 1);
+ UMA_HISTOGRAM_COUNTS_10000("Media.VideoCodedWidth", coded_size.width());
+ UmaHistogramAspectRatio("Media.VideoCodedAspectRatio", coded_size);
+ UMA_HISTOGRAM_COUNTS_10000("Media.VideoVisibleWidth", visible_rect.width());
+ UmaHistogramAspectRatio("Media.VideoVisibleAspectRatio", visible_rect);
codec_ = codec;
profile_ = profile;
@@ -123,21 +120,6 @@ void VideoDecoderConfig::Initialize(VideoCodec codec,
natural_size_.SetSize(width & ~1, height);
}
-void VideoDecoderConfig::CopyFrom(const VideoDecoderConfig& video_config) {
- Initialize(video_config.codec(),
- video_config.profile(),
- video_config.format(),
- video_config.coded_size(),
- video_config.visible_rect(),
- video_config.frame_rate_numerator(),
- video_config.frame_rate_denominator(),
- video_config.aspect_ratio_numerator(),
- video_config.aspect_ratio_denominator(),
- video_config.extra_data(),
- video_config.extra_data_size(),
- false);
-}
-
bool VideoDecoderConfig::IsValidConfig() const {
return codec_ != kUnknownVideoCodec &&
format_ != VideoFrame::INVALID &&