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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 enum VideoCodecProfile { | 134 enum VideoCodecProfile { |
135 kUnknownVideoCodecProfile = 0, | 135 kUnknownVideoCodecProfile = 0, |
136 kVp8ProfileMain | 136 kVp8ProfileMain |
137 }; | 137 }; |
138 | 138 |
139 VideoDecoderConfig() | 139 VideoDecoderConfig() |
140 : codec(kUnknownVideoCodec), | 140 : codec(kUnknownVideoCodec), |
141 profile(kUnknownVideoCodecProfile), | 141 profile(kUnknownVideoCodecProfile), |
142 format(kUnknownVideoFormat), | 142 format(kUnknownVideoFormat), |
143 extra_data(NULL), | 143 extra_data(NULL), |
144 extra_data_size() {} | 144 extra_data_size(0) {} |
145 | 145 |
146 VideoCodec codec; | 146 VideoCodec codec; |
147 VideoCodecProfile profile; | 147 VideoCodecProfile profile; |
148 VideoFormat format; | 148 VideoFormat format; |
149 | 149 |
150 // Width and height of video frame immediately post-decode. Not all pixels | 150 // Width and height of video frame immediately post-decode. Not all pixels |
151 // in this region are valid. | 151 // in this region are valid. |
152 Size coded_size; | 152 Size coded_size; |
153 | 153 |
154 // Optional byte data required to initialize video decoders, such as H.264 | 154 // Optional byte data required to initialize video decoders, such as H.264 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 virtual int64_t timestamp() const = 0; | 372 virtual int64_t timestamp() const = 0; |
373 | 373 |
374 protected: | 374 protected: |
375 VideoFrame() {} | 375 VideoFrame() {} |
376 virtual ~VideoFrame() {} | 376 virtual ~VideoFrame() {} |
377 }; | 377 }; |
378 | 378 |
379 } // namespace cdm | 379 } // namespace cdm |
380 | 380 |
381 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ | 381 #endif // WEBKIT_MEDIA_CRYPTO_PPAPI_CONTENT_DECRYPTION_MODULE_H_ |
OLD | NEW |