diff options
Diffstat (limited to 'video.h')
-rw-r--r-- | video.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -47,16 +47,17 @@ extern unsigned VideoGetSurface(VideoHwDecoder *); extern void VideoReleaseSurface(VideoHwDecoder *, unsigned); #ifdef LIBAVCODEC_VERSION + /// Callback to negotiate the PixelFormat. +extern enum PixelFormat Video_get_format(VideoHwDecoder *, AVCodecContext *, + const enum PixelFormat *); + /// Render a ffmpeg frame. -extern void VideoRenderFrame(VideoHwDecoder *, AVCodecContext *, AVFrame *); +extern void VideoRenderFrame(VideoHwDecoder *, const AVCodecContext *, + const AVFrame *); /// Get ffmpeg vaapi context. extern struct vaapi_context *VideoGetVaapiContext(VideoHwDecoder *); - /// Callback to negotiate the PixelFormat. -extern enum PixelFormat Video_get_format(VideoHwDecoder *, AVCodecContext *, - const enum PixelFormat *); - #ifdef AVCODEC_VDPAU_H /// Draw vdpau render state. extern void VideoDrawRenderState(VideoHwDecoder *, |