Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-13 Thread Lynne
On 13/03/2025 02:24, Andreas Rheinhardt wrote: Lynne: On 10/03/2025 18:42, Lynne wrote: On 10/03/2025 04:14, Andreas Rheinhardt wrote: Lynne: ---   libavcodec/ffv1.h    |  3 +++   libavcodec/ffv1dec.c | 19 +--   2 files changed, 20 insertions(+), 2 deletions(-) diff --gi

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread Nicolas George
姚靖威 (HE12025-03-13): > The purpose of this patch is to modify the default buffer size of the avio > module during compilation. No, that is not the purpose, that is only what it does. > On some resource-constrained devices to save memory, the current default > value (32K), it can also be set to a

Re: [FFmpeg-devel] [PATCH] Include field_mode information in NUT stream info

2025-03-13 Thread Michael Niedermayer
On Mon, Mar 10, 2025 at 11:46:10PM +0100, Anders Rein wrote: > This will make it possible to transmit raw video over NUT without losing > the field order information. > --- > libavformat/nut.c| 36 ++ > libavformat/nut.h| 3 + > libavforma

[FFmpeg-devel] [PATCH] avformat/avio: Add max_pkt_size option

2025-03-13 Thread Zhao Zhili
From: Zhao Zhili Optimizing memory footprint in memory-constrained systems. Signed-off-by: Zhao Zhili --- libavformat/avio.c| 2 ++ libavformat/version.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index d109f3adff..e1b959ed

Re: [FFmpeg-devel] [PATCH v8 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams

2025-03-13 Thread Romain Beauxis
Le jeu. 13 mars 2025 à 08:43, Michael Niedermayer a écrit : > > Hi Romain > > On Tue, Mar 11, 2025 at 11:56:37AM -0500, Romain Beauxis wrote: > > Le mar. 11 mars 2025 à 11:55, Romain Beauxis > > a écrit : > > > > > > This is a series of patches to allow proper decoding of ogg metadata in > > > c

[FFmpeg-devel] [PATCH 12/12] avcodec/sanm: properly implement STOR/FTCH for ANIMv1

2025-03-13 Thread Manuel Lauss
Handle STOR/FTCH the same way the RA1 game engine does: On STOR, save the next following FOBJ (not the decoded image) in a buffer; decode it on FTCH. Used extensively by Rebel Assault 1 for e.g. the cockpit: A STOR-ed codec21 object which only covers parts of the buffer is FTCHed as last object in

[FFmpeg-devel] [PATCH v3] ffbuild: read library linker objects from a file

2025-03-13 Thread Gyan Doshi
The linker command can exceed the maximum argument limit on MinGW, especially for libavcodec. The objects list is now stored in a file and passed to the linker. --- v3: for reasons unknown to me, static linking doesn't appear to work on linux with escaped variables, so removed those. Someone

[FFmpeg-devel] [PATCH v6 3/3] doc/fftools-common-opts: document memaddresses log flag

2025-03-13 Thread softworkz
From: softworkz --- doc/fftools-common-opts.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index f6d452c40e..756c843c02 100644 --- a/doc/fftools-common-opts.texi +++ b/doc/fftools-common-opts.texi @@ -230,6 +230,8 @@ log to

[FFmpeg-devel] [PATCH 11/12] avcodec/sanm: change GetByteContext member to pointer

2025-03-13 Thread Manuel Lauss
In order do properly support the ANIM STOR/FTCH system, the FTCH must replay a stored FOBJ and change the SANMContext's "GetByteContext" member temporarily. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 394 +++--- 1 file changed, 198 insertions(+),

Re: [FFmpeg-devel] [PATCH] avfilter: POC: enable out-of-tree filters

2025-03-13 Thread Leandro Santiago
This is a follow-up to the my previous message: https://ffmpeg.org/pipermail/ffmpeg-devel/2025-March/340895.html On 3/13/25 13:18, Leandro Santiago wrote: > This is a POC/prototype that aims to enable out of tree filters on > FFmpeg. > > Here I name them "extra filters". > > It introduces the pro

Re: [FFmpeg-devel] [PATCH v7 2/7] fftools/ffprobe: Change to use textformat api

2025-03-13 Thread Michael Niedermayer
On Wed, Mar 12, 2025 at 04:04:20AM +, softworkz wrote: > From: softworkz > > Signed-off-by: softworkz > --- > fftools/Makefile | 12 + > fftools/ffprobe.c | 1849 - > 2 files changed, 142 insertions(+), 1719 deletions(-) breaks build for x86-3

Re: [FFmpeg-devel] [PATCH] ffbuild: read library linker objects from a file

2025-03-13 Thread Martin Storsjö
On Wed, 12 Mar 2025, Gyan Doshi wrote: The linker command can exceed the maximum argument limit on MinGW, especially for libavcodec. The objects list is now stored in a file and passed to the linker. --- ffbuild/library.mak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/f

Re: [FFmpeg-devel] [PATCH v4 15/16] FFHWAccel: add buffer_ref argument to start_frame

2025-03-13 Thread Andreas Rheinhardt
Lynne: > This commit adds a reference to the buffer as an argument to > start_frame, and adapts all existing code. > > This allows for asynchronous hardware accelerators to skip > copying packet data by referencing it. > --- > libavcodec/av1dec.c | 3 ++- > libavcodec/d3d12va_av1.c

Re: [FFmpeg-devel] [PATCH v8 0/8] Properly decode ogg metadata in ogg/{vorbis, flac, opus} chained bitstreams

2025-03-13 Thread Michael Niedermayer
Hi Romain On Tue, Mar 11, 2025 at 11:56:37AM -0500, Romain Beauxis wrote: > Le mar. 11 mars 2025 à 11:55, Romain Beauxis > a écrit : > > > > This is a series of patches to allow proper decoding of ogg metadata in > > chained > > `ogg/vorbis, `ogg/flac` and `ogg/opus` streams. > > > > ## Changes

Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-13 Thread Lynne
On 13/03/2025 05:57, Andreas Rheinhardt wrote: Lynne: On 13/03/2025 02:24, Andreas Rheinhardt wrote: Lynne: On 10/03/2025 18:42, Lynne wrote: On 10/03/2025 04:14, Andreas Rheinhardt wrote: Lynne: ---    libavcodec/ffv1.h    |  3 +++    libavcodec/ffv1dec.c | 19 +--    2

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread Zhao Zhili
On Mar 13, 2025, at 19:30, 姚靖威 wrote: > > protocols like local socket and local file. In our product, I set > avio-buffer-size > value to 1024 in order to reduce memory.The OS we use is based on nuttx, it > can be used in very small resource chips. How about runtime option like this? https://f

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread Zhao Zhili
> On Mar 13, 2025, at 17:40, 姚靖威 wrote: > > The purpose of this patch is to modify the default buffer size of the avio > module during compilation. > On some resource-constrained devices to save memory, the current default > value (32K), it can also be set to a smaller value. Which protocol? A

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread 姚靖威
Zhao Zhili 于2025年3月13日周四 20:50写道: > On Mar 13, 2025, at 19:30, 姚靖威 wrote: > > > > protocols like local socket and local file. In our product, I set > > avio-buffer-size > > value to 1024 in order to reduce memory.The OS we use is based on nuttx, > it > > can be used in very small resource chips

[FFmpeg-devel] [PATCH v4 04/16] vulkan: copy host-mapping buffer code from hwcontext

2025-03-13 Thread Lynne
This is useful elsewhere. --- libavutil/vulkan.c | 163 - libavutil/vulkan.h | 18 - 2 files changed, 178 insertions(+), 3 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 99c6af7e48..235c76d1d0 100644 --- a/libavutil/vulkan.

[FFmpeg-devel] [PATCH v4 03/16] vulkan: add ff_vk_create_imageview

2025-03-13 Thread Lynne
--- libavutil/vulkan.c | 51 ++ libavutil/vulkan.h | 7 +++ 2 files changed, 58 insertions(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 3020f01bee..99c6af7e48 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1560,6 +156

[FFmpeg-devel] [PATCH v4 05/16] hwcontext_vulkan: use the common host map function to map frame data

2025-03-13 Thread Lynne
--- libavutil/hwcontext_vulkan.c | 190 ++- 1 file changed, 54 insertions(+), 136 deletions(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index fcff34b5e2..1104e02cfd 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_

[FFmpeg-devel] [PATCH v4 01/16] pixfmt: add AV_PIX_FMT_GBRAP32

2025-03-13 Thread Lynne
This commit adds a 32-bit *integer* planar RGBA format. Vulkan FFv1 decoding is best performed on separate planes, rather than packed RGBA (i.e. RGBA128), hence this is useful as an intermediate format. --- libavutil/pixdesc.c | 28 libavutil/pixfmt.h | 4 2 fil

[FFmpeg-devel] [PATCH v4 06/16] vulkan: workaround BGR storage image undefined behaviour

2025-03-13 Thread Lynne
--- libavutil/vulkan.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 235c76d1d0..e517a42b86 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -1719,6 +1719,29 @@ static VkFormat map_fmt_to_rep(VkFormat fmt, en

[FFmpeg-devel] [PATCH v4 08/16] vulkan_decode: support multiple image views

2025-03-13 Thread Lynne
Enables non-monochrome video decoding using all our existing functions in the context of an SDR decoder. --- libavcodec/vulkan_av1.c| 4 +- libavcodec/vulkan_decode.c | 90 -- libavcodec/vulkan_decode.h | 12 ++--- libavcodec/vulkan_h264.c | 4 +- libavc

[FFmpeg-devel] [PATCH v4 10/16] ffv1enc_vulkan: refactor shaders slightly to support sharing

2025-03-13 Thread Lynne
The shaders were written to support sharing, but needed slight tweaking. --- libavcodec/Makefile | 2 +- libavcodec/ffv1_vulkan.c | 123 ++ libavcodec/ffv1_vulkan.h | 60 +++ libavcodec/ffv1enc_vulkan.c | 234 +---

[FFmpeg-devel] [PATCH v4 09/16] vulkan_decode: adjust number of async contexts created

2025-03-13 Thread Lynne
This caps the number of contexts we create based on thread count. This saves VRAM and filters out cases where more async is of lesser benefit. --- libavcodec/vulkan_decode.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulka

[FFmpeg-devel] [PATCH v4 11/16] vulkan: unify handling of BGR and simplify ffv1_rct

2025-03-13 Thread Lynne
--- libavcodec/ffv1_vulkan.h| 1 + libavcodec/ffv1enc_vulkan.c | 2 ++ libavcodec/vulkan/ffv1_enc_rct.comp | 17 ++--- libavutil/vulkan.c | 38 + libavutil/vulkan.h | 6 + 5 files changed, 54 insertion

[FFmpeg-devel] [PATCH v4 12/16] vulkan: add ff_vk_exec_add_dep_wait_sem()

2025-03-13 Thread Lynne
This adds a function which adds a regular timeline semaphore as a wait-only dependency. --- libavutil/vulkan.c | 28 libavutil/vulkan.h | 3 +++ 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index b7cdc3a086..0

[FFmpeg-devel] [PATCH v4 13/16] vulkan: add support for AV_PIX_FMT_GBRAP32

2025-03-13 Thread Lynne
--- libavutil/hwcontext_vulkan.c | 1 + libavutil/vulkan.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 1104e02cfd..9720f427c4 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil

[FFmpeg-devel] [PATCH v4 16/16] ffv1: add a Vulkan-based decoder

2025-03-13 Thread Lynne
This patch adds a fully-featured level 3 and 4 decoder for FFv1, supporting Golomb and all Range coding variants, all pixel formats, and all features, except for the newly added floating-point formats. On a 6000 Ada, for 3840x2160 bgr0 content at 50Mbps (standard desktop recording), it is able to

[FFmpeg-devel] [PATCH v4 07/16] vulkan_decode: support software-defined decoders

2025-03-13 Thread Lynne
--- libavcodec/vulkan_decode.c | 194 +++-- libavcodec/vulkan_decode.h | 11 +++ 2 files changed, 154 insertions(+), 51 deletions(-) diff --git a/libavcodec/vulkan_decode.c b/libavcodec/vulkan_decode.c index c57998108c..594764a904 100644 --- a/libavcodec/vulkan_de

[FFmpeg-devel] [PATCH v4 02/16] vulkan: rename ff_vk_set_descriptor_image to ff_vk_shader_update_img

2025-03-13 Thread Lynne
--- libavutil/vulkan.c | 34 +- libavutil/vulkan.h | 8 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c index 8f6ee8a276..3020f01bee 100644 --- a/libavutil/vulkan.c +++ b/libavutil/vulkan.c @@ -2355,

[FFmpeg-devel] [PATCH v4 00/16] Add a Vulkan compute based FFv1 hwaccel

2025-03-13 Thread Lynne
This series of commits adds a fully compliant version 3 and 4 hardware accelerator code for FFv1 written in Vulkan. Changes from the previous version: - Use the exported host_map code in hwcontext_vulkan.c - Add a buffer_ref argument to FFHWAccel.start_frame - Various optimizations in the shade

[FFmpeg-devel] [PATCH v4 15/16] FFHWAccel: add buffer_ref argument to start_frame

2025-03-13 Thread Lynne
This commit adds a reference to the buffer as an argument to start_frame, and adapts all existing code. This allows for asynchronous hardware accelerators to skip copying packet data by referencing it. --- libavcodec/av1dec.c | 3 ++- libavcodec/d3d12va_av1.c | 5 - libavcode

[FFmpeg-devel] [PATCH v4 14/16] ffv1dec: add support for hwaccels

2025-03-13 Thread Lynne
This commit adds support for hardware accelerated decoding to the decoder. The previous commits already refactored the decoder, this commit simply adds calls to hooks to decode. --- libavcodec/ffv1.h| 2 ++ libavcodec/ffv1dec.c | 81 +++- 2 files change

Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-13 Thread Andreas Rheinhardt
Lynne: > On 13/03/2025 05:57, Andreas Rheinhardt wrote: >> Lynne: >>> >>> >>> On 13/03/2025 02:24, Andreas Rheinhardt wrote: Lynne: > On 10/03/2025 18:42, Lynne wrote: >> On 10/03/2025 04:14, Andreas Rheinhardt wrote: >>> Lynne: ---     libavcodec/ffv1.h    |  3 +

Re: [FFmpeg-devel] [PATCH 11/13] ffv1dec: reference the current packet into the main context

2025-03-13 Thread Lynne
On 13/03/2025 18:48, Andreas Rheinhardt wrote: Lynne: On 13/03/2025 05:57, Andreas Rheinhardt wrote: Lynne: On 13/03/2025 02:24, Andreas Rheinhardt wrote: Lynne: On 10/03/2025 18:42, Lynne wrote: On 10/03/2025 04:14, Andreas Rheinhardt wrote: Lynne: ---     libavcodec/ffv1.h    |  3

[FFmpeg-devel] [PATCH] speexdec: fix framesize for ultra-wideband

2025-03-13 Thread Tristan Matthews
This matches how the libspeex decoder is calculating frame size (except in clamp form). Fixes #11495 --- libavcodec/speexdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c index b335e2fbe8..0990338341 100644 --- a/libavcodec/sp

Re: [FFmpeg-devel] [FFmpeg-cvslog] swscale: use 16-bit intermediate precision for RGB/XYZ conversion

2025-03-13 Thread Niklas Haas
On Fri, 14 Mar 2025 00:54:25 +0100 Michael Niedermayer wrote: > Hi > > On Sun, Jan 26, 2025 at 07:26:59PM +0100, Michael Niedermayer wrote: > > On Thu, Dec 26, 2024 at 07:33:23PM +, Niklas Haas wrote: > > > ffmpeg | branch: master | Niklas Haas | Mon Dec 16 > > > 14:49:39 2024 +0100| [af6d

Re: [FFmpeg-devel] [PATCH v4] Mark C globals with small code model

2025-03-13 Thread Pranav Kant via ffmpeg-devel
Thank you for taking a look. On Tue, Mar 11, 2025 at 4:45 PM Andreas Rheinhardt < andreas.rheinha...@outlook.com> wrote: > Pranav Kant via ffmpeg-devel: > > By default, all globals in C/C++ compiled by clang are allocated > > in non-large data sections. See [1] for background on code models. > >

Re: [FFmpeg-devel] [PATCH] avcodec/x86/constants: Move constants only used by cavsdsp to, it

2025-03-13 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Patch attached. > > - Andreas > Will apply. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1enc: Factor set_micro_version() out of ff_ffv1_write_extradata()

2025-03-13 Thread Michael Niedermayer
On Tue, Mar 11, 2025 at 02:04:30PM +0100, Michael Niedermayer wrote: > and call it from ff_ffv1_encode_init() > > setting micro version from code writing the extradata is messy, this should > be cleaner > > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1enc.c | 27 +++

Re: [FFmpeg-devel] [PATCH 1/4] avcodec/ffv1enc: add space for the remap table to max_size

2025-03-13 Thread Michael Niedermayer
On Sun, Mar 09, 2025 at 11:58:03PM +0100, Michael Niedermayer wrote: > Sponsored-by: Sovereign Tech Fund > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffv1enc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c > inde

Re: [FFmpeg-devel] [FFmpeg-cvslog] swscale: use 16-bit intermediate precision for RGB/XYZ conversion

2025-03-13 Thread Michael Niedermayer
Hi On Sun, Jan 26, 2025 at 07:26:59PM +0100, Michael Niedermayer wrote: > On Thu, Dec 26, 2024 at 07:33:23PM +, Niklas Haas wrote: > > ffmpeg | branch: master | Niklas Haas | Mon Dec 16 > > 14:49:39 2024 +0100| [af6d52eec66961f6a502b0f2f390c12226d087cd] | > > committer: Niklas Haas > > > >

Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement jeromes idea of making remap flip optional

2025-03-13 Thread Michael Niedermayer
Hi Jerome On Tue, Mar 11, 2025 at 04:33:11PM +0100, Jerome Martinez wrote: > Le 11/03/2025 à 15:04, Michael Niedermayer a écrit : > > Re: [FFmpeg-devel] [PATCH] avcodec/ffv1: Implement jeromes idea of making > > remap flip optional > > Thanks. > > > > -if (sc->remap > 1U || > > -

Re: [FFmpeg-devel] [PATCH] avcodec/x86/hevc/dsp_init: Rename, ff_hevc_put_hevc->ff_hevc_put

2025-03-13 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Andreas Rheinhardt: >> Patch attached. >> >> - Andreas >> > Now truely attached. > > - Andreas > Will apply this patch tomorrow unless there are objections. - Andreas ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https:/

[FFmpeg-devel] [PATCH v6 1/3] fftools: Add a local logging callback function

2025-03-13 Thread softworkz
From: softworkz This gets fftools its own management of log level and flags for and provides an fftools-specific logging callback. This makes it easier to implement specific logging behaviors which are incompatible with direct use of the av libs and cannot be done in libavutil. Signed-off-by: so

Re: [FFmpeg-devel] [PATCH] avformat/avio: Add max_pkt_size option

2025-03-13 Thread Marton Balint
On Thu, 13 Mar 2025, Zhao Zhili wrote: From: Zhao Zhili Optimizing memory footprint in memory-constrained systems. Signed-off-by: Zhao Zhili --- libavformat/avio.c| 2 ++ libavformat/version.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/avio.c b/lib

Re: [FFmpeg-devel] [PATCH 00/12] avcodec/sanm: various improvements

2025-03-13 Thread Michael Niedermayer
Hi Manuel On Thu, Mar 13, 2025 at 12:14:53PM +0100, Manuel Lauss wrote: > This patchset improves especially support for SMUSHv1 (Rebel Assault 1), > adds missing codecs and functions and improves reliability of SMUSHv1/v2. > > #1 improves frame size detection. > #3 changes the left/top values to

Re: [FFmpeg-devel] [PATCH 09/12] avcodec/sanm: codec4/5/33/34 decoder

2025-03-13 Thread Andreas Rheinhardt
Manuel Lauss: > This codec works on 4x4 pixel tiles, which can be generated and read > from the datastream. They're both identical, codec5 misses a tile > index to skip the current tile. > Codecs33/34 are the same as 4/5 but with a different tileset generator. > Used only in Rebel Assault 1. > >

Re: [FFmpeg-devel] [PATCH v4 15/16] FFHWAccel: add buffer_ref argument to start_frame

2025-03-13 Thread Lynne
On 14/03/2025 00:03, Lynne wrote: On 13/03/2025 23:08, Andreas Rheinhardt wrote: Lynne: This commit adds a reference to the buffer as an argument to start_frame, and adapts all existing code. This allows for asynchronous hardware accelerators to skip copying packet data by referencing it. --

Re: [FFmpeg-devel] [PATCH] avformat/avio: Add max_pkt_size option

2025-03-13 Thread Zhao Zhili
> On Mar 14, 2025, at 04:03, Marton Balint wrote: > > > On Thu, 13 Mar 2025, Zhao Zhili wrote: > >> From: Zhao Zhili >> >> Optimizing memory footprint in memory-constrained systems. >> >> Signed-off-by: Zhao Zhili >> --- >> libavformat/avio.c| 2 ++ >> libavformat/version.h | 2 +- >> 2

[FFmpeg-devel] [PATCH v6 0/3] avutil/log: Replace addresses in log output with simple ids

2025-03-13 Thread ffmpegagent
..and individual numbering. The benefits are: * Smaller log file sizes * The disambiguation is much easier to recognize and to follow * It eventually allows comparing and viewing log file diffs without almost every line being different due to those addresses Before == [hevc @ 018e

[FFmpeg-devel] [PATCH v6 2/3] fftools/opt_common: add memaddresses log flag

2025-03-13 Thread softworkz
From: softworkz This commit adds the memaddresses log flag. When specifying this flag at the command line, context prefixes will be printed with memory addresses like in earlier ffmpeg versions. Memory addresses are no longer printed by default. The benefits are: - Smaller log file sizes - The

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread 姚靖威
The purpose of this patch is to modify the default buffer size of the avio module during compilation. On some resource-constrained devices to save memory, the current default value (32K), it can also be set to a smaller value. Nicolas George 于2025年3月11日周二 19:55写道: > joney...@gmail.com (HE12025-0

Re: [FFmpeg-devel] lavc/videotoolboxenc: add hevc main42210 and p210

2025-03-13 Thread Zhao Zhili
> On Mar 11, 2025, at 22:46, Zhao Zhili > wrote: > > >> 在 2025年3月11日,下午6:16,Wang Bin 写道: >> >> Zhao Zhili 于2025年3月11日周二 16:45写道: >> >>> >>> > On Mar 11, 2025, at 14:20, Wang Bin wrote: supported by apple silicon --- libavcodec/videotoolboxenc.c | 10 ++

Re: [FFmpeg-devel] [PATCH v2] ffbuild: read library linker objects from a file

2025-03-13 Thread Michael Niedermayer
Hi Gyan On Wed, Mar 12, 2025 at 08:22:56PM +0530, Gyan Doshi wrote: > The linker command can exceed the maximum argument limit on MinGW, > especially for libavcodec. > > The objects list is now stored in a file and passed to the linker. > --- > v2: >static linking also switched to use a file

[FFmpeg-devel] [PATCH 01/12] avcodec/sanm: better frame size detection for old codecs

2025-03-13 Thread Manuel Lauss
The size of the video frame (FOBJ) of the old codecs (ANIMv0/1/2) can very reliably be determined: - ANIMv0/1 (=Rebel Assault 1) uses a 384x242 internal buffer for everything. The codec parameters only describe the size and offset of the specific FOBJ on that buffer. - ANIMv2 titles usually us

[FFmpeg-devel] [PATCH 00/12] avcodec/sanm: various improvements

2025-03-13 Thread Manuel Lauss
This patchset improves especially support for SMUSHv1 (Rebel Assault 1), adds missing codecs and functions and improves reliability of SMUSHv1/v2. #1 improves frame size detection. #3 changes the left/top values to signed, as RA1 makes heavy use of negative offsets. #4 adds workarounds for RA1

[FFmpeg-devel] [PATCH 09/12] avcodec/sanm: codec4/5/33/34 decoder

2025-03-13 Thread Manuel Lauss
This codec works on 4x4 pixel tiles, which can be generated and read from the datastream. They're both identical, codec5 misses a tile index to skip the current tile. Codecs33/34 are the same as 4/5 but with a different tileset generator. Used only in Rebel Assault 1. Signed-off-by: Manuel Lauss

[FFmpeg-devel] [PATCH 07/12] avcodec/sanm: codec23 decoder

2025-03-13 Thread Manuel Lauss
This codec alternatingly skips and changes existing pixels. A second 16bit parameter in the FOBJ header indicates how to do the pixel changes: either by specifying a LUT in the codec datastream or by adding a constant value to the pixel. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 66 +++

[FFmpeg-devel] [PATCH 08/12] avcodec/sanm: codec21 decoder

2025-03-13 Thread Manuel Lauss
similar to codec23, this one alternatingly skips and writes bytes. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 45 + 1 file changed, 45 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 67963bb5d3..bf2ec40df4 100644 --- a/

[FFmpeg-devel] [PATCH 05/12] avcodec/sanm: fix codec3

2025-03-13 Thread Manuel Lauss
codec3 is codec1 which writes zero values instead of skipping them. This fixes a lot of RA1 videos. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index fbb6e7231a..d4a84febc7 100

[FFmpeg-devel] [PATCH 03/12] avcodec/sanm: FOBJ left/top are signed values

2025-03-13 Thread Manuel Lauss
The left/top parameters of a FOBJ are signed values. Adjust codec1 code accordingly to not draw outside the buffer area. Rebel Assault 1 makes heavy use of this. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deleti

[FFmpeg-devel] [PATCH 04/12] avcodec/sanm: misc fixes

2025-03-13 Thread Manuel Lauss
- clear the front buffer with color 0 when processing data. Fixes a lot of Rebel Assault 1 videos and Rebel Assault 2 space scenes (e.g. 08PLAY.SAN which consists only of codec1/2/21 objects which only ever touch parts of the buffer). - for ANIMv1 (Rebel Assault 1): set palette index 0 to all

Re: [FFmpeg-devel] [PATCH 1/1] avformat/avio: add configuration options for IO_BUFFER_SIZE

2025-03-13 Thread 姚靖威
protocols like local socket and local file. In our product, I set avio-buffer-size value to 1024 in order to reduce memory.The OS we use is based on nuttx, it can be used in very small resource chips. [image: image.png] Zhao Zhili 于2025年3月13日周四 18:26写道: > > > > On Mar 13, 2025, at 17:40, 姚靖威

[FFmpeg-devel] [PATCH 02/12] avcodec/sanm: disable left/top for fullscreen codecs

2025-03-13 Thread Manuel Lauss
The block-based codecs 37/47/48 work on the full frame, and there's no existing LucasArts game video that uses left/top offsets for these, as it doesn't make sense. Ignore the left/top parameters for these codecs. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 36 +--

[FFmpeg-devel] [PATCH 10/12] avcodec/sanm: codec37: reimplement comp4

2025-03-13 Thread Manuel Lauss
Compression 4 code 0 means copy from delta buffer without mv, AND start of a skip run. This gets rid of the extra case and column index manipulation and implements this as it is implemented in the original game exe, i.e. as a special case for after mv copy. Signed-off-by: Manuel Lauss --- libav

[FFmpeg-devel] [PATCH 06/12] avcodec/sanm: codec2 support

2025-03-13 Thread Manuel Lauss
this codec consists of 4 byte packets: 2bytes delta-x, 1 byte delta-y and 1 byte color to put at that spot. Used in Rebel Assault 1 only. Signed-off-by: Manuel Lauss --- libavcodec/sanm.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/sanm.c b/libavcodec/san

Re: [FFmpeg-devel] [PATCH] avcodec/vlc: Reduce debug logging

2025-03-13 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Freitag, 14. März 2025 01:28 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/vlc: Reduce debug logging > > Hi > > On Wed, Mar 12, 2025 at 03:48:20AM +00