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

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

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 years, 7 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/ppb_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_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) 2012 The Chromium Authors. All rights reserved. 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 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_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/dev/pp_video_dev.h" 10 #include "ppapi/c/dev/pp_video_dev.h"
11 #include "ppapi/cpp/completion_callback.h" 11 #include "ppapi/cpp/completion_callback.h"
12 #include "ppapi/cpp/dev/buffer_dev.h" 12 #include "ppapi/cpp/dev/buffer_dev.h"
13 #include "ppapi/cpp/resource.h" 13 #include "ppapi/cpp/resource.h"
14 14
15 namespace pp { 15 namespace pp {
16 16
17 class Graphics3D; 17 class Graphics3D;
18 class InstanceHandle; 18 class InstanceHandle;
19 19
20 // C++ wrapper for the Pepper Video Decoder interface. For more detailed 20 // C++ wrapper for the Pepper Video Decoder interface. For more detailed
21 // documentation refer to the C interfaces. 21 // documentation refer to the C interfaces.
22 // 22 //
23 // C++ version of the PPB_VideoDecoder_Dev interface. 23 // C++ version of the PPB_VideoDecoder_Dev interface.
24 class VideoDecoder_Dev : public Resource { 24 class VideoDecoder_Dev : public Resource {
25 public: 25 public:
26 // See PPB_VideoDecoder_Dev::Create. 26 // See PPB_VideoDecoder_Dev::Create.
27 VideoDecoder_Dev(const InstanceHandle& instance, 27 VideoDecoder_Dev(const InstanceHandle& instance,
28 const Graphics3D& context, 28 const Graphics3D& context,
29 PP_VideoDecoder_Profile profile); 29 PP_VideoDecoder_Profile profile,
30 const PP_Size& frame_size,
31 const std::vector<uint8_t>& extra_data);
30 32
31 explicit VideoDecoder_Dev(PP_Resource resource); 33 explicit VideoDecoder_Dev(PP_Resource resource);
32 virtual ~VideoDecoder_Dev(); 34 virtual ~VideoDecoder_Dev();
33 35
34 // PPB_VideoDecoder_Dev implementation. 36 // PPB_VideoDecoder_Dev implementation.
35 void AssignPictureBuffers(const std::vector<PP_PictureBuffer_Dev>& buffers); 37 void AssignPictureBuffers(const std::vector<PP_PictureBuffer_Dev>& buffers);
36 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer, 38 int32_t Decode(const PP_VideoBitstreamBuffer_Dev& bitstream_buffer,
37 const CompletionCallback& callback); 39 const CompletionCallback& callback);
38 void ReusePictureBuffer(int32_t picture_buffer_id); 40 void ReusePictureBuffer(int32_t picture_buffer_id);
39 int32_t Flush(const CompletionCallback& callback); 41 int32_t Flush(const CompletionCallback& callback);
40 int32_t Reset(const CompletionCallback& callback); 42 int32_t Reset(const CompletionCallback& callback);
41 43
42 private: 44 private:
43 // Disallow copy-construction to ensure Destroy() is called exactly once. 45 // Disallow copy-construction to ensure Destroy() is called exactly once.
44 VideoDecoder_Dev(const VideoDecoder_Dev&); 46 VideoDecoder_Dev(const VideoDecoder_Dev&);
45 }; 47 };
46 48
47 } // namespace pp 49 } // namespace pp
48 50
49 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ 51 #endif // PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_video_decoder_dev.h ('k') | ppapi/cpp/dev/video_decoder_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698