diff options
author | wm4 <wm4@nowhere> | 2014-05-04 10:50:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-04 10:51:14 +0200 |
commit | a7fe47e49521009e2790e28c286ef199dae0b4f5 (patch) | |
tree | 559383a9d598067b6edf0dccae85bfcfd2c09c84 /video/vdpau.h | |
parent | 94441ed13963356fa25f7e52a12e36387220ebba (diff) | |
download | mpv-a7fe47e49521009e2790e28c286ef199dae0b4f5.tar.bz2 mpv-a7fe47e49521009e2790e28c286ef199dae0b4f5.tar.xz |
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.)
Diffstat (limited to 'video/vdpau.h')
-rw-r--r-- | video/vdpau.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |