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" |
11 | 11 |
12 #define PPB_VIDEODECODER_DEV_INTERFACE "PPB_VideoDecoder(Dev);0.5" | 12 #define PPB_VIDEODECODER_DEV_INTERFACE_0_5 "PPB_VideoDecoder(Dev);0.5" |
| 13 #define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_5 |
13 | 14 |
14 // Video decoder interface. | 15 // Video decoder interface. |
15 // | 16 // |
16 // Basic usage: | 17 // Basic usage: |
17 // 1. Use GetConfigs() to query potential configurations. Configuration | 18 // 1. Use GetConfigs() to query potential configurations. Configuration |
18 // information includes: | 19 // information includes: |
19 // a. Bitstream format. | 20 // a. Bitstream format. |
20 // b. Output picture format. | 21 // b. Output picture format. |
21 // c. Output picture buffer storage type. | 22 // c. Output picture buffer storage type. |
22 // 2. Select configuration that suits you and Create() the decoder with the | 23 // 2. Select configuration that suits you and Create() the decoder with the |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // |callback| is one-time callback that will be called once the abortion | 193 // |callback| is one-time callback that will be called once the abortion |
193 // request has been completed. | 194 // request has been completed. |
194 // | 195 // |
195 // Returns PP_TRUE on acceptance of abort request and PP_FALSE if request to | 196 // Returns PP_TRUE on acceptance of abort request and PP_FALSE if request to |
196 // abort is rejected by the decoder. | 197 // abort is rejected by the decoder. |
197 PP_Bool (*Abort)(PP_Resource video_decoder, | 198 PP_Bool (*Abort)(PP_Resource video_decoder, |
198 struct PP_CompletionCallback callback); | 199 struct PP_CompletionCallback callback); |
199 }; | 200 }; |
200 | 201 |
201 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ | 202 #endif /* PPAPI_C_DEV_PPB_VIDEO_DECODER_DEV_H_ */ |
OLD | NEW |