Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: ppapi/thunk/ppb_video_encoder_api.h

Issue 365153003: Pepper: add PPB_VideoEncoder interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update API to prevent the user from dealing with buffer management Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev_channel.h ('k') | ppapi/thunk/ppb_video_encoder_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev_channel.h ('k') | ppapi/thunk/ppb_video_encoder_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698