| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/video_decoder_config.h" | 5 #include "media/base/video_decoder_config.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 VideoDecoderConfig::VideoDecoderConfig() | 12 VideoDecoderConfig::VideoDecoderConfig() |
| 13 : codec_(kUnknownVideoCodec), | 13 : codec_(kUnknownVideoCodec), |
| 14 profile_(VIDEO_CODEC_PROFILE_UNKNOWN), | 14 profile_(VIDEO_CODEC_PROFILE_UNKNOWN), |
| 15 format_(VideoFrame::INVALID), | 15 format_(VideoFrame::INVALID), |
| 16 extra_data_size_(0) { | 16 extra_data_size_(0), |
| 17 is_encrypted_(false) { |
| 17 } | 18 } |
| 18 | 19 |
| 19 VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec, | 20 VideoDecoderConfig::VideoDecoderConfig(VideoCodec codec, |
| 20 VideoCodecProfile profile, | 21 VideoCodecProfile profile, |
| 21 VideoFrame::Format format, | 22 VideoFrame::Format format, |
| 22 const gfx::Size& coded_size, | 23 const gfx::Size& coded_size, |
| 23 const gfx::Rect& visible_rect, | 24 const gfx::Rect& visible_rect, |
| 24 const gfx::Size& natural_size, | 25 const gfx::Size& natural_size, |
| 25 const uint8* extra_data, | 26 const uint8* extra_data, |
| 26 size_t extra_data_size, | 27 size_t extra_data_size, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 size_t VideoDecoderConfig::extra_data_size() const { | 177 size_t VideoDecoderConfig::extra_data_size() const { |
| 177 return extra_data_size_; | 178 return extra_data_size_; |
| 178 } | 179 } |
| 179 | 180 |
| 180 bool VideoDecoderConfig::is_encrypted() const { | 181 bool VideoDecoderConfig::is_encrypted() const { |
| 181 return is_encrypted_; | 182 return is_encrypted_; |
| 182 } | 183 } |
| 183 | 184 |
| 184 } // namespace media | 185 } // namespace media |
| OLD | NEW |