| 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 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 VideoDecoderConfig(VideoCodec codec, | 33 VideoDecoderConfig(VideoCodec codec, |
| 34 VideoCodecProfile profile, | 34 VideoCodecProfile profile, |
| 35 VideoPixelFormat format, | 35 VideoPixelFormat format, |
| 36 ColorSpace color_space, | 36 ColorSpace color_space, |
| 37 const gfx::Size& coded_size, | 37 const gfx::Size& coded_size, |
| 38 const gfx::Rect& visible_rect, | 38 const gfx::Rect& visible_rect, |
| 39 const gfx::Size& natural_size, | 39 const gfx::Size& natural_size, |
| 40 const std::vector<uint8_t>& extra_data, | 40 const std::vector<uint8_t>& extra_data, |
| 41 bool is_encrypted); | 41 bool is_encrypted); |
| 42 | 42 |
| 43 VideoDecoderConfig(const VideoDecoderConfig& other); |
| 44 |
| 43 ~VideoDecoderConfig(); | 45 ~VideoDecoderConfig(); |
| 44 | 46 |
| 45 // Resets the internal state of this object. | 47 // Resets the internal state of this object. |
| 46 void Initialize(VideoCodec codec, | 48 void Initialize(VideoCodec codec, |
| 47 VideoCodecProfile profile, | 49 VideoCodecProfile profile, |
| 48 VideoPixelFormat format, | 50 VideoPixelFormat format, |
| 49 ColorSpace color_space, | 51 ColorSpace color_space, |
| 50 const gfx::Size& coded_size, | 52 const gfx::Size& coded_size, |
| 51 const gfx::Rect& visible_rect, | 53 const gfx::Rect& visible_rect, |
| 52 const gfx::Size& natural_size, | 54 const gfx::Size& natural_size, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 bool is_encrypted_; | 118 bool is_encrypted_; |
| 117 | 119 |
| 118 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler | 120 // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
| 119 // generated copy constructor and assignment operator. Since the extra data is | 121 // generated copy constructor and assignment operator. Since the extra data is |
| 120 // typically small, the performance impact is minimal. | 122 // typically small, the performance impact is minimal. |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 } // namespace media | 125 } // namespace media |
| 124 | 126 |
| 125 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ | 127 #endif // MEDIA_BASE_VIDEO_DECODER_CONFIG_H_ |
| OLD | NEW |