OLD | NEW |
(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_ |
OLD | NEW |