| OLD | NEW |
| 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_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/dev/pp_video_dev.h" | 8 #include "ppapi/c/dev/pp_video_dev.h" |
| 9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
| 10 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // plugin. | 31 // plugin. |
| 32 struct PPB_VideoDecoder_Dev { | 32 struct PPB_VideoDecoder_Dev { |
| 33 // Creates & initializes a video decoder. | 33 // Creates & initializes a video decoder. |
| 34 // | 34 // |
| 35 // Parameters: | 35 // Parameters: |
| 36 // |instance| pointer to the plugin instance. | 36 // |instance| pointer to the plugin instance. |
| 37 // |context_3d| a PPB_Context3D_Dev resource in which decoding will happen. | 37 // |context_3d| a PPB_Context3D_Dev resource in which decoding will happen. |
| 38 // |decoder_config| the configuration to use to initialize the decoder. | 38 // |decoder_config| the configuration to use to initialize the decoder. |
| 39 // | 39 // |
| 40 // The created decoder is returned as PP_Resource. 0 means failure. | 40 // The created decoder is returned as PP_Resource. 0 means failure. |
| 41 // TODO(fischman/vrk): Get rid of silly PP_VideoConfigElement* vector in favor |
| 42 // of config struct. |
| 41 PP_Resource (*Create)(PP_Instance instance, | 43 PP_Resource (*Create)(PP_Instance instance, |
| 42 PP_Resource context, | 44 PP_Resource context, |
| 43 const PP_VideoConfigElement* decoder_config); | 45 const PP_VideoConfigElement* decoder_config); |
| 44 | 46 |
| 45 // Tests whether |resource| is a video decoder created through Create | 47 // Tests whether |resource| is a video decoder created through Create |
| 46 // function of this interface. | 48 // function of this interface. |
| 47 // | 49 // |
| 48 // Parameters: | 50 // Parameters: |
| 49 // |resource| is handle to resource to test. | 51 // |resource| is handle to resource to test. |
| 50 // | 52 // |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // may be freed asynchronously, after this method returns no more callbacks | 125 // may be freed asynchronously, after this method returns no more callbacks |
| 124 // will be made on the client. Any resources held by the client at that point | 126 // will be made on the client. Any resources held by the client at that point |
| 125 // may be freed. | 127 // may be freed. |
| 126 // | 128 // |
| 127 // Parameters: | 129 // Parameters: |
| 128 // |video_decoder| is the previously created handle to the decoder resource. | 130 // |video_decoder| is the previously created handle to the decoder resource. |
| 129 void (*Destroy)(PP_Resource video_decoder); | 131 void (*Destroy)(PP_Resource video_decoder); |
| 130 }; | 132 }; |
| 131 | 133 |
| 132 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ | 134 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ |
| OLD | NEW |