summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-30 15:58:21 +0100
committerJohns <johns98@gmx.net>2012-01-30 15:58:21 +0100
commitdab31e2367dfcb9fd3d1d05a9682f2eac1e6da8f (patch)
tree7bd004b9360b78aea4840f07578317ad9a219345 /video.h
parente613ff1f7e3095a450a729767313da2543c389bd (diff)
downloadvdr-plugin-softhddevice-dab31e2367dfcb9fd3d1d05a9682f2eac1e6da8f.tar.gz
vdr-plugin-softhddevice-dab31e2367dfcb9fd3d1d05a9682f2eac1e6da8f.tar.bz2
Finished rewrite of video code, to support modules.
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 *,