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

Side by Side Diff: ppapi/cpp/dev/video_decoder_client_dev.h

Issue 7021020: Clean up video frame sizes, types in Video Decode API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: responses to CR Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppp_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_client_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/dev/pp_video_dev.h" 9 #include "ppapi/c/dev/pp_video_dev.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class Instance; 13 class Instance;
14 class VideoDecoder_Dev; 14 class VideoDecoder_Dev;
15 15
16 // This class provides a C++ interface for callbacks related to video decoding. 16 // This class provides a C++ interface for callbacks related to video decoding.
17 // It is the C++ counterpart to PPP_VideoDecoder_Dev. 17 // It is the C++ counterpart to PPP_VideoDecoder_Dev.
18 // You would normally use multiple inheritance to derive from this class in your 18 // You would normally use multiple inheritance to derive from this class in your
19 // instance. 19 // instance.
20 class VideoDecoderClient_Dev { 20 class VideoDecoderClient_Dev {
21 public: 21 public:
22 VideoDecoderClient_Dev(Instance* instance); 22 VideoDecoderClient_Dev(Instance* instance);
23 virtual ~VideoDecoderClient_Dev(); 23 virtual ~VideoDecoderClient_Dev();
24 24
25 // Callback to provide buffers for the decoded output pictures. 25 // Callback to provide buffers for the decoded output pictures.
26 virtual void ProvidePictureBuffers( 26 virtual void ProvidePictureBuffers(
27 uint32_t req_num_of_bufs, 27 uint32_t req_num_of_bufs,
28 struct PP_Size dimensions, 28 struct PP_Size dimensions) = 0;
29 enum PP_PictureBufferType_Dev type) = 0;
30 29
31 // Callback for decoder to deliver unneeded picture buffers back to the 30 // Callback for decoder to deliver unneeded picture buffers back to the
32 // plugin. 31 // plugin.
33 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0; 32 virtual void DismissPictureBuffer(int32_t picture_buffer_id) = 0;
34 33
35 // Callback to deliver decoded pictures ready to be displayed. 34 // Callback to deliver decoded pictures ready to be displayed.
36 virtual void PictureReady(const PP_Picture_Dev& picture) = 0; 35 virtual void PictureReady(const PP_Picture_Dev& picture) = 0;
37 36
38 // Callback to notify that decoder has decoded end of stream marker and has 37 // Callback to notify that decoder has decoded end of stream marker and has
39 // outputted all displayable pictures. 38 // outputted all displayable pictures.
40 virtual void EndOfStream() = 0; 39 virtual void EndOfStream() = 0;
41 40
42 // Callback to notify about decoding errors. 41 // Callback to notify about decoding errors.
43 virtual void NotifyError(PP_VideoDecodeError_Dev error) = 0; 42 virtual void NotifyError(PP_VideoDecodeError_Dev error) = 0;
44 43
45 private: 44 private:
46 Instance* associated_instance_; 45 Instance* associated_instance_;
47 }; 46 };
48 47
49 } // namespace pp 48 } // namespace pp
50 49
51 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_ 50 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_CLIENT_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppp_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_client_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698