Chromium Code Reviews| 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_VideoProfile profile, | |
| 25 scoped_refptr<TrackedCallback> callback) = 0; | |
| 26 virtual int32_t Decode( | |
| 27 uint32_t user_id, | |
| 28 uint32_t size, | |
| 29 const void* buffer, | |
| 30 scoped_refptr<TrackedCallback> callback) = 0; | |
| 31 virtual int32_t GetPicture( | |
| 32 PP_MediaCodec_Picture* picture, | |
| 33 scoped_refptr<TrackedCallback> callback) = 0; | |
| 34 virtual void RecyclePicture( | |
| 35 const PP_MediaCodec_Picture* picture) = 0; | |
| 36 virtual int32_t Flush( | |
| 37 scoped_refptr<TrackedCallback> callback) = 0; | |
| 38 virtual int32_t Reset( | |
| 39 scoped_refptr<TrackedCallback> callback) = 0; | |
|
dmichael (off chromium)
2014/04/17 20:23:26
nit: Don't some of these fit on 1 line?
Might be
bbudge
2014/04/18 17:03:17
Done.
| |
| 40 }; | |
| 41 | |
| 42 } // namespace thunk | |
| 43 } // namespace ppapi | |
| 44 | |
| 45 #endif // PPAPI_THUNK_PPB_MEDIA_CODEC_VIDEO_DECODER_API_H_ | |
| OLD | NEW |