| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
| 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // frame. Returns |cdm::kDecodeError| when decoding fails. | 28 // frame. Returns |cdm::kDecodeError| when decoding fails. |
| 29 // | 29 // |
| 30 // A null |compressed_frame| will attempt to flush the decoder of any | 30 // A null |compressed_frame| will attempt to flush the decoder of any |
| 31 // remaining frames. |compressed_frame_size| and |timestamp| are ignored. | 31 // remaining frames. |compressed_frame_size| and |timestamp| are ignored. |
| 32 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, | 32 virtual cdm::Status DecodeFrame(const uint8_t* compressed_frame, |
| 33 int32_t compressed_frame_size, | 33 int32_t compressed_frame_size, |
| 34 int64_t timestamp, | 34 int64_t timestamp, |
| 35 cdm::VideoFrame* decoded_frame) = 0; | 35 cdm::VideoFrame* decoded_frame) = 0; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Initializes appropriate video decoder based on GYP flags and the value of | 38 // Initializes the appropriate video decoder based on build flags and the value |
| 39 // |config.codec|. Returns a scoped_ptr containing a non-null initialized | 39 // of |config.codec|. Returns a scoped_ptr containing a non-null initialized |
| 40 // CdmVideoDecoder* upon success. | 40 // CdmVideoDecoder pointer upon success. |
| 41 std::unique_ptr<CdmVideoDecoder> CreateVideoDecoder( | 41 std::unique_ptr<CdmVideoDecoder> CreateVideoDecoder( |
| 42 ClearKeyCdmHost* host, | 42 ClearKeyCdmHost* host, |
| 43 const cdm::VideoDecoderConfig& config); | 43 const cdm::VideoDecoderConfig& config); |
| 44 | 44 |
| 45 } // namespace media | 45 } // namespace media |
| 46 | 46 |
| 47 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 47 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
| OLD | NEW |