]> git.sesse.net Git - ffmpeg/commit
vdpau: add helper for surface chroma type and size
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 19 Dec 2014 17:15:09 +0000 (19:15 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 25 Dec 2014 19:47:49 +0000 (20:47 +0100)
commitc220a60f92dde9c7c118fc4deddff5c1f617cda9
treecc4d108bb778a803260ff6bbfb7c6658a66558ff
parent6c99c92a42add7f6a462114d5a4a53c93c551058
vdpau: add helper for surface chroma type and size

Since the VDPAU pixel format does not distinguish between different
VDPAU video surface chroma types, we need another way to pass this
data to the application.

Originally VDPAU in libavcodec only supported decoding to 8-bits YUV
with 4:2:0 chroma sampling. Correspondingly, applications assumed that
libavcodec expected VDP_CHROMA_TYPE_420 video surfaces for output.
However some of the new HEVC profiles proposed for addition to VDPAU
would require different depth and/or sampling:
http://lists.freedesktop.org/archives/vdpau/2014-July/000167.html
...as would lossless AVC profiles:
http://lists.freedesktop.org/archives/vdpau/2014-November/000241.html

To preserve backward binary compatibility with existing applications,
a new av_vdpau_bind_context() flag is introduced in a further change.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
doc/APIchanges
libavcodec/vdpau.c
libavcodec/vdpau.h
libavcodec/version.h