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

Side by Side Diff: ppapi/c/dev/ppp_video_decoder_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: cleanup Created 9 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
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_C_DEV_PPP_VIDEO_DECODER_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_
6 #define PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_
7 7
8 #include "ppapi/c/dev/pp_video_dev.h" 8 #include "ppapi/c/dev/pp_video_dev.h"
9 9
10 #define PPP_VIDEODECODER_DEV_INTERFACE "PPP_VideoDecoder(Dev);0.3" 10 #define PPP_VIDEODECODER_DEV_INTERFACE "PPP_VideoDecoder(Dev);0.4"
11 11
12 // PPP_VideoDecoder_Dev structure contains the function pointers that the 12 // PPP_VideoDecoder_Dev structure contains the function pointers that the
13 // plugin MUST implement to provide services needed by the video decoder 13 // plugin MUST implement to provide services needed by the video decoder
14 // implementation. 14 // implementation.
15 struct PPP_VideoDecoder_Dev { 15 struct PPP_VideoDecoder_Dev {
16 // Callback function to provide buffers for the decoded output pictures. If 16 // Callback function to provide buffers for the decoded output pictures. If
17 // succeeds plugin must provide buffers through AssignPictureBuffers function 17 // succeeds plugin must provide buffers through AssignPictureBuffers function
18 // to the API. If |req_num_of_bufs| matching exactly the specification 18 // to the API. If |req_num_of_bufs| matching exactly the specification
19 // given in the parameters cannot be allocated decoder should be destroyed. 19 // given in the parameters cannot be allocated decoder should be destroyed.
20 // 20 //
21 // Decoding will not proceed until buffers have been provided. 21 // Decoding will not proceed until buffers have been provided.
22 // 22 //
23 // Parameters: 23 // Parameters:
24 // |decoder| is pointer to the Pepper Video Decoder instance. 24 // |decoder| is pointer to the Pepper Video Decoder instance.
25 // |req_num_of_bufs| tells how many buffers are needed by the decoder. 25 // |req_num_of_bufs| tells how many buffers are needed by the decoder.
26 // |dimensions| tells the dimensions of the buffer to allocate. 26 // |dimensions| tells the dimensions of the buffer to allocate.
27 // |type| specifies whether the buffer lives in system memory or GL texture.
28 void (*ProvidePictureBuffers)( 27 void (*ProvidePictureBuffers)(
29 PP_Resource decoder, 28 PP_Resource decoder, uint32_t req_num_of_bufs, struct PP_Size dimensions);
30 uint32_t req_num_of_bufs,
31 struct PP_Size dimensions,
32 enum PP_PictureBufferType_Dev type);
Ami GONE FROM CHROMIUM 2011/05/16 20:17:50 Previously, the API allowed the decoder to specify
vrk (LEFT CHROMIUM) 2011/05/16 20:28:37 Yes, intentional. (I think we talked about it on F
Ville-Mikko Rautio 2011/05/17 08:58:49 But it is possible that the decoder implementation
vrk (LEFT CHROMIUM) 2011/05/23 18:20:29 I don't think this is true; see response.
33 29
34 // Callback function for decoder to deliver unneeded picture buffers back to 30 // Callback function for decoder to deliver unneeded picture buffers back to
35 // the plugin. 31 // the plugin.
36 // 32 //
37 // Parameters: 33 // Parameters:
38 // |decoder| is pointer to the Pepper Video Decoder instance. 34 // |decoder| is pointer to the Pepper Video Decoder instance.
39 // |picture_buffer| points to the picture buffer that is no longer needed. 35 // |picture_buffer| points to the picture buffer that is no longer needed.
40 void (*DismissPictureBuffer)(PP_Resource decoder, 36 void (*DismissPictureBuffer)(PP_Resource decoder,
41 int32_t picture_buffer_id); 37 int32_t picture_buffer_id);
42 38
(...skipping 20 matching lines...) Expand all
63 // 59 //
64 // TODO(vmr): Fill out error result codes and corresponding actions. 60 // TODO(vmr): Fill out error result codes and corresponding actions.
65 // 61 //
66 // Parameters: 62 // Parameters:
67 // |decoder| is pointer to the Pepper Video Decoder instance. 63 // |decoder| is pointer to the Pepper Video Decoder instance.
68 // |error| error is the enumeration specifying the error. 64 // |error| error is the enumeration specifying the error.
69 void (*NotifyError)(PP_Resource decoder, enum PP_VideoDecodeError_Dev error); 65 void (*NotifyError)(PP_Resource decoder, enum PP_VideoDecodeError_Dev error);
70 }; 66 };
71 67
72 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ 68 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698