Chromium Code Reviews| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 const EncryptionScheme& encryption_scheme) { | 61 const EncryptionScheme& encryption_scheme) { |
| 62 Initialize(codec, profile, format, color_space, coded_size, visible_rect, | 62 Initialize(codec, profile, format, color_space, coded_size, visible_rect, |
| 63 natural_size, extra_data, encryption_scheme); | 63 natural_size, extra_data, encryption_scheme); |
| 64 } | 64 } |
| 65 | 65 |
| 66 VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) = | 66 VideoDecoderConfig::VideoDecoderConfig(const VideoDecoderConfig& other) = |
| 67 default; | 67 default; |
| 68 | 68 |
| 69 VideoDecoderConfig::~VideoDecoderConfig() {} | 69 VideoDecoderConfig::~VideoDecoderConfig() {} |
| 70 | 70 |
| 71 void VideoDecoderConfig::set_extra_data( | |
|
DaleCurtis
2016/10/25 00:18:46
Must be inlined to use hacker_style(). We have no
sandersd (OOO until July 31)
2016/10/25 20:58:41
Done.
| |
| 72 const std::vector<uint8_t>& extra_data) { | |
| 73 extra_data_ = extra_data; | |
| 74 } | |
| 75 | |
| 71 void VideoDecoderConfig::set_color_space_info( | 76 void VideoDecoderConfig::set_color_space_info( |
| 72 const gfx::ColorSpace& color_space_info) { | 77 const gfx::ColorSpace& color_space_info) { |
| 73 color_space_info_ = color_space_info; | 78 color_space_info_ = color_space_info; |
| 74 } | 79 } |
| 75 | 80 |
| 76 gfx::ColorSpace VideoDecoderConfig::color_space_info() const { | 81 gfx::ColorSpace VideoDecoderConfig::color_space_info() const { |
| 77 return color_space_info_; | 82 return color_space_info_; |
| 78 } | 83 } |
| 79 | 84 |
| 80 void VideoDecoderConfig::set_hdr_metadata(const HDRMetadata& hdr_metadata) { | 85 void VideoDecoderConfig::set_hdr_metadata(const HDRMetadata& hdr_metadata) { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y() | 151 << " visible rect: [" << visible_rect().x() << "," << visible_rect().y() |
| 147 << "," << visible_rect().width() << "," << visible_rect().height() << "]" | 152 << "," << visible_rect().width() << "," << visible_rect().height() << "]" |
| 148 << " natural size: [" << natural_size().width() << "," | 153 << " natural size: [" << natural_size().width() << "," |
| 149 << natural_size().height() << "]" | 154 << natural_size().height() << "]" |
| 150 << " has extra data? " << (extra_data().empty() ? "false" : "true") | 155 << " has extra data? " << (extra_data().empty() ? "false" : "true") |
| 151 << " encrypted? " << (is_encrypted() ? "true" : "false"); | 156 << " encrypted? " << (is_encrypted() ? "true" : "false"); |
| 152 return s.str(); | 157 return s.str(); |
| 153 } | 158 } |
| 154 | 159 |
| 155 } // namespace media | 160 } // namespace media |
| OLD | NEW |