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

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

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PPB_VIDEO_DECODER_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
6 #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ 6 #define PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/dev/pp_video_dev.h" 9 #include "ppapi/c/dev/pp_video_dev.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 #include "ppapi/c/pp_completion_callback.h" 13 #include "ppapi/c/pp_completion_callback.h"
14 14
15 #define PPB_VIDEODECODER_DEV_INTERFACE "PPB_VideoDecoder(Dev);0.2" 15 #define PPB_VIDEODECODER_DEV_INTERFACE "PPB_VideoDecoder(Dev);0.3"
16 16
17 struct PPB_VideoDecoder_Dev { 17 struct PPB_VideoDecoder_Dev {
18 // Queries capability of the decoder for |codec|. 18 // Queries capability of the decoder for |codec|.
19 // |codec| is the requested codec id. 19 // |codec| is the requested codec id.
20 // |configs| is a pointer to a buffer containing |config_size| elements. 20 // |configs| is a pointer to a buffer containing |config_size| elements.
21 // The number of configurations is returned in |num_config|. Element 0 through 21 // The number of configurations is returned in |num_config|. Element 0 through
22 // |num_config| - 1 of |configs| are filled in with valid PP_VideoConfig's. 22 // |num_config| - 1 of |configs| are filled in with valid PP_VideoConfig's.
23 // No more than |config_size| PP_VideoConfig's will be returned even if more 23 // No more than |config_size| PP_VideoConfig's will be returned even if more
24 // are available on the device. 24 // are available on the device.
25 // When this function is called with |configs| = NULL, then no configurations 25 // When this function is called with |configs| = NULL, then no configurations
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int32_t (*Flush)(PP_Resource decoder, struct PP_CompletionCallback callback); 78 int32_t (*Flush)(PP_Resource decoder, struct PP_CompletionCallback callback);
79 79
80 // Plugin sends uncompressed data buffers to the decoder. 80 // Plugin sends uncompressed data buffers to the decoder.
81 // Returns PP_TRUE on decoder successfully accepting the buffer, PP_FALSE 81 // Returns PP_TRUE on decoder successfully accepting the buffer, PP_FALSE
82 // otherwise. 82 // otherwise.
83 PP_Bool (*ReturnUncompressedDataBuffer)(PP_Resource decoder, 83 PP_Bool (*ReturnUncompressedDataBuffer)(PP_Resource decoder,
84 struct PP_VideoUncompressedDataBuffer_Dev* buffer); 84 struct PP_VideoUncompressedDataBuffer_Dev* buffer);
85 }; 85 };
86 86
87 #endif // PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ 87 #endif // PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698