* [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
@ 2023-02-14 2:45 Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 2/3] hwcontext_dxva2: add mutiple supported formats Tong Wu
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Tong Wu @ 2023-02-14 2:45 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Tong Wu
Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
The added formats work with qsv acceleration and will not have
impact on d3d11va acceleration(-hwaccel d3d11va) since so far
these formats are still not supported by using d3d11va acceleration.
Hwupload and hwdownload can work with the added formats.
Signed-off-by: Tong Wu <tong1.wu@intel.com>
---
libavutil/hwcontext_d3d11va.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
index 363ec6a47d..aa50538d64 100644
--- a/libavutil/hwcontext_d3d11va.c
+++ b/libavutil/hwcontext_d3d11va.c
@@ -89,6 +89,13 @@ static const struct {
{ DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
{ DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
{ DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
+ { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
+ { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
+ { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
+ { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
+ { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
+ { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
+ { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
// Special opaque formats. The pix_fmt is merely a place holder, as the
// opaque format cannot be accessed directly.
{ DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
--
2.39.1.windows.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* [FFmpeg-devel] [PATCH v3 2/3] hwcontext_dxva2: add mutiple supported formats
2023-02-14 2:45 [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Tong Wu
@ 2023-02-14 2:45 ` Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 3/3] qsv: remove CONFIG_VAAPI for mutiple formats Tong Wu
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Tong Wu @ 2023-02-14 2:45 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Tong Wu
Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
The added formats work with qsv acceleration and will not have
impact on dxva2 acceleration(-hwaccel dxva2) since so far
these formats are still not supported by using dxva2 acceleration.
Hwupload and hwdownload can work with the added formats.
Signed-off-by: Tong Wu <tong1.wu@intel.com>
---
libavutil/hwcontext_dxva2.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index 53d00fa815..ea378df720 100644
--- a/libavutil/hwcontext_dxva2.c
+++ b/libavutil/hwcontext_dxva2.c
@@ -82,6 +82,13 @@ static const struct {
} supported_formats[] = {
{ MKTAG('N', 'V', '1', '2'), AV_PIX_FMT_NV12 },
{ MKTAG('P', '0', '1', '0'), AV_PIX_FMT_P010 },
+ { MKTAG('A', 'Y', 'U', 'V'), AV_PIX_FMT_VUYX },
+ { MKTAG('Y', 'U', 'Y', '2'), AV_PIX_FMT_YUYV422 },
+ { MKTAG('Y', '2', '1', '0'), AV_PIX_FMT_Y210 },
+ { MKTAG('Y', '4', '1', '0'), AV_PIX_FMT_XV30 },
+ { MKTAG('P', '0', '1', '6'), AV_PIX_FMT_P012 },
+ { MKTAG('Y', '2', '1', '6'), AV_PIX_FMT_Y212 },
+ { MKTAG('Y', '4', '1', '6'), AV_PIX_FMT_XV36 },
{ D3DFMT_P8, AV_PIX_FMT_PAL8 },
{ D3DFMT_A8R8G8B8, AV_PIX_FMT_BGRA },
};
--
2.39.1.windows.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* [FFmpeg-devel] [PATCH v3 3/3] qsv: remove CONFIG_VAAPI for mutiple formats
2023-02-14 2:45 [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 2/3] hwcontext_dxva2: add mutiple supported formats Tong Wu
@ 2023-02-14 2:45 ` Tong Wu
2023-02-16 1:30 ` [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Xiang, Haihao
2023-02-22 12:46 ` James Almer
3 siblings, 0 replies; 8+ messages in thread
From: Tong Wu @ 2023-02-14 2:45 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Tong Wu
Remove CONFIG_VAAPI for VUYX, YUYV422, Y210, XV30, Y212, XV36.
Make 8-bit, 10-bit, 12-bit YUV 4:2:2 video sources as well as YUV 4:4:4
video sources supported by d3d11va and dxva2 just like what VAAPI does.
Sign-off-by: Tong Wu <tong1.wu@intel.com>
---
libavcodec/qsv.c | 4 ----
libavutil/hwcontext_qsv.c | 6 +++---
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 7af154202c..8eabf46b45 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -208,7 +208,6 @@ enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc)
case MFX_FOURCC_P8: return AV_PIX_FMT_PAL8;
case MFX_FOURCC_A2RGB10: return AV_PIX_FMT_X2RGB10;
case MFX_FOURCC_RGB4: return AV_PIX_FMT_BGRA;
-#if CONFIG_VAAPI
case MFX_FOURCC_YUY2: return AV_PIX_FMT_YUYV422;
case MFX_FOURCC_Y210: return AV_PIX_FMT_Y210;
case MFX_FOURCC_AYUV: return AV_PIX_FMT_VUYX;
@@ -217,7 +216,6 @@ enum AVPixelFormat ff_qsv_map_fourcc(uint32_t fourcc)
case MFX_FOURCC_P016: return AV_PIX_FMT_P012;
case MFX_FOURCC_Y216: return AV_PIX_FMT_Y212;
case MFX_FOURCC_Y416: return AV_PIX_FMT_XV36;
-#endif
#endif
}
return AV_PIX_FMT_NONE;
@@ -245,7 +243,6 @@ int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc, uint16_t *shi
*fourcc = MFX_FOURCC_RGB4;
*shift = 0;
return AV_PIX_FMT_BGRA;
-#if CONFIG_VAAPI
case AV_PIX_FMT_YUV422P:
case AV_PIX_FMT_YUYV422:
*fourcc = MFX_FOURCC_YUY2;
@@ -277,7 +274,6 @@ int ff_qsv_map_pixfmt(enum AVPixelFormat format, uint32_t *fourcc, uint16_t *shi
*fourcc = MFX_FOURCC_Y416;
*shift = 1;
return AV_PIX_FMT_XV36;
-#endif
#endif
default:
return AVERROR(ENOSYS);
diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c
index 42851d4fd5..6780428875 100644
--- a/libavutil/hwcontext_qsv.c
+++ b/libavutil/hwcontext_qsv.c
@@ -115,11 +115,12 @@ static const struct {
{ AV_PIX_FMT_BGRA, MFX_FOURCC_RGB4, 0 },
{ AV_PIX_FMT_P010, MFX_FOURCC_P010, 1 },
{ AV_PIX_FMT_PAL8, MFX_FOURCC_P8, 0 },
-#if CONFIG_VAAPI
{ AV_PIX_FMT_YUYV422,
MFX_FOURCC_YUY2, 0 },
+#if CONFIG_VAAPI
{ AV_PIX_FMT_UYVY422,
MFX_FOURCC_UYVY, 0 },
+#endif
{ AV_PIX_FMT_Y210,
MFX_FOURCC_Y210, 1 },
// VUYX is used for VAAPI child device,
@@ -144,7 +145,6 @@ static const struct {
{ AV_PIX_FMT_XV36,
MFX_FOURCC_Y416, 1 },
#endif
-#endif
};
extern int ff_qsv_get_surface_base_handle(mfxFrameSurface1 *surf,
@@ -1526,7 +1526,6 @@ static int map_frame_to_surface(const AVFrame *frame, mfxFrameSurface1 *surface)
surface->Data.R = frame->data[0] + 2;
surface->Data.A = frame->data[0] + 3;
break;
-#if CONFIG_VAAPI
case AV_PIX_FMT_YUYV422:
surface->Data.Y = frame->data[0];
surface->Data.U = frame->data[0] + 1;
@@ -1558,6 +1557,7 @@ static int map_frame_to_surface(const AVFrame *frame, mfxFrameSurface1 *surface)
// use the value from the frame.
surface->Data.A = frame->data[0] + 6;
break;
+#if CONFIG_VAAPI
case AV_PIX_FMT_UYVY422:
surface->Data.Y = frame->data[0] + 1;
surface->Data.U = frame->data[0];
--
2.39.1.windows.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
2023-02-14 2:45 [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 2/3] hwcontext_dxva2: add mutiple supported formats Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 3/3] qsv: remove CONFIG_VAAPI for mutiple formats Tong Wu
@ 2023-02-16 1:30 ` Xiang, Haihao
2023-02-19 1:57 ` Xiang, Haihao
2023-02-22 12:46 ` James Almer
3 siblings, 1 reply; 8+ messages in thread
From: Xiang, Haihao @ 2023-02-16 1:30 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Wu, Tong1
On Di, 2023-02-14 at 10:45 +0800, Tong Wu wrote:
> Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
>
> The added formats work with qsv acceleration and will not have
> impact on d3d11va acceleration(-hwaccel d3d11va) since so far
> these formats are still not supported by using d3d11va acceleration.
>
> Hwupload and hwdownload can work with the added formats.
>
> Signed-off-by: Tong Wu <tong1.wu@intel.com>
> ---
> libavutil/hwcontext_d3d11va.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
> index 363ec6a47d..aa50538d64 100644
> --- a/libavutil/hwcontext_d3d11va.c
> +++ b/libavutil/hwcontext_d3d11va.c
> @@ -89,6 +89,13 @@ static const struct {
> { DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
> { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
> { DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
> + { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
> + { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
> + { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
> + { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
> + { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
> + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
> + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
> // Special opaque formats. The pix_fmt is merely a place holder, as the
> // opaque format cannot be accessed directly.
> { DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
LGTM, thx
- Haihao
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
2023-02-16 1:30 ` [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Xiang, Haihao
@ 2023-02-19 1:57 ` Xiang, Haihao
2023-02-22 6:38 ` Xiang, Haihao
0 siblings, 1 reply; 8+ messages in thread
From: Xiang, Haihao @ 2023-02-19 1:57 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Wu, Tong1
On Do, 2023-02-16 at 01:30 +0000, Xiang, Haihao wrote:
> On Di, 2023-02-14 at 10:45 +0800, Tong Wu wrote:
> > Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
> >
> > The added formats work with qsv acceleration and will not have
> > impact on d3d11va acceleration(-hwaccel d3d11va) since so far
> > these formats are still not supported by using d3d11va acceleration.
> >
> > Hwupload and hwdownload can work with the added formats.
> >
> > Signed-off-by: Tong Wu <tong1.wu@intel.com>
> > ---
> > libavutil/hwcontext_d3d11va.c | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
> > index 363ec6a47d..aa50538d64 100644
> > --- a/libavutil/hwcontext_d3d11va.c
> > +++ b/libavutil/hwcontext_d3d11va.c
> > @@ -89,6 +89,13 @@ static const struct {
> > { DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
> > { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
> > { DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
> > + { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
> > + { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
> > + { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
> > + { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
> > + { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
> > + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
> > + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
> > // Special opaque formats. The pix_fmt is merely a place holder, as the
> > // opaque format cannot be accessed directly.
> > { DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
>
> LGTM, thx
>
Is there any comment about this patchset? I will push it in the next few days if
there are no objections for v3,
Thanks
Haihao
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
2023-02-19 1:57 ` Xiang, Haihao
@ 2023-02-22 6:38 ` Xiang, Haihao
0 siblings, 0 replies; 8+ messages in thread
From: Xiang, Haihao @ 2023-02-22 6:38 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Wu, Tong1
On So, 2023-02-19 at 01:57 +0000, Xiang, Haihao wrote:
> On Do, 2023-02-16 at 01:30 +0000, Xiang, Haihao wrote:
> > On Di, 2023-02-14 at 10:45 +0800, Tong Wu wrote:
> > > Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
> > >
> > > The added formats work with qsv acceleration and will not have
> > > impact on d3d11va acceleration(-hwaccel d3d11va) since so far
> > > these formats are still not supported by using d3d11va acceleration.
> > >
> > > Hwupload and hwdownload can work with the added formats.
> > >
> > > Signed-off-by: Tong Wu <tong1.wu@intel.com>
> > > ---
> > > libavutil/hwcontext_d3d11va.c | 7 +++++++
> > > 1 file changed, 7 insertions(+)
> > >
> > > diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
> > > index 363ec6a47d..aa50538d64 100644
> > > --- a/libavutil/hwcontext_d3d11va.c
> > > +++ b/libavutil/hwcontext_d3d11va.c
> > > @@ -89,6 +89,13 @@ static const struct {
> > > { DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
> > > { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
> > > { DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
> > > + { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
> > > + { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
> > > + { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
> > > + { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
> > > + { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
> > > + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
> > > + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
> > > // Special opaque formats. The pix_fmt is merely a place holder, as
> > > the
> > > // opaque format cannot be accessed directly.
> > > { DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
> >
> > LGTM, thx
> >
>
> Is there any comment about this patchset? I will push it in the next few days
> if
> there are no objections for v3,
Pushed, thx
- Haihao
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
2023-02-14 2:45 [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Tong Wu
` (2 preceding siblings ...)
2023-02-16 1:30 ` [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Xiang, Haihao
@ 2023-02-22 12:46 ` James Almer
2023-02-23 2:54 ` Wu, Tong1
3 siblings, 1 reply; 8+ messages in thread
From: James Almer @ 2023-02-22 12:46 UTC (permalink / raw)
To: ffmpeg-devel
On 2/13/2023 11:45 PM, Tong Wu wrote:
> Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
>
> The added formats work with qsv acceleration and will not have
> impact on d3d11va acceleration(-hwaccel d3d11va) since so far
> these formats are still not supported by using d3d11va acceleration.
>
> Hwupload and hwdownload can work with the added formats.
>
> Signed-off-by: Tong Wu <tong1.wu@intel.com>
> ---
> libavutil/hwcontext_d3d11va.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c
> index 363ec6a47d..aa50538d64 100644
> --- a/libavutil/hwcontext_d3d11va.c
> +++ b/libavutil/hwcontext_d3d11va.c
> @@ -89,6 +89,13 @@ static const struct {
> { DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
> { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
> { DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
> + { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
Shouldn't this be VUYA?
> + { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
> + { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
> + { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
> + { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
> + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
> + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
> // Special opaque formats. The pix_fmt is merely a place holder, as the
> // opaque format cannot be accessed directly.
> { DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats
2023-02-22 12:46 ` James Almer
@ 2023-02-23 2:54 ` Wu, Tong1
0 siblings, 0 replies; 8+ messages in thread
From: Wu, Tong1 @ 2023-02-23 2:54 UTC (permalink / raw)
To: FFmpeg development discussions and patches
> On 2/13/2023 11:45 PM, Tong Wu wrote:
> > Add support for VUYX, YUYV422, Y210, XV30, P012, Y212, XV36.
> >
> > The added formats work with qsv acceleration and will not have impact
> > on d3d11va acceleration(-hwaccel d3d11va) since so far these formats
> > are still not supported by using d3d11va acceleration.
> >
> > Hwupload and hwdownload can work with the added formats.
> >
> > Signed-off-by: Tong Wu <tong1.wu@intel.com>
> > ---
> > libavutil/hwcontext_d3d11va.c | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/libavutil/hwcontext_d3d11va.c
> > b/libavutil/hwcontext_d3d11va.c index 363ec6a47d..aa50538d64 100644
> > --- a/libavutil/hwcontext_d3d11va.c
> > +++ b/libavutil/hwcontext_d3d11va.c
> > @@ -89,6 +89,13 @@ static const struct {
> > { DXGI_FORMAT_B8G8R8A8_UNORM, AV_PIX_FMT_BGRA },
> > { DXGI_FORMAT_R10G10B10A2_UNORM, AV_PIX_FMT_X2BGR10 },
> > { DXGI_FORMAT_R16G16B16A16_FLOAT, AV_PIX_FMT_RGBAF16 },
> > + { DXGI_FORMAT_AYUV, AV_PIX_FMT_VUYX },
>
> Shouldn't this be VUYA?
Please refer to https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format
According to the doc, The mapping to the view channel is
V->R8,
U->G8,
Y->B8,
and A->A8.
It is equivalent to AV_PIX_FMT_VUYX in FFmpeg. Thanks.
>
> > + { DXGI_FORMAT_YUY2, AV_PIX_FMT_YUYV422 },
> > + { DXGI_FORMAT_Y210, AV_PIX_FMT_Y210 },
> > + { DXGI_FORMAT_Y410, AV_PIX_FMT_XV30 },
> > + { DXGI_FORMAT_P016, AV_PIX_FMT_P012 },
> > + { DXGI_FORMAT_Y216, AV_PIX_FMT_Y212 },
> > + { DXGI_FORMAT_Y416, AV_PIX_FMT_XV36 },
> > // Special opaque formats. The pix_fmt is merely a place holder, as the
> > // opaque format cannot be accessed directly.
> > { DXGI_FORMAT_420_OPAQUE, AV_PIX_FMT_YUV420P },
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org
> with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-02-23 2:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 2:45 [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 2/3] hwcontext_dxva2: add mutiple supported formats Tong Wu
2023-02-14 2:45 ` [FFmpeg-devel] [PATCH v3 3/3] qsv: remove CONFIG_VAAPI for mutiple formats Tong Wu
2023-02-16 1:30 ` [FFmpeg-devel] [PATCH v3 1/3] hwcontext_d3d11va: add mutiple supported DXGI formats Xiang, Haihao
2023-02-19 1:57 ` Xiang, Haihao
2023-02-22 6:38 ` Xiang, Haihao
2023-02-22 12:46 ` James Almer
2023-02-23 2:54 ` Wu, Tong1
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git