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.
5 #ifndef PPAPI_THUNK_PPB_VIDEO_DECODER_API_H_
6 #define PPAPI_THUNK_PPB_VIDEO_DECODER_API_H_
8 #include "ppapi/c/pp_codecs.h"
9 #include "ppapi/c/ppb_video_decoder.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h"
14 class TrackedCallback
;
18 class PPAPI_THUNK_EXPORT PPB_VideoDecoder_API
{
20 virtual ~PPB_VideoDecoder_API() {}
22 virtual int32_t Initialize0_1(PP_Resource graphics3d_context
,
23 PP_VideoProfile profile
,
24 PP_Bool allow_software_fallback
,
25 scoped_refptr
<TrackedCallback
> callback
) = 0;
26 virtual int32_t Initialize0_2(PP_Resource graphics3d_context
,
27 PP_VideoProfile profile
,
28 PP_HardwareAcceleration acceleration
,
29 scoped_refptr
<TrackedCallback
> callback
) = 0;
30 virtual int32_t Initialize(PP_Resource graphics3d_context
,
31 PP_VideoProfile profile
,
32 PP_HardwareAcceleration acceleration
,
33 uint32_t min_picture_count
,
34 scoped_refptr
<TrackedCallback
> callback
) = 0;
35 virtual int32_t Decode(uint32_t decode_id
,
38 scoped_refptr
<TrackedCallback
> callback
) = 0;
39 virtual int32_t GetPicture0_1(PP_VideoPicture_0_1
* picture
,
40 scoped_refptr
<TrackedCallback
> callback
) = 0;
41 virtual int32_t GetPicture(PP_VideoPicture
* picture
,
42 scoped_refptr
<TrackedCallback
> callback
) = 0;
43 virtual void RecyclePicture(const PP_VideoPicture
* picture
) = 0;
44 virtual int32_t Flush(scoped_refptr
<TrackedCallback
> callback
) = 0;
45 virtual int32_t Reset(scoped_refptr
<TrackedCallback
> callback
) = 0;
51 #endif // PPAPI_THUNK_PPB_VIDEO_DECODER_API_H_