| Index: ppapi/c/pp_media_codec.h
|
| diff --git a/ppapi/c/pp_media_codec.h b/ppapi/c/pp_media_codec.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..028e80a33ac9b2d8525fe159e7f7eb61a5a13371
|
| --- /dev/null
|
| +++ b/ppapi/c/pp_media_codec.h
|
| @@ -0,0 +1,82 @@
|
| +/* Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +/* From pp_media_codec.idl modified Thu Apr 10 17:40:02 2014. */
|
| +
|
| +#ifndef PPAPI_C_PP_MEDIA_CODEC_H_
|
| +#define PPAPI_C_PP_MEDIA_CODEC_H_
|
| +
|
| +#include "ppapi/c/pp_macros.h"
|
| +#include "ppapi/c/pp_size.h"
|
| +#include "ppapi/c/pp_stdint.h"
|
| +
|
| +/**
|
| + * @file
|
| + * Video decoder profiles.
|
| + */
|
| +
|
| +
|
| +/**
|
| + * @addtogroup Enums
|
| + * @{
|
| + */
|
| +typedef enum {
|
| + PP_MEDIACODEC_H264PROFILE_BASELINE = 0,
|
| + PP_MEDIACODEC_H264PROFILE_MAIN = 1,
|
| + PP_MEDIACODEC_H264PROFILE_EXTENDED = 2,
|
| + PP_MEDIACODEC_H264PROFILE_HIGH = 3,
|
| + PP_MEDIACODEC_H264PROFILE_HIGH10PROFILE = 4,
|
| + PP_MEDIACODEC_H264PROFILE_HIGH422PROFILE = 5,
|
| + PP_MEDIACODEC_H264PROFILE_HIGH444PREDICTIVEPROFILE = 6,
|
| + PP_MEDIACODEC_H264PROFILE_SCALABLEBASELINE = 7,
|
| + PP_MEDIACODEC_H264PROFILE_SCALABLEHIGH = 8,
|
| + PP_MEDIACODEC_H264PROFILE_STEREOHIGH = 9,
|
| + PP_MEDIACODEC_H264PROFILE_MULTIVIEWHIGH = 10,
|
| + PP_MEDIACODEC_VP8PROFILE_MAIN = 11,
|
| + PP_MEDIACODEC_VP9PROFILE_MAIN = 12,
|
| + PP_MEDIACODEC_PROFILE_MAX = PP_MEDIACODEC_VP9PROFILE_MAIN
|
| +} PP_MediaCodec_Profile;
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +/**
|
| + * @addtogroup Structs
|
| + * @{
|
| + */
|
| +/**
|
| + * Struct describing a decoded video picture. The decoded picture data from the
|
| + * bitstream buffer corresponding to |picture_id| is stored in the GL texture
|
| + * corresponding to |texture_id|.
|
| + */
|
| +struct PP_MediaCodec_PictureBuffer {
|
| + /**
|
| + * Identifier of the last bitstream buffer which decoded into this picture.
|
| + * See the PPB_MediaCodecVideoDecoder function Decode() for more details.
|
| + */
|
| + int32_t picture_id;
|
| + /**
|
| + * Texture ID in the plugin's GL context. The plugin can use this to render
|
| + * the decoded picture.
|
| + */
|
| + uint32_t texture_id;
|
| + /**
|
| + * The type of GL texture used to hold the decoded picture. The possible
|
| + * values are:
|
| + * GL_TEXTURE_2D
|
| + * GL_TEXTURE_RECTANGLE_ARB
|
| + */
|
| + uint32_t texture_target;
|
| + /**
|
| + * Dimensions of the texture holding the decoded picture.
|
| + */
|
| + struct PP_Size texture_size;
|
| +};
|
| +/**
|
| + * @}
|
| + */
|
| +
|
| +#endif /* PPAPI_C_PP_MEDIA_CODEC_H_ */
|
| +
|
|
|