[FFmpeg-devel] [PATCH] avfilter/scale_cuda: add support for rgb32/bgr32 conversions

2023-06-15 Thread Philip Langdale
As we are introducing two new formats and supporting conversions between them, and also with the existing 0rgb32/0bgr32 formats, we get a combinatorial explosion of kernels. I introduced a few new macros to keep the things mostly managable. The conversions are all simple, following existing

[FFmpeg-devel] [PATCH v2 3/3] lavfi/{denoise, procamp, scale, sharpness}_vaapi: Add passthrough mode

2023-06-15 Thread Fei Wang
Signed-off-by: Fei Wang --- libavfilter/vaapi_vpp.c| 15 --- libavfilter/vaapi_vpp.h| 2 ++ libavfilter/vf_misc_vaapi.c| 9 + libavfilter/vf_procamp_vaapi.c | 10 ++ libavfilter/vf_scale_vaapi.c | 13 + 5 files changed, 46

[FFmpeg-devel] [PATCH v2 2/3] lavfi/vaapi: Add some debug message

2023-06-15 Thread Fei Wang
Signed-off-by: Fei Wang --- libavfilter/vaapi_vpp.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vaapi_vpp.c b/libavfilter/vaapi_vpp.c index 10d31977c6..4de19564e9 100644 --- a/libavfilter/vaapi_vpp.c +++ b/libavfilter/vaapi_vpp.c @@ -554,6 +554,10 @@ int

[FFmpeg-devel] [PATCH v2 1/3] lavfi/vaapi: Add function to get surface ID from AVFrame

2023-06-15 Thread Fei Wang
Signed-off-by: Fei Wang --- libavfilter/vaapi_vpp.c | 10 ++ libavfilter/vaapi_vpp.h | 5 + 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/libavfilter/vaapi_vpp.c b/libavfilter/vaapi_vpp.c index a323dab8b8..10d31977c6 100644 --- a/libavfilter/vaapi_vpp.c +++

Re: [FFmpeg-devel] [PATCH] avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF

2023-06-15 Thread Paul B Mahol
Will apply shortly. ___ 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.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 4/5] hwcontext_vulkan: free temporary array once unneeded

2023-06-15 Thread Lynne
Jun 13, 2023, 06:21 by d...@lynne.ee: > Fixes a small memory leak. > This also prevents leaks on malloc/mutex init errors. > > Does not depend on any other patches. > > Patch attached. > Pushed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 3/5] hwcontext_vulkan: call ff_vk_uninit() on device uninit

2023-06-15 Thread Lynne
Jun 13, 2023, 06:20 by d...@lynne.ee: > This fixes three memory leaks from ff_vk_load_props(). > Does not depend on any other patches. > > Patch attached. > Pushed. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] pthread_frame: uninit the hwaccel of each frame thread

2023-06-15 Thread Lynne
Jun 15, 2023, 20:26 by an...@khirnov.net: > Quoting Lynne (2023-06-13 04:11:35) > >> The issue is that with a threadsafe hwaccel and multiple enabled >> frame threads, hwaccel->uninit() is never called. >> Previously, the function was guaranteed to never have any threads >> with hwaccel contexts,

Re: [FFmpeg-devel] [PATCH] lavu/hwcontext_cuda: declare support for argb/abgr/rgba/bgra

2023-06-15 Thread Philip Langdale
On Sat, 10 Jun 2023 19:59:35 -0700 Philip Langdale wrote: > These are physically compatible formats and are potentially useful. > > Signed-off-by: Philip Langdale > --- > libavutil/hwcontext_cuda.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavutil/hwcontext_cuda.c

Re: [FFmpeg-devel] [PATCH] avfilter/vf_yadif_cuda: remove unnecessary private struct fields

2023-06-15 Thread Philip Langdale
On Wed, 14 Jun 2023 20:04:35 -0700 Philip Langdale wrote: > I'm not sure why I originally did this, but there's no good reason to > put pointers to the cuda context and stream in the priv struct. They > are directly available in the device context that is already being > stored there. > >

Re: [FFmpeg-devel] [PATCH 3/6] lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_int32

2023-06-15 Thread Rémi Denis-Courmont
Le torstaina 15. kesäkuuta 2023, 13.36.42 EEST Peiting Shen a écrit : > From: Shen Peiting > > Scalar calculating int32 sum_square optimized by using RVV instructions > > Benchmarks on Spike(cycles): > len=128 > ac3_sum_square_butterfly_int32_c: 8497 > ac3_sum_square_butterfly_int32_rvv: 258 >

Re: [FFmpeg-devel] [PATCH 6/6] lavc/ac3dsp: RISC-V B ac3_extract_exponents

2023-06-15 Thread Rémi Denis-Courmont
Le torstaina 15. kesäkuuta 2023, 13.36.45 EEST Peiting Shen a écrit : > From: Shen Peiting > > Use RVB instruction clz to calculate the number of leading zeros of MSB > instead of av_log2. > > Benchmarks on Spike(cycles): > ac3_extract_exponents_c: 8226 > ac3_extract_exponents_rvb: 1167 FWIW,

Re: [FFmpeg-devel] [PATCH 0/6] RISC-V initial ac3dsp

2023-06-15 Thread Rémi Denis-Courmont
Le torstaina 15. kesäkuuta 2023, 16.57.18 EEST Lynne a écrit : > Jun 15, 2023, 12:37 by shenpeit...@eswincomputing.com: > > From: Shen Peiting > > > > We optimized the six interfaces of AC3 init by RVV, the optimized > > performance was tested on the RISC-V ISA simulator--Spike, and the > >

Re: [FFmpeg-devel] [PATCH] lavc/h264chroma: RISC-V V add motion compensation for 4xH and 2xH chroma blocks

2023-06-15 Thread Rémi Denis-Courmont
Le torstaina 15. kesäkuuta 2023, 17.58.37 EEST Arnie Chang a écrit : > Since these functions are frequently called, I prefer instantiating similar > code many times > rather than calling another internal function, as it may introduce > additional function call overhead. This works both ways.

Re: [FFmpeg-devel] [PATCH] avformat/avcodec: Add DTS-UHD demuxer and parser, movenc support.

2023-06-15 Thread Roy Funderburk
On 6/15/23 8:46 AM, Paul B Mahol wrote: > get_vlc2 can be made for get_bits_var(), first table bits (that are still > int and not uint8_t), the code that picks table index from which to take > bits. > > It is also possible to make it take both first index and rest of it and > build bigger

Re: [FFmpeg-devel] [PATCH] pthread_frame: uninit the hwaccel of each frame thread

2023-06-15 Thread Anton Khirnov
Quoting Lynne (2023-06-13 04:11:35) > The issue is that with a threadsafe hwaccel and multiple enabled > frame threads, hwaccel->uninit() is never called. > Previously, the function was guaranteed to never have any threads > with hwaccel contexts, so it never bothered to uninit it. > > Patch

Re: [FFmpeg-devel] [PATCH 2/6] lavc/ac3dsp: RISC-V V float_to_fixed24

2023-06-15 Thread Rémi Denis-Courmont
Le torstaina 15. kesäkuuta 2023, 13.36.41 EEST Peiting Shen a écrit : > From: Shen Peiting > > Vector instructions replaces scalar options of float convert to fixed > > Benchmarks on Spike(cycles): > len=16 > float_to_fixed24_c: 315 > float_to_fixed24_rvv: 27 > len=160 > float_to_fixed24_c:

Re: [FFmpeg-devel] [PATCH 1/6] lavc/ac3dsp: RISC-V V ac3_exponent_min

2023-06-15 Thread Rémi Denis-Courmont
Nihao Le torstaina 15. kesäkuuta 2023, 13.36.40 EEST Peiting Shen a écrit : > From: Shen Peiting > > Find scalar minium optimized by using RVV instructions > > Benchmarks on Spike(cycles): > *exp=1280*4;num_reuse_blocks=5;nb_coefs=16 > ac3_exponent_min_c: 1993 > ac3_exponent_min_rvv: 258 >

Re: [FFmpeg-devel] [PATCH] avformat/avcodec: Add DTS-UHD demuxer and parser, movenc support.

2023-06-15 Thread Paul B Mahol
On Wed, Jun 14, 2023 at 10:01 PM Roy Funderburk wrote: > Hi, > > I updated the libavcodec patch per Paul Mahol's reviews: > > dtsuhd_common.c:496 get_bits_long instead of get_bits used for reading 36 > bits > > dtsuhd_common.c:224 get_bits_var changed to accept arrays in VarBits > structure,

Re: [FFmpeg-devel] [PATCH] avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF

2023-06-15 Thread Niklas Haas
On Thu, 15 Jun 2023 17:17:41 +0200 Paul B Mahol wrote: > Attached. > From 88fbb2fbfd2bb7cb3474d54cb197ee42b1404532 Mon Sep 17 00:00:00 2001 > From: Paul B Mahol > Date: Thu, 15 Jun 2023 17:15:44 +0200 > Subject: [PATCH] avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF > > Signed-off-by:

Re: [FFmpeg-devel] [PATCH 0/7] Misc AFD improvements and support for Bar Data

2023-06-15 Thread Devin Heitmueller
Hello Paul, On Thu, Jun 15, 2023 at 10:57 AM Paul B Mahol wrote: > It may conflict with another set of drawtext patches. I'm happy to regenerate the drawtext patch if there is a conflict. If the other patches could be merged though that would be helpful as it would avoid me having to

Re: [FFmpeg-devel] [PATCH 06/11] avcodec/evc_parse: use the correct struct size when allocating pps

2023-06-15 Thread Paul B Mahol
On Thu, Jun 15, 2023 at 5:20 PM James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/evc_parse.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c > index 71e2605281..b3044eca3f 100644 > ---

Re: [FFmpeg-devel] [PATCH 02/11] avcodec/evc_parser: remove superfluous memset calls

2023-06-15 Thread Paul B Mahol
LGTM ___ 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.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH 08/11] avcodec/evc_parse: free pps struct on parsing failure

2023-06-15 Thread James Almer
Prevents future checks for their presence from succeeding. Signed-off-by: James Almer --- libavcodec/evc_parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index 3e315526fa..4b9d820d34 100644 ---

[FFmpeg-devel] [PATCH 11/11] avcodec/evc_frame_merge_bsf: free EVCFMergeContext on flush and close

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_frame_merge_bsf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/evc_frame_merge_bsf.c b/libavcodec/evc_frame_merge_bsf.c index fbb344490a..7cc701f5c5 100644 --- a/libavcodec/evc_frame_merge_bsf.c +++

[FFmpeg-devel] [PATCH 07/11] avcodec/evc_parse: use the correct sps when parsing slice headers

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_parse.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index b3044eca3f..3e315526fa 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -441,7 +441,7 @@

[FFmpeg-devel] [PATCH 10/11] avcodec/evc_frame_merge_bsf: ceck for av_memdup() failure

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_frame_merge_bsf.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/evc_frame_merge_bsf.c b/libavcodec/evc_frame_merge_bsf.c index d2746a1ef6..fbb344490a 100644 --- a/libavcodec/evc_frame_merge_bsf.c +++

[FFmpeg-devel] [PATCH 06/11] avcodec/evc_parse: use the correct struct size when allocating pps

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index 71e2605281..b3044eca3f 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c @@ -357,7 +357,7 @@ EVCParserPPS

[FFmpeg-devel] [PATCH 09/11] avcodec/evc_parse: make freeing EVCParserContext buffers a shared function

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_parse.c | 7 +++ libavcodec/evc_parse.h | 2 ++ libavcodec/evc_parser.c | 11 +-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index 4b9d820d34..703529e9f4 100644 ---

[FFmpeg-devel] [PATCH 05/11] avcodec/evc_parse: use a local EVCParserSliceHeader when parsing slices

2023-06-15 Thread James Almer
There's no need to store EVC_MAX_PPS_COUNT amount of slice headers in EVCParserContext. Signed-off-by: James Almer --- libavcodec/evc_parse.c | 50 + libavcodec/evc_parse.h | 4 libavcodec/evc_parser.c | 2 -- 3 files changed, 21 insertions(+),

[FFmpeg-devel] [PATCH 04/11] avcodec/evc_parse: zero sps, pps and sh structs

2023-06-15 Thread James Almer
Otherwise stale values may remain in place. Signed-off-by: James Almer --- libavcodec/evc_parse.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index 68f0d31f96..f8a4ca3e07 100644 --- a/libavcodec/evc_parse.c +++ b/libavcodec/evc_parse.c

[FFmpeg-devel] [PATCH 02/11] avcodec/evc_parser: remove superfluous memset calls

2023-06-15 Thread James Almer
The entire EVCParserContext will be zeroed during allocation. Signed-off-by: James Almer --- libavcodec/evc_parser.c | 12 1 file changed, 12 deletions(-) diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index 7528fb13db..639dcbd135 100644 ---

[FFmpeg-devel] [PATCH 03/11] avcodec/evc_parser: export framerate to the AVCodecContext

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavcodec/evc_parse.c | 15 +++ libavcodec/evc_parser.c | 1 + 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/evc_parse.c b/libavcodec/evc_parse.c index f69d7ffb6b..68f0d31f96 100644 --- a/libavcodec/evc_parse.c +++

[FFmpeg-devel] [PATCH 01/11] avformat/evcdec: set the demuxer as AVFMT_NOTIMESTAMPS

2023-06-15 Thread James Almer
Signed-off-by: James Almer --- libavformat/evcdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/evcdec.c b/libavformat/evcdec.c index 89eda0f53e..807406885a 100644 --- a/libavformat/evcdec.c +++ b/libavformat/evcdec.c @@ -268,7 +268,7 @@ const AVInputFormat

[FFmpeg-devel] [PATCH] avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF

2023-06-15 Thread Paul B Mahol
Attached. From 88fbb2fbfd2bb7cb3474d54cb197ee42b1404532 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 15 Jun 2023 17:15:44 +0200 Subject: [PATCH] avfilter/buffersrc: stop passing AV_NOPTS_VALUE on EOF Signed-off-by: Paul B Mahol --- libavfilter/buffersrc.c | 5 - 1 file changed, 4

Re: [FFmpeg-devel] [PATCH v26 1/9] avcodec/evc_parser: Added parser implementation for EVC format

2023-06-15 Thread James Almer
On 6/15/2023 8:46 AM, Dawid Kozinski wrote: - Added constants definitions for EVC parser - Provided NAL units parsing following ISO_IEC_23094-1 - EVC parser registration Signed-off-by: Dawid Kozinski --- configure | 2 + libavcodec/Makefile | 2 + libavcodec/evc.h

Re: [FFmpeg-devel] [PATCH] lavc/h264chroma: RISC-V V add motion compensation for 4xH and 2xH chroma blocks

2023-06-15 Thread Arnie Chang
On Wed, Jun 14, 2023 at 11:57 PM Rémi Denis-Courmont wrote: > It looks like \width is only ever used as AVL. You could advantageously > pass > it as a run-time argument to an internal function, and spare the > instruction > cache, instead of instantiating otherwise identical code thrice. >

Re: [FFmpeg-devel] [PATCH 0/7] Misc AFD improvements and support for Bar Data

2023-06-15 Thread Paul B Mahol
On Thu, Jun 15, 2023 at 4:54 PM Devin Heitmueller < devin.heitmuel...@ltnglobal.com> wrote: > On Wed, Jun 7, 2023 at 3:24 PM Devin Heitmueller > wrote: > > > > This patch series includes some misc changes related to AFD, as well > > as adding support for S2016-1 bar data. > > > > The current

Re: [FFmpeg-devel] [PATCH 0/7] Misc AFD improvements and support for Bar Data

2023-06-15 Thread Devin Heitmueller
On Wed, Jun 7, 2023 at 3:24 PM Devin Heitmueller wrote: > > This patch series includes some misc changes related to AFD, as well > as adding support for S2016-1 bar data. > > The current focus of this series for bar data is getting the basic > support in place within the raw domain and decklink

Re: [FFmpeg-devel] [PATCH 0/6] RISC-V initial ac3dsp

2023-06-15 Thread Lynne
Jun 15, 2023, 12:37 by shenpeit...@eswincomputing.com: > From: Shen Peiting > > We optimized the six interfaces of AC3 init by RVV, the optimized > performance was tested on the RISC-V ISA simulator--Spike, and the > results were attached to each commit. > > shenpeiting (6): > lavc/ac3dsp:

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: środa, 14 czerwca 2023 03:00 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended > MOV muxer to handle EVC video content > > On 6/13/2023 9:23 PM,

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: środa, 14 czerwca 2023 02:23 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended > MOV muxer to handle EVC video content > >

[FFmpeg-devel] [PATCH v26 9/9] avcodec/evc: Changes in MAINTAINERS file

2023-06-15 Thread Dawid Kozinski
- MAINTAINERS update Signed-off-by: Dawid Kozinski --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 07852486e4..a595800af7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -198,6 +198,8 @@ Codecs: libvpx* James

[FFmpeg-devel] [PATCH v26 8/9] avcodec/evc: Changes in Changelog file

2023-06-15 Thread Dawid Kozinski
- Changelog update Signed-off-by: Dawid Kozinski --- Changelog | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index cd872d9bf2..0b785522dc 100644 --- a/Changelog +++ b/Changelog @@ -17,6 +17,8 @@ version : - RivaTuner video decoder -

[FFmpeg-devel] [PATCH v26 7/9] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/demux.c b/libavformat/demux.c index b3f563ccc7..1b21b8440c 100644 ---

[FFmpeg-devel] [PATCH v26 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle EVC elementary stream - Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +-

[FFmpeg-devel] [PATCH v26 5/9] avcodec/evc_decoder: Provided support for EVC decoder

2023-06-15 Thread Dawid Kozinski
- Added EVC decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xevd wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/decoders.texi | 24 ++ doc/general_contents.texi | 10 +- libavcodec/Makefile

[FFmpeg-devel] [PATCH v26 4/9] avcodec/evc_encoder: Provided support for EVC encoder

2023-06-15 Thread Dawid Kozinski
- Added EVC encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xeve wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 69 + doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v26 3/9] avformat/evc_demuxer: Added demuxer to handle reading EVC video files

2023-06-15 Thread Dawid Kozinski
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavcodec/Makefile | 1 + libavcodec/bitstream_filters.c | 5 +- libavcodec/evc_frame_merge_bsf.c | 170 +++ libavformat/Makefile | 1

[FFmpeg-devel] [PATCH v26 2/9] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream

2023-06-15 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13

[FFmpeg-devel] [PATCH v26 1/9] avcodec/evc_parser: Added parser implementation for EVC format

2023-06-15 Thread Dawid Kozinski
- Added constants definitions for EVC parser - Provided NAL units parsing following ISO_IEC_23094-1 - EVC parser registration Signed-off-by: Dawid Kozinski --- configure | 2 + libavcodec/Makefile | 2 + libavcodec/evc.h| 155 libavcodec/evc_parse.c | 767

[FFmpeg-devel] [PATCH 6/6] lavc/ac3dsp: RISC-V B ac3_extract_exponents

2023-06-15 Thread Peiting Shen
From: Shen Peiting Use RVB instruction clz to calculate the number of leading zeros of MSB instead of av_log2. Benchmarks on Spike(cycles): ac3_extract_exponents_c: 8226 ac3_extract_exponents_rvb: 1167 Co-Authored by: Yang Xiaojun Co-Authored by: Huang Xing Co-Authored by: Zeng Fanchen

[FFmpeg-devel] [PATCH 5/6] lavc/ac3dsp: RISC-V V ac3_compute_mantissa_size

2023-06-15 Thread Peiting Shen
From: Shen Peiting Use RVV instruction vlsege to operate on matrix columns. Benchmarks on Spike(cycles): ac3_compute_mantissa_size_c: 2338 ac3_compute_mantissa_size_rvv: 55 Co-Authored by: Yang Xiaojun Co-Authored by: Huang Xing Co-Authored by: Zeng Fanchen Signed-off-by: Shen Peiting ---

[FFmpeg-devel] [PATCH 4/6] lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_float

2023-06-15 Thread Peiting Shen
From: Shen Peiting Scalar calculating float sum_square optimized by using RVV instructions Benchmarks on Spike(cycles): len=128 ac3_sum_square_butterfly_float_c: 7986 ac3_sum_square_butterfly_float_rvv: 146 len=1280 ac3_sum_square_butterfly_float_c: 79410 ac3_sum_square_butterfly_float_rvv:

[FFmpeg-devel] [PATCH 3/6] lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_int32

2023-06-15 Thread Peiting Shen
From: Shen Peiting Scalar calculating int32 sum_square optimized by using RVV instructions Benchmarks on Spike(cycles): len=128 ac3_sum_square_butterfly_int32_c: 8497 ac3_sum_square_butterfly_int32_rvv: 258 len=1280 ac3_sum_square_butterfly_int32_c: 84529 ac3_sum_square_butterfly_int32_rvv:

[FFmpeg-devel] [PATCH 2/6] lavc/ac3dsp: RISC-V V float_to_fixed24

2023-06-15 Thread Peiting Shen
From: Shen Peiting Vector instructions replaces scalar options of float convert to fixed Benchmarks on Spike(cycles): len=16 float_to_fixed24_c: 315 float_to_fixed24_rvv: 27 len=160 float_to_fixed24_c: 2871 float_to_fixed24_rvv: 67 Co-Authored by: Yang Xiaojun Co-Authored by: Huang Xing

[FFmpeg-devel] [PATCH 1/6] lavc/ac3dsp: RISC-V V ac3_exponent_min

2023-06-15 Thread Peiting Shen
From: Shen Peiting Find scalar minium optimized by using RVV instructions Benchmarks on Spike(cycles): *exp=1280*4;num_reuse_blocks=5;nb_coefs=16 ac3_exponent_min_c: 1993 ac3_exponent_min_rvv: 258 *exp=1280*4;num_reuse_blocks=19;nb_coefs=255 ac3_exponent_min_c: 99010 ac3_exponent_min_rvv: 3843

[FFmpeg-devel] [PATCH 0/6] RISC-V initial ac3dsp

2023-06-15 Thread Peiting Shen
From: Shen Peiting We optimized the six interfaces of AC3 init by RVV, the optimized performance was tested on the RISC-V ISA simulator--Spike, and the results were attached to each commit. shenpeiting (6): lavc/ac3dsp: RISC-V V ac3_exponent_min lavc/ac3dsp: RISC-V V float_to_fixed24

Re: [FFmpeg-devel] [PATCH] avcodec: Align AVFrame memory to page size for access via Apple Metal

2023-06-15 Thread Iskandar Safarov
Thanks for looking into this, The idea is to page-align the entire software-backed video pool allocation where video frames are being taken from – both for decoding and/or encoding (when done in software only). The default get_buffer2 (avcodec_default_get_buffer2) implementation contains code

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: środa, 14 czerwca 2023 02:23 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended > MOV muxer to handle EVC video content > >

Re: [FFmpeg-devel] [PATCH] avcodec: Align AVFrame memory to page size for access via Apple Metal

2023-06-15 Thread Hendrik Leppkes
On Thu, Jun 15, 2023 at 4:16 AM Iskandar Safarov wrote: > > --- > libavcodec/get_buffer.c | 52 - > 1 file changed, 51 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/get_buffer.c b/libavcodec/get_buffer.c > index a04fd878de..b18af3be4a 100644 >

Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski/Multimedia (PLT) /SRPOL/Staff Engineer/Samsung Electronics
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: środa, 14 czerwca 2023 03:00 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v24 6/9] avformat/mov_muxer: Extended > MOV muxer to handle EVC video content > > On 6/13/2023 9:23 PM,

[FFmpeg-devel] [PATCH v25 9/9] avcodec/evc: Changes in MAINTAINERS file

2023-06-15 Thread Dawid Kozinski
- MAINTAINERS update Signed-off-by: Dawid Kozinski --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 07852486e4..a595800af7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -198,6 +198,8 @@ Codecs: libvpx* James

[FFmpeg-devel] [PATCH v25 8/9] avcodec/evc: Changes in Changelog file

2023-06-15 Thread Dawid Kozinski
- Changelog update Signed-off-by: Dawid Kozinski --- Changelog | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index cd872d9bf2..af7a6ba5bd 100644 --- a/Changelog +++ b/Changelog @@ -62,7 +62,8 @@ version 6.0: - filtergraph syntax in ffmpeg CLI

[FFmpeg-devel] [PATCH v25 7/9] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski
- Added evc extension to the list of extensions for ff_mov_demuxer Signed-off-by: Dawid Kozinski --- libavformat/demux.c | 1 + libavformat/mov.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libavformat/demux.c b/libavformat/demux.c index b3f563ccc7..1b21b8440c 100644 ---

[FFmpeg-devel] [PATCH v25 6/9] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-06-15 Thread Dawid Kozinski
- Changes in mov_write_video_tag function to handle EVC elementary stream - Provided structure EVCDecoderConfigurationRecord that specifies the decoder configuration information for ISO/IEC 23094-1 video content Signed-off-by: Dawid Kozinski --- libavformat/Makefile| 2 +-

[FFmpeg-devel] [PATCH v25 5/9] avcodec/evc_decoder: Provided support for EVC decoder

2023-06-15 Thread Dawid Kozinski
- Added EVC decoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xevd wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/decoders.texi | 24 ++ doc/general_contents.texi | 10 +- libavcodec/Makefile

[FFmpeg-devel] [PATCH v25 4/9] avcodec/evc_encoder: Provided support for EVC encoder

2023-06-15 Thread Dawid Kozinski
- Added EVC encoder wrapper - Changes in project configuration file and libavcodec Makefile - Added documentation for xeve wrapper Signed-off-by: Dawid Kozinski --- configure | 4 + doc/encoders.texi | 69 + doc/general_contents.texi | 11 + libavcodec/Makefile

[FFmpeg-devel] [PATCH v25 3/9] avformat/evc_demuxer: Added demuxer to handle reading EVC video files

2023-06-15 Thread Dawid Kozinski
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavcodec/Makefile | 1 + libavcodec/bitstream_filters.c | 5 +- libavcodec/evc_frame_merge_bsf.c | 170 +++ libavformat/Makefile | 1

[FFmpeg-devel] [PATCH v25 2/9] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream

2023-06-15 Thread Dawid Kozinski
- Provided AVOutputFormat structure describing EVC output format (ff_evc_muxer) - Added documentation for EVC muxer Signed-off-by: Dawid Kozinski --- doc/muxers.texi | 6 ++ libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/rawenc.c | 13

[FFmpeg-devel] [PATCH v25 1/9] avcodec/evc_parser: Added parser implementation for EVC format

2023-06-15 Thread Dawid Kozinski
- Added constants definitions for EVC parser - Provided NAL units parsing following ISO_IEC_23094-1 - EVC parser registration Signed-off-by: Dawid Kozinski --- configure | 2 + libavcodec/Makefile | 2 + libavcodec/evc.h| 155 libavcodec/evc_parse.c | 800