Chromium Code Reviews| 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_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/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 10 #include "ppapi/c/dev/pp_video_dev.h" | 10 #include "ppapi/c/dev/pp_video_dev.h" |
| 11 | 11 |
| 12 #define PPP_VIDEODECODER_DEV_INTERFACE "PPP_VideoDecoder(Dev);0.5" | 12 #define PPP_VIDEODECODER_DEV_INTERFACE "PPP_VideoDecoder(Dev);0.5" |
|
Ami GONE FROM CHROMIUM
2011/07/18 18:33:00
bump
vrk (LEFT CHROMIUM)
2011/07/19 01:26:08
Done.
| |
| 13 | 13 |
| 14 // PPP_VideoDecoder_Dev structure contains the function pointers that the | 14 // PPP_VideoDecoder_Dev structure contains the function pointers that the |
| 15 // plugin MUST implement to provide services needed by the video decoder | 15 // plugin MUST implement to provide services needed by the video decoder |
| 16 // implementation. | 16 // implementation. |
| 17 // See PPB_VideoDecoder_Dev for general usage tips. | 17 // See PPB_VideoDecoder_Dev for general usage tips. |
| 18 struct PPP_VideoDecoder_Dev { | 18 struct PPP_VideoDecoder_Dev { |
| 19 // Callback function to provide buffers for the decoded output pictures. If | 19 // Callback function to provide buffers for the decoded output pictures. If |
| 20 // succeeds plugin must provide buffers through AssignPictureBuffers function | 20 // succeeds plugin must provide buffers through AssignPictureBuffers function |
| 21 // to the API. If |req_num_of_bufs| matching exactly the specification | 21 // to the API. If |req_num_of_bufs| matching exactly the specification |
| 22 // given in the parameters cannot be allocated decoder should be destroyed. | 22 // given in the parameters cannot be allocated decoder should be destroyed. |
| 23 // | 23 // |
| 24 // Decoding will not proceed until buffers have been provided. | 24 // Decoding will not proceed until buffers have been provided. |
| 25 // | 25 // |
| 26 // Parameters: | 26 // Parameters: |
| 27 // |instance| the plugin instance to which the callback is responding. | 27 // |instance| the plugin instance to which the callback is responding. |
| 28 // |req_num_of_bufs| tells how many buffers are needed by the decoder. | 28 // |req_num_of_bufs| tells how many buffers are needed by the decoder. |
| 29 // |dimensions| tells the dimensions of the buffer to allocate. | 29 // |dimensions| tells the dimensions of the buffer to allocate. |
| 30 // |type| specifies whether the buffer lives in system memory or GL texture. | 30 // |type| specifies whether the buffer lives in system memory or GL texture. |
| 31 void (*ProvidePictureBuffers)( | 31 void (*ProvidePictureBuffers)( |
| 32 PP_Instance instance, | 32 PP_Instance instance, |
| 33 uint32_t req_num_of_bufs, | 33 uint32_t req_num_of_bufs, |
| 34 struct PP_Size dimensions, | 34 struct PP_Size dimensions); |
| 35 enum PP_PictureBufferType_Dev type); | |
| 36 | 35 |
| 37 // Callback function for decoder to deliver unneeded picture buffers back to | 36 // Callback function for decoder to deliver unneeded picture buffers back to |
| 38 // the plugin. | 37 // the plugin. |
| 39 // | 38 // |
| 40 // Parameters: | 39 // Parameters: |
| 41 // |instance| the plugin instance to which the callback is responding. | 40 // |instance| the plugin instance to which the callback is responding. |
| 42 // |picture_buffer| points to the picture buffer that is no longer needed. | 41 // |picture_buffer| points to the picture buffer that is no longer needed. |
| 43 void (*DismissPictureBuffer)(PP_Instance instance, int32_t picture_buffer_id); | 42 void (*DismissPictureBuffer)(PP_Instance instance, int32_t picture_buffer_id); |
| 44 | 43 |
| 45 // Callback function for decoder to deliver decoded pictures ready to be | 44 // Callback function for decoder to deliver decoded pictures ready to be |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 64 // | 63 // |
| 65 // TODO(vmr): Fill out error result codes and corresponding actions. | 64 // TODO(vmr): Fill out error result codes and corresponding actions. |
| 66 // | 65 // |
| 67 // Parameters: | 66 // Parameters: |
| 68 // |instance| the plugin instance to which the callback is responding. | 67 // |instance| the plugin instance to which the callback is responding. |
| 69 // |error| error is the enumeration specifying the error. | 68 // |error| error is the enumeration specifying the error. |
| 70 void (*NotifyError)(PP_Instance instance, enum PP_VideoDecodeError_Dev error); | 69 void (*NotifyError)(PP_Instance instance, enum PP_VideoDecodeError_Dev error); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ | 72 #endif /* PPAPI_C_DEV_PPP_VIDEO_DECODER_DEV_H_ */ |
| OLD | NEW |