From a7fe47e49521009e2790e28c286ef199dae0b4f5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 4 May 2014 10:50:32 +0200 Subject: vdpau: deduplicate video surface upload code This was a minor code duplication between vf_vdpaupp.c and vo_vdpau.c. (In theory, we could always require using vf_vdpaupp with vo_vdpau, but I think it's better if vo_vdpau can work standalone.) --- video/vdpau.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/vdpau.h') diff --git a/video/vdpau.h b/video/vdpau.h index 1b81062bb7..a4396c53f2 100644 --- a/video/vdpau.h +++ b/video/vdpau.h @@ -69,4 +69,7 @@ struct mp_image *mp_vdpau_get_video_surface(struct mp_vdpau_ctx *ctx, bool mp_vdpau_get_format(int imgfmt, VdpChromaType *out_chroma_type, VdpYCbCrFormat *out_pixel_format); +struct mp_image *mp_vdpau_upload_video_surface(struct mp_vdpau_ctx *ctx, + struct mp_image *mpi); + #endif -- cgit v1.2.3