mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
hevcdec: add P010 support for D3D11VA
Given it's the same API than DVXA2 I don't know why the same output was not enabled for both. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
0ac2d86c47
commit
2835e9a9fd
@ -388,6 +388,9 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
|
|||||||
|
|
||||||
if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P ||
|
if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P ||
|
||||||
sps->pix_fmt == AV_PIX_FMT_YUV420P10) {
|
sps->pix_fmt == AV_PIX_FMT_YUV420P10) {
|
||||||
|
#if CONFIG_HEVC_D3D11VA_HWACCEL
|
||||||
|
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
|
||||||
|
#endif
|
||||||
#if CONFIG_HEVC_DXVA2_HWACCEL
|
#if CONFIG_HEVC_DXVA2_HWACCEL
|
||||||
*fmt++ = AV_PIX_FMT_DXVA2_VLD;
|
*fmt++ = AV_PIX_FMT_DXVA2_VLD;
|
||||||
#endif
|
#endif
|
||||||
@ -396,9 +399,6 @@ static enum AVPixelFormat get_format(HEVCContext *s, const HEVCSPS *sps)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) {
|
if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) {
|
||||||
#if CONFIG_HEVC_D3D11VA_HWACCEL
|
|
||||||
*fmt++ = AV_PIX_FMT_D3D11VA_VLD;
|
|
||||||
#endif
|
|
||||||
#if CONFIG_HEVC_VDPAU_HWACCEL
|
#if CONFIG_HEVC_VDPAU_HWACCEL
|
||||||
*fmt++ = AV_PIX_FMT_VDPAU;
|
*fmt++ = AV_PIX_FMT_VDPAU;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user