mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
hwaccel: do not offer unsupported pixel formats
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
ec0e92002b
commit
78bc4d69eb
@ -60,10 +60,18 @@ static const uint8_t div6[QP_MAX_NUM + 1] = {
|
||||
};
|
||||
|
||||
static const enum AVPixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = {
|
||||
#if CONFIG_H264_DXVA2_HWACCEL
|
||||
AV_PIX_FMT_DXVA2_VLD,
|
||||
#endif
|
||||
#if CONFIG_H264_VAAPI_HWACCEL
|
||||
AV_PIX_FMT_VAAPI_VLD,
|
||||
#endif
|
||||
#if CONFIG_H264_VDA_HWACCEL
|
||||
AV_PIX_FMT_VDA_VLD,
|
||||
#endif
|
||||
#if CONFIG_H264_VDPAU_HWACCEL
|
||||
AV_PIX_FMT_VDPAU,
|
||||
#endif
|
||||
AV_PIX_FMT_YUVJ420P,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
@ -131,10 +131,18 @@ const enum AVPixelFormat ff_pixfmt_list_420[] = {
|
||||
};
|
||||
|
||||
const enum AVPixelFormat ff_hwaccel_pixfmt_list_420[] = {
|
||||
#if CONFIG_DXVA2
|
||||
AV_PIX_FMT_DXVA2_VLD,
|
||||
#endif
|
||||
#if CONFIG_VAAPI
|
||||
AV_PIX_FMT_VAAPI_VLD,
|
||||
#endif
|
||||
#if CONFIG_VDA
|
||||
AV_PIX_FMT_VDA_VLD,
|
||||
#endif
|
||||
#if CONFIG_VDPAU
|
||||
AV_PIX_FMT_VDPAU,
|
||||
#endif
|
||||
AV_PIX_FMT_YUV420P,
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user