OLD | NEW |
(Empty) | |
| 1 // Copyright 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_VIDEO_ENCODER_API_H_ |
| 6 #define PPAPI_THUNK_VIDEO_ENCODER_API_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "ppapi/c/ppb_video_encoder.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_VideoEncoder_API { |
| 19 public: |
| 20 virtual ~PPB_VideoEncoder_API() {} |
| 21 |
| 22 virtual int32_t Initialize(PP_Resource graphics_context, |
| 23 const struct PP_VideoEncoderParams* params, |
| 24 void* user_data, |
| 25 PPB_VideoEncoder_Ready_Func callback) = 0; |
| 26 virtual int32_t Encode(uint32_t encode_id, |
| 27 const PP_VideoEncoderPicture *picture, |
| 28 PP_Bool force_keyframe, |
| 29 scoped_refptr<TrackedCallback> callback) = 0; |
| 30 virtual int32_t Reset(scoped_refptr<TrackedCallback> callback) = 0; |
| 31 }; |
| 32 |
| 33 } // namespace thunk |
| 34 } // namespace ppapi |
| 35 |
| 36 #endif // PPAPI_THUNK_VIDEO_ENCODER_API_H_ |
OLD | NEW |