Commit f5c0b9aa authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '96753bd0'

* commit '96753bd0':
  dsputil: x86: Correct the number of registers used in put_no_rnd_pixels16_l2
  dsputil: add missing HAVE_YASM guard
  hwaccel: do not offer unsupported pixel formats
  vdpau: add missing pixel format for H.264
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents edde5621 96753bd0
...@@ -67,9 +67,18 @@ static const uint8_t div6[QP_MAX_NUM + 1] = { ...@@ -67,9 +67,18 @@ static const uint8_t div6[QP_MAX_NUM + 1] = {
}; };
static const enum AVPixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = { static const enum AVPixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = {
#if CONFIG_H264_DXVA2_HWACCEL
AV_PIX_FMT_DXVA2_VLD, AV_PIX_FMT_DXVA2_VLD,
#endif
#if CONFIG_H264_VAAPI_HWACCEL
AV_PIX_FMT_VAAPI_VLD, AV_PIX_FMT_VAAPI_VLD,
#endif
#if CONFIG_H264_VDA_HWACCEL
AV_PIX_FMT_VDA_VLD, AV_PIX_FMT_VDA_VLD,
#endif
#if CONFIG_H264_VDPAU_HWACCEL
AV_PIX_FMT_VDPAU,
#endif
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ420P,
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
......
...@@ -128,10 +128,18 @@ const enum AVPixelFormat ff_pixfmt_list_420[] = { ...@@ -128,10 +128,18 @@ const enum AVPixelFormat ff_pixfmt_list_420[] = {
}; };
const enum AVPixelFormat ff_hwaccel_pixfmt_list_420[] = { const enum AVPixelFormat ff_hwaccel_pixfmt_list_420[] = {
#if CONFIG_DXVA2
AV_PIX_FMT_DXVA2_VLD, AV_PIX_FMT_DXVA2_VLD,
#endif
#if CONFIG_VAAPI
AV_PIX_FMT_VAAPI_VLD, AV_PIX_FMT_VAAPI_VLD,
#endif
#if CONFIG_VDA
AV_PIX_FMT_VDA_VLD, AV_PIX_FMT_VDA_VLD,
#endif
#if CONFIG_VDPAU
AV_PIX_FMT_VDPAU, AV_PIX_FMT_VDPAU,
#endif
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV420P,
AV_PIX_FMT_NONE AV_PIX_FMT_NONE
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment