[FFmpeg-devel] [PATCH v7 01/14] vvcdec: add vvc decoder stub

2023-12-10 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/vvc/Makefile | 4 + libavcodec/vvc/vvcdec.c | 62 libavcodec/vvc/vvcdec.h | 204 6 files changed, 273 insertions(+) create mod

[FFmpeg-devel] [PATCH v7 05/14] vvcdec: add reference management

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_refs.c | 563 ++ libavcodec/vvc/vvc_refs.h | 57 3 files changed, 621 insertions(+) create mode 100644 libavcodec/vvc/vvc_refs.c create mode 100644 libavcodec/vvc/vvc_refs.h diff --git a/libavcod

[FFmpeg-devel] [PATCH v7 03/14] vvcdec: add parameter parser for sps, pps, ph, sh

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ps.c | 1150 +++ libavcodec/vvc/vvc_ps.h | 263 + libavcodec/vvc/vvcdec.h |7 + 4 files changed, 1421 insertions(+) create mode 100644 libavcodec/vvc/vvc_ps.c create mode 100644 libavcodec/v

[FFmpeg-devel] [PATCH v7 06/14] vvcdec: add motion vector decoder

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c | 18 + libavcodec/vvc/vvc_ctu.h |2 + libavcodec/vvc/vvc_mvs.c | 1799 ++ libavcodec/vvc/vvc_mvs.h | 46 + 5 files changed, 1866 insertions(+) create mode 100644 libavcodec/vvc/vvc_mvs.c

[FFmpeg-devel] [PATCH v7 04/14] vvcdec: add cabac decoder

2023-12-10 Thread Nuo Mi
add Context-based Adaptive Binary Arithmetic Coding (CABAC) decoder --- libavcodec/vvc/Makefile|2 + libavcodec/vvc/vvc_cabac.c | 2476 libavcodec/vvc/vvc_cabac.h | 126 ++ libavcodec/vvc/vvc_ctu.c | 32 + libavcodec/vvc/vvc_ctu.h | 463 +++

[FFmpeg-devel] [PATCH v7 09/14] vvcdec: add intra prediction

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c| 50 ++ libavcodec/vvc/vvc_ctu.h|2 + libavcodec/vvc/vvc_intra.c | 797 + libavcodec/vvc/vvc_intra.h | 49 ++ libavcodec/vvc/vvc_intra_template.c | 1015

[FFmpeg-devel] [PATCH v7 11/14] vvcdec: add dsp init and inv transform

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvcdsp.c | 141 +++ libavcodec/vvc/vvcdsp_template.c | 120 ++ 3 files changed, 262 insertions(+) create mode 100644 libavcodec/vvc/vvcdsp.c create mode 100644 libavcodec/vvc

[FFmpeg-devel] [PATCH v7 08/14] vvcdec: add inv transform 1d

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_itx_1d.c | 708 libavcodec/vvc/vvc_itx_1d.h | 52 +++ 3 files changed, 761 insertions(+) create mode 100644 libavcodec/vvc/vvc_itx_1d.c create mode 100644 libavcodec/vvc/vvc_itx_1d.h diff --git a/l

[FFmpeg-devel] [PATCH v7 13/14] vvcdec: add CTU thread logical

2023-12-10 Thread Nuo Mi
This is the main entry point for the CTU (Coding Tree Unit) decoder. The code will divide the CTU decoder into several stages. It will check the stage dependencies and run the stage decoder. --- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_thread.c | 799

[FFmpeg-devel] [PATCH v7 12/14] vvcdec: add CTU parser

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c | 2373 ++ libavcodec/vvc/vvc_ctu.h | 11 + 2 files changed, 2384 insertions(+) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 6138d2fc9f..4d0cd74a6e 100644 --- a/libavcodec/vvc/vvc_ctu.c +++ b/libavcodec/v

[FFmpeg-devel] [PATCH v7 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Nuo Mi
vvc decoder plug-in to avcodec. split frames into slices/tiles and send them to vvc_thread for further decoding reorder and wait for the frame decoding to be done and output the frame Features: + Support I, P, B frames + Support 8/10/12 bits, chroma 400, 420, 422, and 444 and range extensi

[FFmpeg-devel] [PATCH v7 07/14] vvcdec: add inter prediction

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_inter.c | 939 libavcodec/vvc/vvc_inter.h | 42 ++ libavcodec/vvc/vvc_inter_template.c | 1023 +++ libavcodec/vvc/vvcdec.h |5 + libavcodec/vvc

Re: [FFmpeg-devel] [PATCH v6 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Nuo Mi
On Sat, Dec 9, 2023 at 1:13 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Nuo Mi: > > Hi Andreas, > > thank you for the review. > > On Fri, Dec 8, 2023 at 8:17 PM Andreas Rheinhardt < > > andreas.rheinha...@outlook.com> wrote: > > > >> > >>> + > >>> +static int min_pu_arrays_ini

Re: [FFmpeg-devel] [PATCH 0/1] fate/jpegxl: add multiframe permuted TOC image parser

2023-12-10 Thread Andreas Rheinhardt
Leo Izen: > This patch requires a sample that hasn't been uploaded yet. It can be found > at [1] and it should be placed at jxl/orange.jxl once uploaded. It's 262k, > which is not very large, but large enough that I did not want to attach it > to this email. > > [1]: https://buzo.us/O.jxl > > sam

Re: [FFmpeg-devel] [PATCH v7 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Andreas Rheinhardt
Nuo Mi: > vvc decoder plug-in to avcodec. > split frames into slices/tiles and send them to vvc_thread for further > decoding > reorder and wait for the frame decoding to be done and output the frame > > Features: > + Support I, P, B frames > + Support 8/10/12 bits, chroma 400, 420, 422,

Re: [FFmpeg-devel] [PATCH 0/1] fate/jpegxl: add multiframe permuted TOC image parser

2023-12-10 Thread Leo Izen
On 12/10/23 09:07, Andreas Rheinhardt wrote: Leo Izen: This patch requires a sample that hasn't been uploaded yet. It can be found at [1] and it should be placed at jxl/orange.jxl once uploaded. It's 262k, which is not very large, but large enough that I did not want to attach it to this email.

[FFmpeg-devel] [PATCH v7 04/14] vvcdec: add cabac decoder

2023-12-10 Thread Nuo Mi
add Context-based Adaptive Binary Arithmetic Coding (CABAC) decoder --- libavcodec/vvc/Makefile|2 + libavcodec/vvc/vvc_cabac.c | 2476 libavcodec/vvc/vvc_cabac.h | 126 ++ libavcodec/vvc/vvc_ctu.c | 32 + libavcodec/vvc/vvc_ctu.h | 463 +++

[FFmpeg-devel] [PATCH v7 05/14] vvcdec: add reference management

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_refs.c | 560 ++ libavcodec/vvc/vvc_refs.h | 57 3 files changed, 618 insertions(+) create mode 100644 libavcodec/vvc/vvc_refs.c create mode 100644 libavcodec/vvc/vvc_refs.h diff --git a/libavcod

[FFmpeg-devel] [PATCH v7 06/14] vvcdec: add motion vector decoder

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c | 18 + libavcodec/vvc/vvc_ctu.h |2 + libavcodec/vvc/vvc_mvs.c | 1799 ++ libavcodec/vvc/vvc_mvs.h | 46 + 5 files changed, 1866 insertions(+) create mode 100644 libavcodec/vvc/vvc_mvs.c

[FFmpeg-devel] [PATCH v7 08/14] vvcdec: add inv transform 1d

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_itx_1d.c | 708 libavcodec/vvc/vvc_itx_1d.h | 52 +++ 3 files changed, 761 insertions(+) create mode 100644 libavcodec/vvc/vvc_itx_1d.c create mode 100644 libavcodec/vvc/vvc_itx_1d.h diff --git a/l

[FFmpeg-devel] [PATCH v7 07/14] vvcdec: add inter prediction

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_inter.c | 939 libavcodec/vvc/vvc_inter.h | 42 ++ libavcodec/vvc/vvc_inter_template.c | 1023 +++ libavcodec/vvc/vvcdec.h |5 + libavcodec/vvc

[FFmpeg-devel] [PATCH v7 09/14] vvcdec: add intra prediction

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ctu.c| 50 ++ libavcodec/vvc/vvc_ctu.h|2 + libavcodec/vvc/vvc_intra.c | 797 + libavcodec/vvc/vvc_intra.h | 49 ++ libavcodec/vvc/vvc_intra_template.c | 1015

[FFmpeg-devel] [PATCH v7 11/14] vvcdec: add dsp init and inv transform

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvcdsp.c | 141 +++ libavcodec/vvc/vvcdsp_template.c | 120 ++ 3 files changed, 262 insertions(+) create mode 100644 libavcodec/vvc/vvcdsp.c create mode 100644 libavcodec/vvc

[FFmpeg-devel] [PATCH v7 12/14] vvcdec: add CTU parser

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/vvc_ctu.c | 2373 ++ libavcodec/vvc/vvc_ctu.h | 11 + 2 files changed, 2384 insertions(+) diff --git a/libavcodec/vvc/vvc_ctu.c b/libavcodec/vvc/vvc_ctu.c index 6138d2fc9f..fa134d7d30 100644 --- a/libavcodec/vvc/vvc_ctu.c +++ b/libavcodec/v

[FFmpeg-devel] [PATCH v7 13/14] vvcdec: add CTU thread logical

2023-12-10 Thread Nuo Mi
This is the main entry point for the CTU (Coding Tree Unit) decoder. The code will divide the CTU decoder into several stages. It will check the stage dependencies and run the stage decoder. --- libavcodec/vvc/Makefile | 1 + libavcodec/vvc/vvc_thread.c | 799

[FFmpeg-devel] [PATCH v7 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Nuo Mi
vvc decoder plug-in to avcodec. split frames into slices/tiles and send them to vvc_thread for further decoding reorder and wait for the frame decoding to be done and output the frame Features: + Support I, P, B frames + Support 8/10/12 bits, chroma 400, 420, 422, and 444 and range extensi

Re: [FFmpeg-devel] [PATCH v7 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Nuo Mi
> > > +if (ret < 0) > > +goto fail; > > +} > > + > > +s->executor = ff_vvc_executor_alloc(s, FFMIN(cpu_count, > VVC_MAX_DELAYED_FRAMES)); > > You are still ignoring the user-provided thread-count, although you said > that you have fixed this. > sorry about this. I have

[FFmpeg-devel] [PATCH v7 03/14] vvcdec: add parameter parser for sps, pps, ph, sh

2023-12-10 Thread Nuo Mi
--- libavcodec/vvc/Makefile |1 + libavcodec/vvc/vvc_ps.c | 1150 +++ libavcodec/vvc/vvc_ps.h | 263 + libavcodec/vvc/vvcdec.h |7 + 4 files changed, 1421 insertions(+) create mode 100644 libavcodec/vvc/vvc_ps.c create mode 100644 libavcodec/v

[FFmpeg-devel] [PATCH v7 01/14] vvcdec: add vvc decoder stub

2023-12-10 Thread Nuo Mi
--- configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/vvc/Makefile | 4 + libavcodec/vvc/vvcdec.c | 62 libavcodec/vvc/vvcdec.h | 205 6 files changed, 274 insertions(+) create mod

Re: [FFmpeg-devel] [PATCH v7 14/14] vvcdec: add full vvc decoder

2023-12-10 Thread Nuo Mi
> > > > + > +if (AV_CEIL_RSHIFT(fc->tab.width, 5) != w32 || > AV_CEIL_RSHIFT(fc->tab.height, 5) != h32) { > +for (int i = LUMA; i <= CHROMA; i++) { > +av_freep(&fc->tab.msm[i]); > +fc->tab.msm[i] = av_calloc(w32, h32); > +if (!fc->tab.msm[i]) > +

[FFmpeg-devel] [PATCH v2 0/3] Fix some active sequences in subtitles

2023-12-10 Thread Oneric
Changes from v1: - ff_ass_bprint_text_event now only inserts a word-joiner if there isn’t already one anyway - added a third commit improving the handling of curly brackets for standard ASS renderers Heads up: As everytime FATE’s ASS reference samples are touched the commits contain CRLF e

[FFmpeg-devel] [PATCH v2 1/3] avcodec/webvttdec: honour bidi marks

2023-12-10 Thread Oneric
--- “” --- libavcodec/webvttdec.c | 2 +- tests/ref/fate/sub-webvtt2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/webvttdec.c b/libavcodec/webvttdec.c index 690f00dc47..990d150f16 100644 --- a/libavcodec/webvttdec.c +++ b/libavcodec/webvttdec.c @@ -39,7 +39

[FFmpeg-devel] [PATCH v2 2/3] avcodec/{ass, webvttdec}: fix handling of backslashes

2023-12-10 Thread Oneric
Backslashes cannot be escaped by a backslash in any ASS renderer, but unless followed by specific characters it is just printed out. Insert a word-joiner character after a backslash to break up active sequences without changing the visual output. --- “” --- libavcodec/ass.c | 9 - li

[FFmpeg-devel] [PATCH v2 3/3] avcodec/{ass, webvttdec}: more portable curly brace escapes

2023-12-10 Thread Oneric
Unlike what the old comment suggested, standard ASS has no character escape mechanism, but a closing curly bracket doesn't even need one. For manual authored sub files using a full-width variant of an apropiate font and with scaling and psacing modifiers is a common workaround. This is not an opti

Re: [FFmpeg-devel] [PATCH v6 0/8] avformat: introduce AVStreamGroup

2023-12-10 Thread James Almer
On 12/5/2023 7:43 PM, James Almer wrote: Addressed Anton's comments and added some documentation. Also split the common code some more in order to facilitate using it from different modules. I'm withdrawing the MP4 code for now as i've noticed a bug in the spec and reported it. Depending on what

[FFmpeg-devel] [PATCH] gdigrab: Allow capturing a window by its handle

2023-12-10 Thread Lena via ffmpeg-devel
x11grab can capture windows by their ID, but gdigrab can only capture windows by their names, internally calling FindWindowW to lookup its handle. This patch simply allows the user to specify a window handle directly. Signed-off-by: Lena --- libavdevice/gdigrab.c | 6 +- 1 file changed, 5

Re: [FFmpeg-devel] [PATCH] gdigrab: Allow capturing a window by its handle

2023-12-10 Thread Andreas Rheinhardt
Lena via ffmpeg-devel: > x11grab can capture windows by their ID, but gdigrab can only capture > windows by their names, internally calling FindWindowW to lookup its > handle. > > This patch simply allows the user to specify a window handle directly. > Signed-off-by: Lena > --- >  libavdevice/gdi

Re: [FFmpeg-devel] [PATCH] gdigrab: Allow capturing a window by its handle

2023-12-10 Thread Lena via ffmpeg-devel
I'm so sorry, will resend immediately. Andreas Rheinhardt via ffmpeg-devel: Lena via ffmpeg-devel: x11grab can capture windows by their ID, but gdigrab can only capture windows by their names, internally calling FindWindowW to lookup its handle. This patch simply allows the user to specify a

[FFmpeg-devel] Initial tickering at unifying ProRes encoder

2023-12-10 Thread Clément Bœsch
Hello there, I'm currently investigating an issue¹ affecting Kostya ProRes encoder which is not reproducible with Anatoliy encoder (but it's too early to say if the bug is not present there as well given the differences in quantization, and it's also unclear if the issue is even actually there in

[FFmpeg-devel] [PATCH 01/35] avcodec/proresenc_kostya: remove an unnecessary parenthesis level in MAKE_CODE() macro

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_kostya.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 52fe5639b1..58fc340879 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -429,7 +429,7 @@ static

[FFmpeg-devel] [PATCH 02/35] avcodec/proresenc_kostya: remove unused plane factor variables

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_kostya.c | 36 --- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 58fc340879..7aed3974c3 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/prorese

[FFmpeg-devel] [PATCH 03/35] avcodec/proresenc_kostya: remove redundant codebook assignments

2023-12-10 Thread Clément Bœsch
This is already assigned at declaration. --- libavcodec/proresenc_kostya.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 7aed3974c3..6e1d5a0cef 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c

[FFmpeg-devel] [PATCH 04/35] avcodec/proresenc_anatoliy: move run/lev to codebook LUT to shared proresdata

2023-12-10 Thread Clément Bœsch
This is going to be shared with proresenc_kostya in the upcoming commit. --- libavcodec/proresdata.c | 6 ++ libavcodec/proresdata.h | 2 ++ libavcodec/proresenc_anatoliy.c | 9 ++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/libavcodec/proresdata.c b/

[FFmpeg-devel] [PATCH 05/35] avcodec/proresenc_kostya: remove one LUT indirection for run/level to codebook mapping

2023-12-10 Thread Clément Bœsch
This is following the same logic as proresenc_anatoliy. --- libavcodec/proresenc_kostya.c | 47 +++ 1 file changed, 14 insertions(+), 33 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 6e1d5a0cef..f883ab550b 100644 ---

[FFmpeg-devel] [PATCH 08/35] avcodec/proresenc_kostya: save a few operations in DC encoding

2023-12-10 Thread Clément Bœsch
This matches the logic from proresenc_anatoliy. --- libavcodec/proresenc_kostya.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index f883ab550b..2d45f9a685 100644 --- a/libavcodec/proresenc_

[FFmpeg-devel] [PATCH 09/35] avcodec/proresenc_kostya: fix chroma quantisation matrix in frame header

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_kostya.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 2d45f9a685..103051830a 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -1019,7 +1019,7 @@ stat

[FFmpeg-devel] [PATCH 10/35] avcodec/proresenc_kostya: simplify quantization matrix bytestream writing

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_kostya.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index 103051830a..e0aa7cf47a 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresenc_kostya.c @@ -1014,12 +1014,

[FFmpeg-devel] [PATCH 06/35] avcodec/proresenc_anatoliy: remove duplicated define

2023-12-10 Thread Clément Bœsch
This is already defined in proresdata.h --- libavcodec/proresenc_anatoliy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 6b2e513bed..c6f49be9b8 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_an

[FFmpeg-devel] [PATCH 12/35] avcodec/proresenc_anatoliy: shuffle encode_codeword() code to match Kostya encoder

2023-12-10 Thread Clément Bœsch
Code is functionally identical, it's just rename of variables, cosmetics and branch logic shuffling. --- libavcodec/proresenc_anatoliy.c | 45 + 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_an

[FFmpeg-devel] [PATCH 11/35] avcodec/proresenc_anatoliy: use FRAME_ID defined in proresdata.h

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_anatoliy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index d6f5cefc16..804ff6ddf7 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -755,7 +755,7

[FFmpeg-devel] [PATCH 13/35] avcodec/proresenc_anatoliy: rework encode_codeword() prototype

2023-12-10 Thread Clément Bœsch
This matches the function of the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index c7e43fc88c..86e436615c 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 14/35] avcodec/proresenc_anatoliy: inline QSCALE()

2023-12-10 Thread Clément Bœsch
Also replaces 16384 with 0x4000. This makes the function slightly closer to same function in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 86e

[FFmpeg-devel] [PATCH 15/35] avcodec/proresenc_anatoliy: rename new_code/code to code/codebook

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_dcs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index b8433ee872..e79c465590 100644 --- a/l

[FFmpeg-devel] [PATCH 16/35] avcodec/proresenc_anatoliy: execute codebook FFMIN() at assignment

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_dcs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index e79c465590..f8feff850f 100644 --- a/libavcodec/pro

[FFmpeg-devel] [PATCH 17/35] avcodec/proresenc_anatoliy: reduce DC encoding function prototype differences with Kostya encoder

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_anatoliy.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index f8feff850f..97d681467d 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -2

[FFmpeg-devel] [PATCH 20/35] avcodec/proresenc_anatoliy: compute sign only once

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_dcs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 0de262c9c5..0d8ca5515f 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 18/35] avcodec/proresenc_anatoliy: directly work with blocks in encode_dcs()

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_dcs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 97d681467d..a418a12705 100644 --- a/libavcode

[FFmpeg-devel] [PATCH 19/35] avcodec/proresenc_anatoliy: import GET_SIGN() macro from Kostya encoder and use it

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_anatoliy.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index a418a12705..0de262c9c5 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -255,9

[FFmpeg-devel] [PATCH 21/35] avcodec/proresenc_anatoliy: rename new_dc to dc

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_dcs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 0d8ca5515f..4ea3d89126 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 23/35] avcodec/proresenc_kostya: add Anatoliy copyright

2023-12-10 Thread Clément Bœsch
Both encoders share a lot of code from both authors. --- libavcodec/proresenc_kostya.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index e0aa7cf47a..c6c045be73 100644 --- a/libavcodec/proresenc_kostya.c +++ b/libavcodec/proresen

[FFmpeg-devel] [PATCH 22/35] avcodec/proresenc_anatoliy: remove IS_NEGATIVE() macro

2023-12-10 Thread Clément Bœsch
This makes the function closer to encode_acs() in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 4ea3d89126..43dee7f79b 100644 --- a/libavcodec/prore

[FFmpeg-devel] [PATCH 24/35] avcodec/proresenc_anatoliy: rename TO_GOLOMB() to MAKE_CODE()

2023-12-10 Thread Clément Bœsch
This matches the name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 43dee7f79b..4b72798689 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/l

[FFmpeg-devel] [PATCH 25/35] avcodec/proresenc_anatoliy: shuffle declarations around in encode_dcs()

2023-12-10 Thread Clément Bœsch
This makes the function closer to the same function in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 4b72798689..56baeb9956 100644 --- a/l

[FFmpeg-devel] [PATCH 26/35] avcodec/proresenc_anatoliy: only pass down the first scale to encode_dcs()

2023-12-10 Thread Clément Bœsch
This matches encode_dcs() prototype from proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 56baeb9956..bdf7bface4 100644 --- a/libavcodec/proresen

[FFmpeg-devel] [PATCH 27/35] avcodec/proresenc_anatoliy: remove TO_GOLOMB2()

2023-12-10 Thread Clément Bœsch
A few cosmetics aside, this makes the function identical to the one with the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index bdf7bfac

[FFmpeg-devel] [PATCH 28/35] avcodec/proresenc_anatoliy: cosmetics to make encode_dcs() identical to the one in Kostya encoder

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_anatoliy.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index aed5c68b1b..0318379461 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoli

[FFmpeg-devel] [PATCH 29/35] avcodec/proresenc_anatoliy: replace get_level() with FFABS()

2023-12-10 Thread Clément Bœsch
This matches the code from proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 0318379461..88c6d47ab7 100644 --- a/libavcodec/proresenc_anatoliy.c +

[FFmpeg-devel] [PATCH 30/35] avcodec/proresenc_anatoliy: rework encode_ac_coeffs() prototype

2023-12-10 Thread Clément Bœsch
This makes the prototype closer to the function of the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 88c6d47ab7..57324a3b27 1006

[FFmpeg-devel] [PATCH 31/35] avcodec/proresenc_anatoliy: avoid using ff_ prefix in function arguments

2023-12-10 Thread Clément Bœsch
--- libavcodec/proresenc_anatoliy.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 57324a3b27..816c27e481 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -284,

[FFmpeg-devel] [PATCH 32/35] avcodec/proresenc_anatoliy: rework inner loop in encode_acs()

2023-12-10 Thread Clément Bœsch
This matches the logic from the function of the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 816c27e481..161a05a6e6 100644 -

[FFmpeg-devel] [PATCH 34/35] avcodec/proresenc_anatoliy: make a few cosmetics in encode_acs()

2023-12-10 Thread Clément Bœsch
This makes the function pretty much identical to the function of the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c i

[FFmpeg-devel] [PATCH 33/35] avcodec/proresenc_anatoliy: execute AC run/level FFMIN() at assignment

2023-12-10 Thread Clément Bœsch
This matches the logic from the function of the same name in proresenc_kostya. --- libavcodec/proresenc_anatoliy.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 161a05a6e6..2515ee38f8 100644

[FFmpeg-devel] [PATCH 35/35] avcodec/proresenc_kostya: make a few cosmetics in encode_acs()

2023-12-10 Thread Clément Bœsch
Unify cosmetics with encode_acs() from proresenc_anatoliy. --- libavcodec/proresenc_kostya.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c index c6c045be73..05e90bb236 100644 --- a/libavcodec/proresenc_kost

[FFmpeg-devel] [PATCH 07/35] avcodec/proresenc_anatoliy: move DC codebook LUT to shared proresdata

2023-12-10 Thread Clément Bœsch
This is going to be shared with proresenc_kostya in the upcoming commit. --- libavcodec/proresdata.c | 2 ++ libavcodec/proresdata.h | 1 + libavcodec/proresenc_anatoliy.c | 3 +-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/proresdata.c b/libavcodec/p

Re: [FFmpeg-devel] [PATCH] gdigrab: Allow capturing a window by its handle

2023-12-10 Thread Lena via ffmpeg-devel
x11grab can capture windows by their ID, but gdigrab can only capture windows by their names, internally calling FindWindowW to lookup its handle. This patch simply allows the user to specify a window handle directly. Signed-off-by: Lena --- libavdevice/gdigrab.c | 6 +- 1 file changed, 5 i

[FFmpeg-devel] [PATCH] doc/ffmpeg: fix -copy_ts typo, should be -copyts

2023-12-10 Thread Marth64
Signed-off-by: Marth64 --- doc/ffmpeg.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 6bcedd76d5..36fdaef879 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1861,7 +1861,7 @@ of seconds. The timestamp discontinuity correctio

Re: [FFmpeg-devel] [PATCH v4] avcodec/pngdec: read colorspace info when decoding with AVDISCARD_ALL

2023-12-10 Thread Kacper Michajlow
On Tue, 28 Feb 2023 at 20:46, Leo Izen wrote: > > On 2/27/23 11:34, Leo Izen wrote: > > On 2/21/23 17:35, Leo Izen wrote: > >> These chunks are lightweight and it's useful information to have when > >> running ffmpeg -i or ffprobe, for example. > >> --- > >> libavcodec/pngdec.c | 136 ++

Re: [FFmpeg-devel] [PATCH] doc/ffmpeg: fix -copy_ts typo, should be -copyts

2023-12-10 Thread Gyan Doshi
On 2023-12-11 09:13 am, Marth64 wrote: Signed-off-by: Marth64 --- doc/ffmpeg.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 6bcedd76d5..36fdaef879 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1861,7 +1861,7 @@ of s