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 #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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 // | 322 // | 
| 323 // |<------------------- serialized audio buffer ------------------->| | 323 // |<------------------- serialized audio buffer ------------------->| | 
| 324 // | int64_t timestamp | int64_t length | length bytes of audio data | | 324 // | int64_t timestamp | int64_t length | length bytes of audio data | | 
| 325 // | 325 // | 
| 326 // For example, with three audio output buffers, |audio_frames| will look | 326 // For example, with three audio output buffers, |audio_frames| will look | 
| 327 // like this: | 327 // like this: | 
| 328 // | 328 // | 
| 329 // |<---------------- audio_frames ------------------>| | 329 // |<---------------- audio_frames ------------------>| | 
| 330 // | audio buffer 0 | audio buffer 1 | audio buffer 2 | | 330 // | audio buffer 0 | audio buffer 1 | audio buffer 2 | | 
| 331 virtual Status DecryptAndDecodeSamples(const InputBuffer& encrypted_buffer, | 331 virtual Status DecryptAndDecodeSamples(const InputBuffer& encrypted_buffer, | 
| 332 Buffer* audio_frames) = 0; | 332 DecryptedBlock* audio_frames) = 0; | 
| 
 
xhwang
2012/10/21 19:05:06
Need this change because cdm::Buffer doesn't suppo
 
 | |
| 333 | 333 | 
| 334 virtual ~ContentDecryptionModule() {} | 334 virtual ~ContentDecryptionModule() {} | 
| 335 }; | 335 }; | 
| 336 | 336 | 
| 337 // Represents a buffer created by Allocator implementations. | 337 // Represents a buffer created by Allocator implementations. | 
| 338 class Buffer { | 338 class Buffer { | 
| 339 public: | 339 public: | 
| 340 // Destroys the buffer in the same context as it was created. | 340 // Destroys the buffer in the same context as it was created. | 
| 341 virtual void Destroy() = 0; | 341 virtual void Destroy() = 0; | 
| 342 | 342 | 
| (...skipping 98 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 |