summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
Diffstat (limited to 'video.h')
-rw-r--r--video.h11
1 files changed, 6 insertions, 5 deletions
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 *,