[FFmpeg-devel] [PATCH 1/2] lavfi/dnn: Modify error message for incorrect backend_type

2022-12-30 Thread Ting Fu
Signed-off-by: Ting Fu --- libavfilter/dnn/dnn_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/dnn/dnn_interface.c b/libavfilter/dnn/dnn_interface.c index 554a36b0dc..fa484c0905 100644 --- a/libavfilter/dnn/dnn_interface.c +++ b/libavfilter/dnn/dnn_inte

[FFmpeg-devel] 3 more dithering mode in paletteuse

2022-12-30 Thread Clément Bœsch
Hi, This patchset is to be applied on top of the previous one. Here are some demonstrations of all the dithering with 2bpp: https://imgur.com/a/2a1p4R8 Source images: 1. https://unsplash.com/photos/P4epudldYMU 2. https://unsplash.com/photos/iDNvparRZ2Q Note: both got resized to fit within a 102

[FFmpeg-devel] [PATCH 1/4] avfilter/paletteuse: add sierra3 dithering

2022-12-30 Thread Clément Bœsch
Sierra3 according to https://bisqwit.iki.fi/jutut/kuvat/ordered_dither/error_diffusion.txt: * 5 3 2 4 5 4 2 2 3 2 / 32 --- doc/filters.texi| 2 ++ libavfilter/vf_paletteuse.c | 30 ++ 2 files changed, 32 insertions(+) dif

[FFmpeg-devel] [PATCH 2/4] avfilter/paletteuse: add burkes dithering

2022-12-30 Thread Clément Bœsch
Burkes according to https://bisqwit.iki.fi/jutut/kuvat/ordered_dither/error_diffusion.txt: * 8 4 2 4 8 4 2 / 32 --- doc/filters.texi| 2 ++ libavfilter/vf_paletteuse.c | 24 2 files changed, 26 insertions(+) diff --git a/doc/filters.tex

[FFmpeg-devel] [PATCH 3/4] avfilter/paletteuse: add atkinson dithering

2022-12-30 Thread Clément Bœsch
Atkinson according to https://bisqwit.iki.fi/jutut/kuvat/ordered_dither/error_diffusion.txt: * 1 1/ 8 1 1 1 1 --- doc/filters.texi| 2 ++ libavfilter/vf_paletteuse.c | 23 +++ 2 files changed, 25 insertions(+) diff --git a/doc/filt

[FFmpeg-devel] [PATCH 4/4] avfilter/paletteuse: use explicit key indexes in set_frame_lut

2022-12-30 Thread Clément Bœsch
--- libavfilter/vf_paletteuse.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c index 252ad746f0..944ff5c74d 100644 --- a/libavfilter/vf_paletteuse.c +++ b/libavfilter/vf_paletteuse.c @@ -918,15 +918,1

Re: [FFmpeg-devel] 3 more dithering mode in paletteuse

2022-12-30 Thread Clément Bœsch
On Fri, Dec 30, 2022 at 12:34:51PM +0100, Clément Bœsch wrote: [...] > Here are some demonstrations of all the dithering with 2bpp: > https://imgur.com/a/2a1p4R8 Sorry, this is obviously 1bpp -- Clément B. ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

[FFmpeg-devel] [PATCH] avformat/oggenc: don't flush twice when the last packet is side data only

2022-12-30 Thread James Almer
Commit 18f24527eb accidentally made side data only packets be handled like a flush request. Fix this regression by effectively ignoring them as was the original intention. Signed-off-by: James Almer --- libavformat/oggenc.c | 4 ++-- tests/ref/lavf/ogg | 2 +- 2 files changed, 3 insertions(+),

[FFmpeg-devel] [RFC PATCH] avcodec/nvenc: add alpha layer encoding support

2022-12-30 Thread Zhao Zhili
From: Zhao Zhili Signed-off-by: Zhao Zhili --- I need help. A lot of things doesn't work as Nvidia's doc: 1. Global header is broken. NV_ENC_SEQUENCE_PARAM_PAYLOAD doesn't work with multi SPS/PPS. It output VPS, SPS_0, SPS_1, PPS_0, with PPS_1 missing. 2. NV_ENC_LOCK_BITSTREAM.alphaLayerSize

Re: [FFmpeg-devel] [RFC PATCH] avcodec/nvenc: add alpha layer encoding support

2022-12-30 Thread Timo Rothenpieler
On 30.12.2022 18:50, Zhao Zhili wrote: From: Zhao Zhili Signed-off-by: Zhao Zhili --- I need help. A lot of things doesn't work as Nvidia's doc: 1. Global header is broken. NV_ENC_SEQUENCE_PARAM_PAYLOAD doesn't work with multi SPS/PPS. It output VPS, SPS_0, SPS_1, PPS_0, with PPS_1 missin