aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/vdpau_functions.inc
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-06-04 22:29:21 +0200
committerGravatar wm4 <wm4@nowhere>2015-06-04 22:29:26 +0200
commitaf58bfb62b4ce20aac525ca8a1d5f93c7f114fa6 (patch)
treee717a88ca860a01f9473ab99c807906aae0e85ef /video/vdpau_functions.inc
parentc06cd1b99399260a272537e1b1c5991919c26382 (diff)
vo_vdpau: check maximum video size
Check the maximum size of video surfaces, and refuse initialization if the video is too large for them. Maybe we could do something more sophisticated, like inserting a software scaler. On the other hand, this would have a very questionable benefit, as it would be guaranteed to be too slow.
Diffstat (limited to 'video/vdpau_functions.inc')
-rw-r--r--video/vdpau_functions.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vdpau_functions.inc b/video/vdpau_functions.inc
index 001a0e9906..a89fe4acd6 100644
--- a/video/vdpau_functions.inc
+++ b/video/vdpau_functions.inc
@@ -45,3 +45,5 @@ VDP_FUNCTION(VdpVideoSurfaceDestroy, VDP_FUNC_ID_VIDEO_SURFACE_DESTROY, video_su
VDP_FUNCTION(VdpVideoSurfacePutBitsYCbCr, VDP_FUNC_ID_VIDEO_SURFACE_PUT_BITS_Y_CB_CR, video_surface_put_bits_y_cb_cr)
VDP_FUNCTION(VdpVideoSurfaceGetBitsYCbCr, VDP_FUNC_ID_VIDEO_SURFACE_GET_BITS_Y_CB_CR, video_surface_get_bits_y_cb_cr)
VDP_FUNCTION(VdpVideoSurfaceGetParameters, VDP_FUNC_ID_VIDEO_SURFACE_GET_PARAMETERS, video_surface_get_parameters)
+VDP_FUNCTION(VdpVideoSurfaceQueryCapabilities, VDP_FUNC_ID_VIDEO_SURFACE_QUERY_CAPABILITIES, video_surface_query_capabilities)
+VDP_FUNCTION(VdpOutputSurfaceQueryCapabilities, VDP_FUNC_ID_OUTPUT_SURFACE_QUERY_CAPABILITIES, output_surface_query_capabilities)