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

Side by Side Diff: ppapi/cpp/video_encoder_client.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/cpp/video_encoder.cc ('k') | ppapi/cpp/video_encoder_client.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 (c) 2012 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_CPP_VIDEO_ENCODER_CLIENT_H_
6 #define PPAPI_CPP_VIDEO_ENCODER_CLIENT_H_
7
8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/ppp_video_encoder.h"
10 #include "ppapi/c/ppp_video_encoder.h"
11 #include "ppapi/cpp/instance_handle.h"
12
13 namespace pp {
14
15 class Instance;
16 class VideoEncoder;
17
18 // This class provides a C++ interface for callbacks related to video encoding.
19 // It is the C++ counterpart to PPP_VideoEncoder.
20 // You would normally use multiple inheritance to derive from this class in your
21 // instance.
22 class VideoEncoderClient {
23 public:
24 VideoEncoderClient(Instance* instance);
25 virtual ~VideoEncoderClient();
26
27 // Callback to notify about bitstream buffers.
28 virtual void HandleBitstreamBuffer(
29 VideoEncoder encoder,
30 const PP_VideoEncoderBitstreamBuffer& buffer) = 0;
31
32 private:
33 InstanceHandle associated_instance_;
34 };
35
36 } // namespace pp
37
38 #endif // PPAPI_CPP_VIDEO_ENCODER_CLIENT_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/video_encoder.cc ('k') | ppapi/cpp/video_encoder_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698