/* Copyright 2014 The Chromium Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* From ppb_video_decoder.idl modified Mon Sep 28 15:23:30 2015. */ #ifndef PPAPI_C_PPB_VIDEO_DECODER_H_ #define PPAPI_C_PPB_VIDEO_DECODER_H_ #include "ppapi/c/pp_bool.h" #include "ppapi/c/pp_codecs.h" #include "ppapi/c/pp_completion_callback.h" #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_macros.h" #include "ppapi/c/pp_point.h" #include "ppapi/c/pp_rect.h" #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_size.h" #include "ppapi/c/pp_stdint.h" #define PPB_VIDEODECODER_INTERFACE_0_1 … #define PPB_VIDEODECODER_INTERFACE_0_2 … #define PPB_VIDEODECODER_INTERFACE_1_0 … #define PPB_VIDEODECODER_INTERFACE_1_1 … #define PPB_VIDEODECODER_INTERFACE … /** * @file * This file defines the <code>PPB_VideoDecoder</code> interface. */ /** * @addtogroup Interfaces * @{ */ /** * Video decoder interface. * * Typical usage: * - Call Create() to create a new video decoder resource. * - Call Initialize() to initialize it with a 3d graphics context and the * desired codec profile. * - Call Decode() continuously (waiting for each previous call to complete) to * push bitstream buffers to the decoder. * - Call GetPicture() continuously (waiting for each previous call to complete) * to pull decoded pictures from the decoder. * - Call Flush() to signal end of stream to the decoder and perform shutdown * when it completes. * - Call Reset() to quickly stop the decoder (e.g. to implement Seek) and wait * for the callback before restarting decoding at another point. * - To destroy the decoder, the plugin should release all of its references to * it. Any pending callbacks will abort before the decoder is destroyed. * * Available video codecs vary by platform. * All: theora, vorbis, vp8. * Chrome and ChromeOS: aac, h264. * ChromeOS: mpeg4. */ struct PPB_VideoDecoder_1_1 { … }; PPB_VideoDecoder; struct PPB_VideoDecoder_0_1 { … }; struct PPB_VideoDecoder_0_2 { … }; struct PPB_VideoDecoder_1_0 { … }; /** * @} */ #endif /* PPAPI_C_PPB_VIDEO_DECODER_H_ */