[FFmpeg-devel] [REFUND-REQUEST]] VDD23 Travel

2023-10-07 Thread Steven Liu
Nice to see you all after so long. My request is for my flights, 9750,00 CNY Beijing from/to Abu Dhabi, Abu Dhabi from/to Dublin Thanks Steven ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To un

[FFmpeg-devel] [PATCH] avcodec/librsvgdec: fix memory leaks and deprecated functions

2023-10-07 Thread Leo Izen
At various points through the function librsvg_decode_frame, errors are returned from immediately without deallocating any allocated structs. This patch both fixes those leaks, and also fixes the use of functions that are deprecated since librsvg version 2.52.0. The older calls are still used, guar

Re: [FFmpeg-devel] [PATCH 02/42] avcodec/refstruct: Add simple API for refcounted objects

2023-10-07 Thread James Almer
On 9/19/2023 4:56 PM, Andreas Rheinhardt wrote: + +/** + * Allocate a refcounted object of usable size `size` managed via + * the RefStruct API. + * + * By default (in the absence of flags to the contrary), + * the returned object is initially zeroed. + * + * @param sizeDesired usable size of

Re: [FFmpeg-devel] [PATCH 2/7] avcodec/h261dec, vc1dec: Don't set write-only macroblock dimensions

2023-10-07 Thread Michael Niedermayer
On Sat, Oct 07, 2023 at 02:40:26AM +0200, Andreas Rheinhardt wrote: > They are generally set in ff_mpv_init_context_frame() > (mostly called by ff_mpv_common_init()); setting them > somewhere else should be avoided. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/h261dec.c | 6 -- >

Re: [FFmpeg-devel] [PATCH 06/13] avcodec/mpegvideo_enc: Don't overallocate arrays

2023-10-07 Thread Andreas Rheinhardt
Michael Niedermayer: > On Fri, Oct 06, 2023 at 04:46:29AM +0200, Andreas Rheinhardt wrote: >> Only entries 0..max_b_frames are ever used. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/mpegvideo_enc.c | 10 +- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --g

Re: [FFmpeg-devel] [PATCH 3/3] [RFC] avcodec/ffv1: Better rounding for slice positions

2023-10-07 Thread Michael Niedermayer
On Sat, Oct 07, 2023 at 06:52:07AM +0200, Jerome Martinez wrote: > On 07/10/2023 02:14, Michael Niedermayer wrote: > > This fixes green lines in some odd dimensions with some slice configurations > > like Ticket 5548 > > > > This also changes the encoder and whats encoded, and would require an > >

Re: [FFmpeg-devel] [PATCH 10/12] avcodec/rv10: Replace switch by LUT

2023-10-07 Thread Michael Niedermayer
On Fri, Oct 06, 2023 at 04:03:40AM +0200, Andreas Rheinhardt wrote: > Vittorio Giovara: > > On Tue, Oct 3, 2023 at 12:03 PM Andreas Rheinhardt < > > andreas.rheinha...@outlook.com> wrote: > > > >> Signed-off-by: Andreas Rheinhardt > >> --- > >> libavcodec/rv10.c | 21 + > >>

Re: [FFmpeg-devel] [PATCH 06/13] avcodec/mpegvideo_enc: Don't overallocate arrays

2023-10-07 Thread Michael Niedermayer
On Fri, Oct 06, 2023 at 04:46:29AM +0200, Andreas Rheinhardt wrote: > Only entries 0..max_b_frames are ever used. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/mpegvideo_enc.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/libavcodec/mpegvideo_enc

[FFmpeg-devel] [PATCH 7/7] fftools/ffplay: support applying container level cropping

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- fftools/ffplay.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index d8c69e10bc..5c213bf0d8 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -36,6 +36,7 @@ #include "libavutil/eval.h" #in

[FFmpeg-devel] [PATCH 6/7] fftools/ffmpeg: support applying container level cropping

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- fftools/ffmpeg.h| 3 +++ fftools/ffmpeg_demux.c | 6 ++ fftools/ffmpeg_enc.c| 24 +--- fftools/ffmpeg_filter.c | 23 +++ fftools/ffmpeg_opt.c| 3 +++ 5 files changed, 48 insertions(+), 11 deletions(-)

[FFmpeg-devel] [PATCH 5/7] avformat/matroskaenc: support writing cropping values

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- libavformat/matroskaenc.c | 59 ++- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 1457a6890c..9005237a83 100644 --- a/libavformat/matroskaenc.c +++ b/li

[FFmpeg-devel] [PATCH 4/7] avformat/avformat: add a flag to signal muxers that support storing cropping values

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- libavformat/avformat.h | 1 + libavformat/mux.c | 8 2 files changed, 9 insertions(+) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 9e7eca007e..c099ca8a01 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -500,6

[FFmpeg-devel] [PATCH 3/7] avformat/matroskadec: export cropping values

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- libavformat/matroskadec.c | 53 +++ 1 file changed, 43 insertions(+), 10 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index c8acf91970..0e98e97957 100644 --- a/libavformat/matroskadec.c +++ b/li

[FFmpeg-devel] [PATCH 2/7] avformat/dump: print Frame Cropping side data info

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- libavformat/dump.c | 21 + 1 file changed, 21 insertions(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index c0868a1bb3..8986e7c32a 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -427,6 +427,23 @@ static void dump_s12m_tim

[FFmpeg-devel] [PATCH 1/7] avcodec/packet: add a decoded frame cropping side data type

2023-10-07 Thread James Almer
Signed-off-by: James Almer --- libavcodec/packet.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/packet.h b/libavcodec/packet.h index b19409b719..6053d43c44 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -299,6 +299,20 @@ enum AVPacketSideDataType {

[FFmpeg-devel] [PATCH 0/7] Container level frame cropping parameters

2023-10-07 Thread James Almer
This is a simple set to add support to stream wide, container level cropping parameters, as featured in formats like Matroska and ISOBMFF. It's needed for things like AV1 streams generated by certain hardware encoders that produce dimension aligned output, and unlike H26x, can't export cropping inf

[FFmpeg-devel] [PATCH 3/3] nlmeans_vulkan: parallelize workgroup invocations

2023-10-07 Thread Lynne
Removes the clever subgroup parallel prefix computation, and instead just computes the prefix inline. Cuts down the number of dispatches by a huge amount. Provides a ~12x speedup (2.5fps to 30fps on a 7900XTX, 2.1fps to 24fps on an Ada). Patch attached. >From a51dd2ace418974c7e8b24a3762bd7495d3b

[FFmpeg-devel] [PATCH 2/3] nlmeans_vulkan: reduce dispatches by parallelizing the planes

2023-10-07 Thread Lynne
Patch attached. >From 863a9977192abf00d131d7b0ed88569210fe0d0c Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 16 Sep 2023 01:04:18 +0200 Subject: [PATCH 2/3] nlmeans_vulkan: reduce dispatches by parallelizing the planes --- libavfilter/vf_nlmeans_vulkan.c | 33 +---

[FFmpeg-devel] [PATCH 1/3] nlmeans_vulkan: fix width/height for chroma plane weights calculation

2023-10-07 Thread Lynne
Patch attached. >From 927c74d7851aafc589760a3882bef7f72b19db1c Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 16 Sep 2023 00:42:53 +0200 Subject: [PATCH 1/3] nlmeans_vulkan: fix width/height for chroma plane weights calculation --- libavfilter/vf_nlmeans_vulkan.c | 8 1 file changed,

Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: check that the SDK defines cuCtxGetCurrent()

2023-10-07 Thread Timo Rothenpieler
On 06.10.2023 18:43, Hendrik Leppkes wrote: On Fri, Oct 6, 2023 at 3:47 PM Timo Rothenpieler wrote: I'm quite confused why this specific instance suddenly causes so much upset. Because its bad form to break compilation of master, if all it took to avoid that is change the order of pushing a t

[FFmpeg-devel] [PATCH 8/8] avcodec/mpeg4video_parser: Don't set write-only current_picture_ptr

2023-10-07 Thread Andreas Rheinhardt
It is unused by ff_mpeg4_decode_picture_header() (unsurprisingly given that when decoding this function is called before the context has been initialized). Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4video_parser.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpeg4vide