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 WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ | 5 #ifndef WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ |
6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ | 6 #define WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ |
7 | 7 |
8 #if defined(_MSC_VER) | 8 #if defined(_MSC_VER) |
9 typedef unsigned char uint8_t; | 9 typedef unsigned char uint8_t; |
10 typedef unsigned int uint32_t; | 10 typedef unsigned int uint32_t; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 enum VideoCodecProfile { | 159 enum VideoCodecProfile { |
160 kUnknownVideoCodecProfile = 0, | 160 kUnknownVideoCodecProfile = 0, |
161 kVp8ProfileMain | 161 kVp8ProfileMain |
162 }; | 162 }; |
163 | 163 |
164 VideoDecoderConfig() | 164 VideoDecoderConfig() |
165 : codec(kUnknownVideoCodec), | 165 : codec(kUnknownVideoCodec), |
166 profile(kUnknownVideoCodecProfile), | 166 profile(kUnknownVideoCodecProfile), |
167 format(kUnknownVideoFormat), | 167 format(kUnknownVideoFormat), |
168 extra_data(NULL), | 168 extra_data(NULL), |
169 extra_data_size() {} | 169 extra_data_size(0) {} |
170 | 170 |
171 VideoCodec codec; | 171 VideoCodec codec; |
172 VideoCodecProfile profile; | 172 VideoCodecProfile profile; |
173 VideoFormat format; | 173 VideoFormat format; |
174 | 174 |
175 // Width and height of video frame immediately post-decode. Not all pixels | 175 // Width and height of video frame immediately post-decode. Not all pixels |
176 // in this region are valid. | 176 // in this region are valid. |
177 Size coded_size; | 177 Size coded_size; |
178 | 178 |
179 // Optional byte data required to initialize video decoders, such as H.264 | 179 // Optional byte data required to initialize video decoders, such as H.264 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 virtual int64_t timestamp() const = 0; | 441 virtual int64_t timestamp() const = 0; |
442 | 442 |
443 protected: | 443 protected: |
444 VideoFrame() {} | 444 VideoFrame() {} |
445 virtual ~VideoFrame() {} | 445 virtual ~VideoFrame() {} |
446 }; | 446 }; |
447 | 447 |
448 } // namespace cdm | 448 } // namespace cdm |
449 | 449 |
450 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ | 450 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ |
OLD | NEW |