Re: [FFmpeg-devel] [PATCH v1] libavutil: add A2R10G10B10 & A2B10G10R10

2019-09-24 Thread Zachary Zhou
: [FFmpeg-devel] [PATCH v1] libavutil: add A2R10G10B10 & A2B10G10R10 Am Di., 10. Sept. 2019 um 11:35 Uhr schrieb Zachary Zhou : --- libavutil/hwcontext_vaapi.c | 6 ++ libavutil/pixfmt.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/libavutil/hwcontext_vaapi.c b/libav

Re: [FFmpeg-devel] [PATCH v4 1/2] libavuitl: add A2R10G10B10 & A2B10G10R10

2019-09-24 Thread Zachary Zhou
On 9/16/19 7:37 PM, Carl Eugen Hoyos wrote: Am Mi., 11. Sept. 2019 um 07:40 Uhr schrieb Zachary Zhou : +AV_PIX_FMT_A2R10G10B10, ///< 10-bit Pixel RGB formats. +AV_PIX_FMT_A2B10G10R10, ///< 10-bit Pixel BGR formats. Without more explanation, this patch is not ok imo. Thank Ca

Re: [FFmpeg-devel] [PATCH v4 2/2] avfilter: Add tonemap vaapi filter

2019-09-24 Thread Zachary Zhou
On 9/16/19 7:36 PM, Carl Eugen Hoyos wrote: Am Mi., 11. Sept. 2019 um 23:02 Uhr schrieb Carl Eugen Hoyos : Am Mi., 11. Sept. 2019 um 07:41 Uhr schrieb Zachary Zhou : It supports ICL platform. H2H (HDR to HDR): P010 -> A2R10G10B10 H2S (HDR to SDR): P010 -> ARGB +if (ctx->

[FFmpeg-devel] [PATCH v4 2/2] avfilter: Add tonemap vaapi filter

2019-09-10 Thread Zachary Zhou
It supports ICL platform. H2H (HDR to HDR): P010 -> A2R10G10B10 H2S (HDR to SDR): P010 -> ARGB --- configure | 2 + doc/filters.texi | 72 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.c|

[FFmpeg-devel] [PATCH v4 1/2] libavuitl: add A2R10G10B10 & A2B10G10R10

2019-09-10 Thread Zachary Zhou
--- libavutil/hwcontext_vaapi.c | 6 ++ libavutil/pixfmt.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index cf117640f2..9838250b66 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -125,

[FFmpeg-devel] [PATCH v1] libavutil: add A2R10G10B10 & A2B10G10R10

2019-09-10 Thread Zachary Zhou
--- libavutil/hwcontext_vaapi.c | 6 ++ libavutil/pixfmt.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index cf117640f2..9838250b66 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -125,

[FFmpeg-devel] [PATCH v5] avfilter/vaapi: add overlay_vaapi filter

2019-09-08 Thread Zachary Zhou
--- configure | 3 + doc/filters.texi | 50 libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_overlay_vaapi.c | 461 + 5 files changed, 516 insertions(+) create mode 100644 liba

Re: [FFmpeg-devel] [PATCH v4] avfilter/vaapi: add overlay_vaapi filter

2019-08-18 Thread Zachary Zhou
Hi Mark, Do you have any comments on this patch ? Thanks, Zachary On 7/11/19 5:29 PM, Zachary Zhou wrote: --- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_overlay_vaapi.c | 424

[FFmpeg-devel] [PATCH v4] avfilter/vaapi: add overlay_vaapi filter

2019-07-11 Thread Zachary Zhou
--- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_overlay_vaapi.c | 424 + 4 files changed, 427 insertions(+) create mode 100644 libavfilter/vf_overlay_vaapi.c diff --git a/co

[FFmpeg-devel] [PATCH v3] avfilter/vaapi: add overlay_vaapi filter

2019-06-20 Thread Zachary Zhou
--- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.c| 95 + libavfilter/vaapi_vpp.h| 5 + libavfilter/vf_overlay_vaapi.c | 365 + 6 files change

[FFmpeg-devel] [PATCH v2] avfilter/vaapi: add overlay_vaapi filter

2019-06-10 Thread Zachary Zhou
--- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.c| 95 + libavfilter/vaapi_vpp.h| 5 + libavfilter/vf_overlay_vaapi.c | 357 + 6 files change

[FFmpeg-devel] [PATCH v1] avfilter/vaapi: add overlay_vaapi filter

2019-06-09 Thread Zachary Zhou
--- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.c| 95 + libavfilter/vaapi_vpp.h| 5 + libavfilter/vf_overlay_vaapi.c | 352 + 6 files change

Re: [FFmpeg-devel] [PATCH RFC v2 1/3] fftools: Add thumbnail output to vaapi_h264 decoder

2019-04-09 Thread Zachary Zhou
On 4/8/19 5:18 PM, myp...@gmail.com wrote: On Mon, Apr 8, 2019 at 4:54 PM Zachary Zhou wrote: This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For

[FFmpeg-devel] [PATCH RFC v2 3/3] libavutil: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH RFC v2 2/3] libavcodec: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH RFC v2 1/3] fftools: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH v1 3/3] libavutil: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH v1 2/3] libavcodec: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH v1 1/3] fftools: Add thumbnail output to vaapi_h264 decoder

2019-04-08 Thread Zachary Zhou
This is sample code for reference HW support for decode+scaling in a single HW command (VDBOX+SFC). The primary target usage is video analytics, but can be used playback, transcoding, etc. For VAAPI - https://github.com/intel/libva basically, it allows multiple outputs (in different resolutions)

[FFmpeg-devel] [PATCH V1] avfilter: clean vaapi vpp code

2019-01-21 Thread Zachary Zhou
params.pipeline_flags: https://github.com/intel/libva/blob/master/va/va_vpp.h#L503-L529 params.filter_flags: https://github.com/intel/libva/blob/master/va/va.h#L217-L220 Signed-off-by: Zachary Zhou --- libavfilter/vf_deinterlace_vaapi.c | 4 libavfilter/vf_misc_vaapi.c| 10

[FFmpeg-devel] [PATCH V10] libavfilter: add transpose_vaapi filter

2019-01-16 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reversal/hflip/vflip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH V9] libavfilter: add transpose_vaapi filter

2019-01-15 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reversal/hflip/vflip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH V8] libavfilter: add transpose_vaapi filter

2019-01-02 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reversal/hflip/vflip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH V3] avfilter: Add tonemap vaapi filter

2018-12-28 Thread Zachary Zhou
It supports ICL platform. H2H (HDR to HDR): P010 -> RGB10 H2S (HDR to SDR): P010 -> RGB8 libva commit for HDR10 https://github.com/intel/libva/commit/cf11abe5e1b9c93ee75cf974076957162c1605b9 Signed-off-by: Zachary Zhou --- configure | 2 + doc/filter

[FFmpeg-devel] [PATCH V2] avfilter: Add tonemap vaapi filter

2018-12-27 Thread Zachary Zhou
It supports ICL platform. H2H (HDR to HDR): P010 -> RGB10 H2S (HDR to SDR): P010 -> RGB8 libva commit for HDR10 https://github.com/intel/libva/commit/cf11abe5e1b9c93ee75cf974076957162c1605b9 Signed-off-by: Zachary Zhou --- configure | 2 + libavfilter/Ma

[FFmpeg-devel] [PATCH V1] avfilter: Add tonemap vaapi filter

2018-12-24 Thread Zachary Zhou
It supports ICL platform. H2H (HDR to HDR): P010 -> RGB10 H2S (HDR to SDR): P010 -> RGB8 libva commit for HDR10 https://github.com/intel/libva/commit/cf11abe5e1b9c93ee75cf974076957162c1605b9 Signed-off-by: Zachary Zhou --- configure | 2 + libavfilter/Ma

[FFmpeg-devel] [PATCH V7] libavfilter: add transpose_vaapi filter

2018-12-24 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reversal/reversal_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH V1] avfilter: Add constant VAAPI_VPP_BACKGROUND_BLACK

2018-12-24 Thread Zachary Zhou
Signed-off-by: Zachary Zhou --- libavfilter/vaapi_vpp.h| 2 ++ libavfilter/vf_deinterlace_vaapi.c | 2 +- libavfilter/vf_misc_vaapi.c| 2 +- libavfilter/vf_procamp_vaapi.c | 2 +- libavfilter/vf_scale_vaapi.c | 2 +- 5 files changed, 6 insertions(+), 4 deletions

[FFmpeg-devel] [PATCH V6] libavfilter: add transpose_vaapi filter

2018-12-18 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add reveral/reveral_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH V5] libavfilter: add transpose_vaapi filter

2018-12-18 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add 180/180_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH v4] libavfilter: add transpose_vaapi filter

2018-11-28 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add 180/180_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH v3] libavfilter: add transpose_vaapi filter

2018-11-27 Thread Zachary Zhou
Swap width and height when do clock/cclock rotation Add 180/180_flip options ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=clock_flip" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou ---

[FFmpeg-devel] [PATCH v2] libavfilter: add transpose_vaapi filter

2018-11-13 Thread Zachary Zhou
h264_vaapi output.h264 Signed-off-by: Zachary Zhou --- configure| 2 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_transpose_vaapi.c | 337 +++ 4 files changed, 341 insertions(+) create m

[FFmpeg-devel] [PATCH V1] libavfilter: add transpose_vaapi filter

2018-11-13 Thread Zachary Zhou
From: Zachary Zhou It supports clockwise rotation by 0/90/180/270 degrees and mirroring by horizontal/vertical. video size is changed when rotation by 90/270. ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "transpose_vaapi=rotate=90:m

[FFmpeg-devel] [PATCH V3] libavfilter/vaapi: enable vaapi rotation feature via call Intel iHD driver

2018-10-30 Thread Zachary Zhou
ned-off-by: Zachary Zhou --- configure | 4 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.h | 1 + libavfilter/vf_rotate_vaapi.c | 252 ++ 5 files changed, 259 insertions(+) c

[FFmpeg-devel] [PATCH V2] libavfilter/vaapi: enable vaapi rotation feature via call Intel iHD driver

2018-10-24 Thread Zachary Zhou
input.264 -vf "rotation_vaapi=dir=1" -c:v h264_vaapi output.h264 Signed-off-by: Zachary Zhou --- configure | 3 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vaapi_vpp.h | 1 + libavfilter/vf_rotate_vaa

[FFmpeg-devel] [PATCH] tests/checkasm/Makefile: fix 'make fate' error when enable vaapi

2018-10-23 Thread Zachary Zhou
Reproduce the issue: $ ./configure --enable-libmfx --enable-vaapi --enable-shared --samples=fate-suite/ $ make fate LD tests/checkasm/checkasm /usr/bin/x86_64-linux-gnu-ld: libavutil/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName' //usr/lib/x86_64-linux-gnu/libX

[FFmpeg-devel] [PATCH] tests/checkasm/Makefile: fix 'make fate' error when enable vaapi

2018-10-23 Thread Zachary Zhou
Reproduce the issue: $ ./configure --enable-libmfx --enable-vaapi --enable-shared --samples=fate-suite/ $ make fate LD tests/checkasm/checkasm /usr/bin/x86_64-linux-gnu-ld: libavutil/libavutil.a(hwcontext_vaapi.o): undefined reference to symbol 'XDisplayName' //usr/lib/x86_64-linux-gnu/libX

[FFmpeg-devel] [PATCH] libavfilter/vaapi: enable vaapi rotation feature via call Intel iHD driver

2018-10-23 Thread Zachary Zhou
It supports clockwise rotation by 0/90/180/270 degrees defined in va/va_vpp.h, tested following command line on SKL platform ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.264 -vf "rotation_vaapi=angle=90" -c:v h264_vaapi output.h264 --- libavfilter/