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

Side by Side Diff: ppapi/c/dev/pp_video_dev.h

Issue 11826064: Enforce non-negative BitstreamBuffer id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Documented the wrapping at 30 bits. Created 7 years, 11 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/api/dev/pp_video_dev.idl ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.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 5
6 /* From dev/pp_video_dev.idl modified Fri Dec 7 15:33:11 2012. */ 6 /* From dev/pp_video_dev.idl modified Fri Dec 7 15:33:11 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ 8 #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_
9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ 9 #define PPAPI_C_DEV_PP_VIDEO_DEV_H_
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 /** 55 /**
56 * @addtogroup Structs 56 * @addtogroup Structs
57 * @{ 57 * @{
58 */ 58 */
59 /** 59 /**
60 * The data structure for video bitstream buffer. 60 * The data structure for video bitstream buffer.
61 */ 61 */
62 struct PP_VideoBitstreamBuffer_Dev { 62 struct PP_VideoBitstreamBuffer_Dev {
63 /** 63 /**
64 * Client-specified identifier for the bitstream buffer. 64 * Client-specified identifier for the bitstream buffer. Valid values are
65 * non-negative.
65 */ 66 */
66 int32_t id; 67 int32_t id;
67 /** 68 /**
68 * Buffer to hold the bitstream data. Should be allocated using the 69 * Buffer to hold the bitstream data. Should be allocated using the
69 * PPB_Buffer interface for consistent interprocess behaviour. 70 * PPB_Buffer interface for consistent interprocess behaviour.
70 */ 71 */
71 PP_Resource data; 72 PP_Resource data;
72 /** 73 /**
73 * Size of the bitstream contained in buffer (in bytes). 74 * Size of the bitstream contained in buffer (in bytes).
74 */ 75 */
75 uint32_t size; 76 uint32_t size;
76 }; 77 };
77 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoBitstreamBuffer_Dev, 12); 78 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoBitstreamBuffer_Dev, 12);
78 79
79 /** 80 /**
80 * Struct for specifying texture-backed picture data. 81 * Struct for specifying texture-backed picture data.
81 */ 82 */
82 struct PP_PictureBuffer_Dev { 83 struct PP_PictureBuffer_Dev {
83 /** 84 /**
84 * Client-specified id for the picture buffer. By using this value client can 85 * Client-specified id for the picture buffer. By using this value client can
85 * keep track of the buffers it has assigned to the video decoder and how they 86 * keep track of the buffers it has assigned to the video decoder and how they
86 * are passed back to it. 87 * are passed back to it. Valid values are non-negative.
87 */ 88 */
88 int32_t id; 89 int32_t id;
89 /** 90 /**
90 * Dimensions of the buffer. 91 * Dimensions of the buffer.
91 */ 92 */
92 struct PP_Size size; 93 struct PP_Size size;
93 /** 94 /**
94 * Texture ID in the given context where picture is stored. 95 * Texture ID in the given context where picture is stored.
95 */ 96 */
96 uint32_t texture_id; 97 uint32_t texture_id;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 */ 145 */
145 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4 146 PP_VIDEODECODERERROR_PLATFORM_FAILURE = 4
146 } PP_VideoDecodeError_Dev; 147 } PP_VideoDecodeError_Dev;
147 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4); 148 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoDecodeError_Dev, 4);
148 /** 149 /**
149 * @} 150 * @}
150 */ 151 */
151 152
152 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */ 153 #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */
153 154
OLDNEW
« no previous file with comments | « ppapi/api/dev/pp_video_dev.idl ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698