From dab31e2367dfcb9fd3d1d05a9682f2eac1e6da8f Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 30 Jan 2012 15:58:21 +0100 Subject: Finished rewrite of video code, to support modules. --- video.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'video.h') diff --git a/video.h b/video.h index e33dca5..247006f 100644 --- a/video.h +++ b/video.h @@ -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 *, -- cgit v1.2.3