[FFmpeg-devel] [PATCH] libavcodec/qsvenc: Enable fixed QP configure in qsv CQP runtime

2022-06-15 Thread Wenbin Chen
From: Yue Heng Enable dynamic QP configuration in runtime on qsv encoder. Through AVFrame->metadata, we can set key "qsv_config_qp" to change QP configuration when we encode video in CQP mode. Signed-off-by: Yue Heng Signed-off-by: Wenbin Chen --- doc/encoders.texi | 9 +++ libavcodec/

[FFmpeg-devel] [PATCH] doc: describe QOI image format

2022-06-15 Thread Peter Ross
--- doc/general_contents.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/general_contents.texi b/doc/general_contents.texi index 93a90a5e52..987a2f82fb 100644 --- a/doc/general_contents.texi +++ b/doc/general_contents.texi @@ -785,6 +785,8 @@ following image formats are supported:

Re: [FFmpeg-devel] [PATCH] doc/APIchanges: add missing marker for release 5.0

2022-06-15 Thread Gyan Doshi
Will push later today. On 2022-06-14 03:11 pm, Gyan Doshi wrote: --- doc/APIchanges | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 5857e67ae6..20b944933a 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -96,6 +96,8 @@ API changes, most recent fi

Re: [FFmpeg-devel] [PATCH 06/13] lavu/mem: Add ff_fast_recalloc()

2022-06-15 Thread Tomas Härdin
tis 2022-06-14 klockan 22:26 +0200 skrev Michael Niedermayer: > On Tue, Jun 14, 2022 at 04:42:06PM +0200, Tomas Härdin wrote: > > Left this as an ff_ funtion for now since it's only used by the j2k > > code > > > > /Tomas > > >  mem.c |   24 > >  mem.h |   55 > >

Re: [FFmpeg-devel] [PATCH 07/13] lavc/jpeg2000*: Use ff_fast_recalloc() to eliminate lots of allocations

2022-06-15 Thread Tomas Härdin
tis 2022-06-14 klockan 17:23 +0200 skrev Andreas Rheinhardt: > Tomas Härdin: > > > > > > @@ -2166,12 +2163,13 @@ static int > > jpeg2000_mct_write_frame(AVCodecContext *avctx, void *td, > > return 0; > >  } > >   > > -static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) > > +static vo

Re: [FFmpeg-devel] [PATCH 11/13] lavc/jpeg2000: Minimize calls to av_codec_is_encoder()

2022-06-15 Thread Tomas Härdin
tis 2022-06-14 klockan 17:04 +0200 skrev Andreas Rheinhardt: > Tomas Härdin: > > > > > > Why call it at all? Why not just add a new parameter to > ff_jpeg2000_init_component that is always set to 1 when called from > the > encoder and 0 when called from the decoder? Oh yeah that's even simpler

[FFmpeg-devel] [PATCH 2/4] avformat/matroskaenc: Don't waste bytes to Write Tag length fields

2022-06-15 Thread Andreas Rheinhardt
This is possible by using a dynamic buffer to write them; said dynamic buffer is (re)used and reset as appropriate. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 113 ++ tests/ref/fate/aac-autobsf-adtstoasc | 4 +- tests/ref/fate

[FFmpeg-devel] [PATCH 3/4] avformat/matroskaenc: Don't check twice whether to write tags

2022-06-15 Thread Andreas Rheinhardt
Because not all metadata is written as tags, the Matroska muxer filters out the tags that are not written as tags. Therefore the code first checks whether a Tag master element needs to be opened for a given stream/chapter/attachment/global metadata. If the answer turns out to be yes, it is checked

[FFmpeg-devel] [PATCH 4/4] avformat/matroskaenc: Reuse dynamic buffer

2022-06-15 Thread Andreas Rheinhardt
Avoids some allocations. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskaenc.c | 30 ++ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index f1385c6b21..60647869ca 100644 --- a/libavforma

Re: [FFmpeg-devel] [PATCH 06/13] lavu/mem: Add ff_fast_recalloc()

2022-06-15 Thread James Almer
On 6/15/2022 6:59 AM, Tomas Härdin wrote: tis 2022-06-14 klockan 22:26 +0200 skrev Michael Niedermayer: On Tue, Jun 14, 2022 at 04:42:06PM +0200, Tomas Härdin wrote: Left this as an ff_ funtion for now since it's only used by the j2k code /Tomas  mem.c |   24  mem

Re: [FFmpeg-devel] [PATCH 05/13] lavc/jpeg2000dec: Thread init_tile()

2022-06-15 Thread Tomas Härdin
tis 2022-06-14 klockan 23:11 +0200 skrev Michael Niedermayer: > On Tue, Jun 14, 2022 at 04:41:14PM +0200, Tomas Härdin wrote: > > > > >  jpeg2000dec.c |   30 +++--- > >  1 file changed, 15 insertions(+), 15 deletions(-) > > 6fa2fbf99afee36ee73459863df0527a72663f43  0005-la

Re: [FFmpeg-devel] [PATCH v8 0/2] libjxl Colorspace Fixes

2022-06-15 Thread Leo Izen
On 6/9/22 07:31, Leo Izen wrote: On 6/1/22 22:14, Leo Izen wrote: Changes in v8: - Use avutil/csp for both encoding and decoding - Handle the non-XYB case with an attached ICC Profile on decoding - clean up some code and segment it out to static functions Leo Izen (2):    avcodec/libjxldec: pro

Re: [FFmpeg-devel] [PATCH] avfilter: add virtualbass filter

2022-06-15 Thread Paul B Mahol
On Fri, Jun 10, 2022 at 12:09 PM Paul B Mahol wrote: > Hi, > > Patch attached. > Will apply in next 5 minutes. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or

[FFmpeg-devel] [PATCH v15 5/5] libavfilter/vf_frei0r.c: Use UTF-8 version of getenv()

2022-06-15 Thread Nil Admirari
--- libavfilter/vf_frei0r.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index f11ae6e55c..727e96561a 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -31,6 +31,7 @@ #include "libavutil/a

[FFmpeg-devel] [PATCH v15 1/5] libavutil: Add wchartoutf8(), wchartoansi(), utf8toansi() and getenv_utf8()

2022-06-15 Thread Nil Admirari
wchartoutf8() converts strings returned by WinAPI into UTF-8, which is FFmpeg's preffered encoding. Some external dependencies, such as AviSynth, are still not Unicode-enabled. utf8toansi() converts UTF-8 strings into ANSI in two steps: UTF-8 -> wchar_t -> ANSI. wchartoansi() is responsible for th

[FFmpeg-devel] [PATCH v15 2/5] compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW

2022-06-15 Thread Nil Admirari
--- compat/w32dlfcn.h | 95 +-- libavcodec/mf_utils.h | 1 + 2 files changed, 74 insertions(+), 22 deletions(-) diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h index 52a94efafb..e4f46c488c 100644 --- a/compat/w32dlfcn.h +++ b/compat/w32dlfcn.h @@ -2

[FFmpeg-devel] [PATCH v15 3/5] fftools: Remove MAX_PATH limit and switch to UTF-8 versions of fopen() and getenv()

2022-06-15 Thread Nil Admirari
--- fftools/cmdutils.c | 53 +--- fftools/ffmpeg_opt.c | 9 ++-- 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 5d7cdc3e10..5e7fbbe2ee 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmduti

[FFmpeg-devel] [PATCH v15 4/5] libavformat: Remove MAX_PATH limit and use UTF-8 version of getenv()

2022-06-15 Thread Nil Admirari
1. getenv() is replaced with getenv_utf8() across libavformat. 2. New versions of AviSynth+ are now called with UTF-8 filenames. 3. Old versions of AviSynth are still using ANSI strings, but MAX_PATH limit on filename is removed. --- libavformat/avisynth.c| 39 +++---

Re: [FFmpeg-devel] [PATCH v14 2/5] compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW

2022-06-15 Thread nil-admirari
> path_size <= INT16_MAX > > (the edge case is already covered by the equals) Done: https://ffmpeg.org/pipermail/ffmpeg-devel/2022-June/297590.html. Don't quite understand what edge case you've meant: INT16_MAX is 32767, which is the maximal path length allowed, + 1 is needed for the terminating n

[FFmpeg-devel] [PATCH v16 2/5] compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW

2022-06-15 Thread Nil Admirari
--- compat/w32dlfcn.h | 95 +-- libavcodec/mf_utils.h | 1 + 2 files changed, 74 insertions(+), 22 deletions(-) diff --git a/compat/w32dlfcn.h b/compat/w32dlfcn.h index 52a94efafb..e4f46c488c 100644 --- a/compat/w32dlfcn.h +++ b/compat/w32dlfcn.h @@ -2

[FFmpeg-devel] [PATCH v16 5/5] libavfilter/vf_frei0r.c: Use UTF-8 version of getenv()

2022-06-15 Thread Nil Admirari
--- libavfilter/vf_frei0r.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index f11ae6e55c..727e96561a 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -31,6 +31,7 @@ #include "libavutil/a

[FFmpeg-devel] [PATCH v16 1/5] libavutil: Add wchartoutf8(), wchartoansi(), utf8toansi() and getenv_utf8()

2022-06-15 Thread Nil Admirari
wchartoutf8() converts strings returned by WinAPI into UTF-8, which is FFmpeg's preffered encoding. Some external dependencies, such as AviSynth, are still not Unicode-enabled. utf8toansi() converts UTF-8 strings into ANSI in two steps: UTF-8 -> wchar_t -> ANSI. wchartoansi() is responsible for th

[FFmpeg-devel] [PATCH v16 3/5] fftools: Remove MAX_PATH limit and switch to UTF-8 versions of fopen() and getenv()

2022-06-15 Thread Nil Admirari
--- fftools/cmdutils.c | 53 +--- fftools/ffmpeg_opt.c | 9 ++-- 2 files changed, 47 insertions(+), 15 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 5d7cdc3e10..5e7fbbe2ee 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmduti

[FFmpeg-devel] [PATCH v16 4/5] libavformat: Remove MAX_PATH limit and use UTF-8 version of getenv()

2022-06-15 Thread Nil Admirari
1. getenv() is replaced with getenv_utf8() across libavformat. 2. New versions of AviSynth+ are now called with UTF-8 filenames. 3. Old versions of AviSynth are still using ANSI strings, but MAX_PATH limit on filename is removed. --- libavformat/avisynth.c| 39 +++---

Re: [FFmpeg-devel] [PATCH v14 1/5] libavutil: Add wchartoutf8(), wchartoansi(), utf8toansi() and getenv_utf8()

2022-06-15 Thread nil-admirari
> I guess we'd might have to add getenv to e.g. the SYSTEM_FUNCS list, so > we'd get a HAVE_GETENV in config.h - then we could make getenv_utf8 a > no-op if HAVE_GETENV is 0. Done: https://ffmpeg.org/pipermail/ffmpeg-devel/2022-June/297596.html ___

Re: [FFmpeg-devel] The case for a good string API

2022-06-15 Thread Stefano Sabatini
On date Wednesday 2021-12-22 17:12:41 +0100, Nicolas George wrote: > Hi. > > I will try again proposing a good string API for the project. But this > time, instead of showing the implementation code, I will ask about the > principle. > > So, please, read the argument, and give your opinion on the

Re: [FFmpeg-devel] [PATCH 05/13] lavc/jpeg2000dec: Thread init_tile()

2022-06-15 Thread Michael Niedermayer
On Wed, Jun 15, 2022 at 03:11:34PM +0200, Tomas Härdin wrote: > tis 2022-06-14 klockan 23:11 +0200 skrev Michael Niedermayer: > > On Tue, Jun 14, 2022 at 04:41:14PM +0200, Tomas Härdin wrote: > > > > > > > >  jpeg2000dec.c |   30 +++--- > > >  1 file changed, 15 insertions

Re: [FFmpeg-devel] [PATCH 2/7] lavu: new AVWriter API.

2022-06-15 Thread Stefano Sabatini
Preliminary quick review. On date Wednesday 2021-04-21 14:27:01 +0200, Nicolas George wrote: [...] > --- /dev/null > +++ b/libavutil/writer.c > @@ -0,0 +1,443 @@ > +/* > + * Copyright (c) 2021 Nicolas George > + * > + * This file is part of FFmpeg. > + * > + * FFmpeg is free software; you can redi

Re: [FFmpeg-devel] [PATCH v14 2/5] compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW

2022-06-15 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > nil-admir...@mailo.com > Sent: Wednesday, June 15, 2022 10:00 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v14 2/5] compat/w32dlfcn.h: Remove > MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW