| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_PPB_MEDIA_CODEC_VIDEO_DECODER_API_H_ |
| 6 #define PPAPI_THUNK_PPB_MEDIA_CODEC_VIDEO_DECODER_API_H_ |
| 7 |
| 8 #include "ppapi/c/pp_media_codec.h" |
| 9 #include "ppapi/c/ppb_media_codec_video_decoder.h" |
| 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 11 |
| 12 namespace ppapi { |
| 13 |
| 14 class TrackedCallback; |
| 15 |
| 16 namespace thunk { |
| 17 |
| 18 class PPAPI_THUNK_EXPORT PPB_MediaCodecVideoDecoder_API { |
| 19 public: |
| 20 virtual ~PPB_MediaCodecVideoDecoder_API() {} |
| 21 |
| 22 virtual int32_t Initialize( |
| 23 PP_Resource context, |
| 24 PP_MediaCodec_Profile profile, |
| 25 scoped_refptr<TrackedCallback> callback) = 0; |
| 26 virtual int32_t GetBitstreamBuffer( |
| 27 uint32_t size, |
| 28 PP_MediaCodec_BitstreamBuffer* bitstream_buffer, |
| 29 scoped_refptr<TrackedCallback> callback) = 0; |
| 30 virtual int32_t Decode( |
| 31 const PP_MediaCodec_BitstreamBuffer* bitstream_buffer, |
| 32 scoped_refptr<TrackedCallback> callback) = 0; |
| 33 virtual int32_t GetPictureBuffer( |
| 34 PP_MediaCodec_PictureBuffer* picture_buffer, |
| 35 scoped_refptr<TrackedCallback> callback) = 0; |
| 36 virtual void RecyclePictureBuffer( |
| 37 const PP_MediaCodec_PictureBuffer* picture_buffer) = 0; |
| 38 virtual int32_t Flush( |
| 39 scoped_refptr<TrackedCallback> callback) = 0; |
| 40 virtual int32_t Reset( |
| 41 scoped_refptr<TrackedCallback> callback) = 0; |
| 42 }; |
| 43 |
| 44 } // namespace thunk |
| 45 } // namespace ppapi |
| 46 |
| 47 #endif // PPAPI_THUNK_PPB_MEDIA_CODEC_VIDEO_DECODER_API_H_ |
| OLD | NEW |