[vlc-commits] avcodec: va: disable VAAPI 10bits for now
Thomas Guillem
git at videolan.org
Fri Jun 16 17:38:51 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jun 16 17:36:42 2017 +0200| [561f0ee85dd29355ac4a072994b7bbc0e127008e] | committer: Thomas Guillem
avcodec: va: disable VAAPI 10bits for now
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=561f0ee85dd29355ac4a072994b7bbc0e127008e
---
modules/codec/avcodec/va.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules/codec/avcodec/va.c b/modules/codec/avcodec/va.c
index 1298f24e1e..4a7e7efd9b 100644
--- a/modules/codec/avcodec/va.c
+++ b/modules/codec/avcodec/va.c
@@ -38,8 +38,17 @@ vlc_fourcc_t vlc_va_GetChroma(enum PixelFormat hwfmt, enum PixelFormat swfmt)
switch (hwfmt)
{
case AV_PIX_FMT_VAAPI_VLD:
- return VLC_CODEC_VAAPI_420;
-
+ switch (swfmt)
+ {
+ case AV_PIX_FMT_YUV420P:
+ return VLC_CODEC_VAAPI_420;
+ /* TODO: add 10 bits support
+ * case AV_PIX_FMT_YUV420P10LE:
+ * return VLC_CODEC_VAAPI_420_10B;
+ */
+ default:
+ return 0;
+ }
case AV_PIX_FMT_DXVA2_VLD:
switch (swfmt)
{
More information about the vlc-commits
mailing list