/* Copyright 2012 The Chromium Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* From dev/pp_video_dev.idl modified Tue Oct 24 13:14:42 2017. */ #ifndef PPAPI_C_DEV_PP_VIDEO_DEV_H_ #define PPAPI_C_DEV_PP_VIDEO_DEV_H_ #include "ppapi/c/pp_macros.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_size.h" #include "ppapi/c/pp_stdint.h" /** * @file * NOTE: these must be kept in sync with the versions in media/! */ /** * @addtogroup Enums * @{ */ /** * Video format. * * Keep the values in this enum unique, as they imply format (h.264 vs. VP8, * for example), and keep the values for a particular format grouped together * for clarity. * Note: Keep these in sync with media::VideoCodecProfile. */ PP_VideoDecoder_Profile; PP_COMPILE_ASSERT_SIZE_IN_BYTES(…); /** * @} */ /** * @addtogroup Structs * @{ */ /** * The data structure for video bitstream buffer. */ struct PP_VideoBitstreamBuffer_Dev { … }; PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(…); /** * Struct for specifying texture-backed picture data. */ struct PP_PictureBuffer_Dev { … }; PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(…); /** * Structure to describe a decoded output frame. */ struct PP_Picture_Dev { … }; PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(…); /** * @} */ /** * @addtogroup Enums * @{ */ /** * Decoder error codes reported to the plugin. A reasonable naive * error handling policy is for the plugin to Destroy() the decoder on error. */ PP_VideoDecodeError_Dev; PP_COMPILE_ASSERT_SIZE_IN_BYTES(…); /** * @} */ #endif /* PPAPI_C_DEV_PP_VIDEO_DEV_H_ */