| OLD | NEW |
| (Empty) | |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From pp_media_codec.idl modified Mon Apr 21 10:58:58 2014. */ |
| 7 |
| 8 #ifndef PPAPI_C_PP_MEDIA_CODEC_H_ |
| 9 #define PPAPI_C_PP_MEDIA_CODEC_H_ |
| 10 |
| 11 #include "ppapi/c/pp_macros.h" |
| 12 #include "ppapi/c/pp_size.h" |
| 13 #include "ppapi/c/pp_stdint.h" |
| 14 |
| 15 /** |
| 16 * @file |
| 17 * Video profiles. |
| 18 */ |
| 19 |
| 20 |
| 21 /** |
| 22 * @addtogroup Enums |
| 23 * @{ |
| 24 */ |
| 25 typedef enum { |
| 26 PP_MEDIACODEC_H264PROFILE_BASELINE = 0, |
| 27 PP_MEDIACODEC_H264PROFILE_MAIN = 1, |
| 28 PP_MEDIACODEC_H264PROFILE_EXTENDED = 2, |
| 29 PP_MEDIACODEC_H264PROFILE_HIGH = 3, |
| 30 PP_MEDIACODEC_H264PROFILE_HIGH10PROFILE = 4, |
| 31 PP_MEDIACODEC_H264PROFILE_HIGH422PROFILE = 5, |
| 32 PP_MEDIACODEC_H264PROFILE_HIGH444PREDICTIVEPROFILE = 6, |
| 33 PP_MEDIACODEC_H264PROFILE_SCALABLEBASELINE = 7, |
| 34 PP_MEDIACODEC_H264PROFILE_SCALABLEHIGH = 8, |
| 35 PP_MEDIACODEC_H264PROFILE_STEREOHIGH = 9, |
| 36 PP_MEDIACODEC_H264PROFILE_MULTIVIEWHIGH = 10, |
| 37 PP_MEDIACODEC_VP8PROFILE_MAIN = 11, |
| 38 PP_MEDIACODEC_VIDEOPROFILE_MAX = PP_MEDIACODEC_VP8PROFILE_MAIN |
| 39 } PP_MediaCodec_VideoProfile; |
| 40 /** |
| 41 * @} |
| 42 */ |
| 43 |
| 44 /** |
| 45 * @addtogroup Structs |
| 46 * @{ |
| 47 */ |
| 48 /** |
| 49 * Struct describing a decoded video picture. The decoded picture data is stored |
| 50 * in the GL texture corresponding to |texture_id|. The plugin can determine |
| 51 * which Decode call generated the picture using |decode_id|. |
| 52 */ |
| 53 struct PP_MediaCodec_Picture { |
| 54 /** |
| 55 * |decode_id| parameter of the Decode call which generated this picture. |
| 56 * See the PPB_MediaCodecVideoDecoder function Decode() for more details. |
| 57 */ |
| 58 uint32_t decode_id; |
| 59 /** |
| 60 * Texture ID in the plugin's GL context. The plugin can use this to render |
| 61 * the decoded picture. |
| 62 */ |
| 63 uint32_t texture_id; |
| 64 /** |
| 65 * The GL texture target for the decoded picture. Possible values are: |
| 66 * GL_TEXTURE_2D (normalized texture coordinates) |
| 67 * GL_TEXTURE_RECTANGLE_ARB (dimension dependent texture coordinates) |
| 68 * |
| 69 * The pixel format of the texture is GL_RGBA. |
| 70 */ |
| 71 uint32_t texture_target; |
| 72 /** |
| 73 * Dimensions of the texture holding the decoded picture. |
| 74 */ |
| 75 struct PP_Size texture_size; |
| 76 }; |
| 77 /** |
| 78 * @} |
| 79 */ |
| 80 |
| 81 #endif /* PPAPI_C_PP_MEDIA_CODEC_H_ */ |
| 82 |
| OLD | NEW |