[FFmpeg-devel] [PATCH 55/61] avcodec/aacps_common: Combine huffman tabels

2023-09-26 Thread Andreas Rheinhardt
This allows to avoid the relocations inherent in an array to individual tables; it also reduces padding. Signed-off-by: Andreas Rheinhardt --- libavcodec/aacps_common.c | 27 +-- libavcodec/aacpsdata.c| 31 +++ 2 files changed, 8 insertions

[FFmpeg-devel] [PATCH 56/61] avcodec/aacps_common: Apply offset for VLCs during init

2023-09-26 Thread Andreas Rheinhardt
This avoids having to apply it later after every get_vlc2(). Signed-off-by: Andreas Rheinhardt --- libavcodec/aacps_common.c | 14 +++--- libavcodec/aacpsdata.c| 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/aacps_common.c b/libavcodec/aacps_c

[FFmpeg-devel] [PATCH 57/61] avcodec/mpegaudiodec_common: Avoid superfluous VLC structures

2023-09-26 Thread Andreas Rheinhardt
For some VLCs here, the number of bits of the VLC is write-only, because it is hardcoded at the call site. Therefore one can replace these VLC structures with the only thing that is actually used: The pointer to the VLCElem table. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegaudiodata.h

[FFmpeg-devel] [PATCH 58/61] avcodec/mpeg12: Avoid unnecessary VLC structures

2023-09-26 Thread Andreas Rheinhardt
Everything besides VLC.table is basically write-only and even VLC.table can be removed by accessing the underlying tables directly. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg12.c| 58 +- libavcodec/mpeg12dec.c | 12 - libavcodec/mpeg

[FFmpeg-devel] [PATCH 59/61] avcodec/wmaprodec: Avoid superfluous VLC structures

2023-09-26 Thread Andreas Rheinhardt
For all VLCs here, the number of bits of the VLC is write-only, because it is hardcoded at the call site. Therefore one can replace these VLC structures with the only thing that is actually used: The pointer to the VLCElem table. And in most cases one can even avoid this. Signed-off-by: Andreas Rh

[FFmpeg-devel] [PATCH 60/61] avcodec/wmavoice: Avoid unnecessary VLC structure

2023-09-26 Thread Andreas Rheinhardt
Everything besides VLC.table is basically write-only and even VLC.table can be removed by accessing the underlying table directly. Signed-off-by: Andreas Rheinhardt --- libavcodec/wmavoice.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/wmavoice.c b/li

[FFmpeg-devel] [PATCH 61/61] avcodec/vlc: Remove unused macros

2023-09-26 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavcodec/vlc.h | 41 - 1 file changed, 41 deletions(-) diff --git a/libavcodec/vlc.h b/libavcodec/vlc.h index 679666801a..0cc106c499 100644 --- a/libavcodec/vlc.h +++ b/libavcodec/vlc.h @@ -185,47 +185,6 @@ void ff_v

[FFmpeg-devel] SDR choices

2023-09-26 Thread Cosmin Stejerean via ffmpeg-devel
> On Sep 26, 2023, at 11:14 AM, Anton Khirnov wrote: > > From my perspective, the objections to SDR have been largely > technical, >From my perspective the objections against the current SDR implementation >could be grouped into roughly 3 categories: A) support for taking input from an SDR d

Re: [FFmpeg-devel] [PATCH] af_afir: RISC-V V fcmul_add

2023-09-26 Thread flow gg
>>> please pad mnemonics to at least 8 columns for consistency okay, changed >>> It seems that you could just as well use vlseg2 without register stride, no? yes, vlseg will better, changed >>> Note that you could do the double versions with very little extra efforts. okay >>> But really, DO

Re: [FFmpeg-devel] [PATCH v2] cbs_av1: Make fake OBU size length field a write option

2023-09-26 Thread Wang, Fei W
On Tue, 2023-09-26 at 21:30 +0100, Mark Thompson wrote: > This is an option to modify the behaviour of the writer, not a syntax > field. > --- > On 26/09/2023 03:34, Wang, Fei W wrote: > > On Mon, 2023-09-25 at 14:53 +0100, Mark Thompson wrote: > > > ... > > > diff --git a/libavcodec/vaapi_encode_a

<    1   2