summaryrefslogtreecommitdiffstats
path: root/video/out/drm_common.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2015-07-10 20:42:22 -0700
committerwm4 <wm4@nowhere>2015-07-11 20:01:28 +0200
commit5776b0c9408294815869bc447628bd77baaab226 (patch)
tree582439e8b81d000364cbe8755609dab1a66dd0bf /video/out/drm_common.c
parent30072508247aafb30205ecf78a020ed07a4edb84 (diff)
downloadmpv-5776b0c9408294815869bc447628bd77baaab226.tar.bz2
mpv-5776b0c9408294815869bc447628bd77baaab226.tar.xz
vo_vdpau: Implement rotation support
VDPAU has explicit support for rotating surfaces, and it is far less expensive than using the normal rotation filter (which would require reading video frames back into system memory), it is desirable to implement the VO rotation capability. To do this, we need to render the video frames to an output surface, without rotation, and then render from that surface to the final output surface to apply the rotation. It is important that the intermediate surface is the same size as the final one (only not rotated) so that hqscaling can be applied if requested by the user. (hqscaling is a mixer capability and so takes effect when the video surface is rendered to an output surface) Finally, we must remember to explicitly clear the final output surface as VDPAU only auto-clears output surfaces when rendering video surfaces.
Diffstat (limited to 'video/out/drm_common.c')
0 files changed, 0 insertions, 0 deletions