[FFmpeg-devel] [PATCH 1/4] configure: aarch64: Support assembling the dotprod and i8mm arch extensions

2023-05-26 Thread Martin Storsjö
These are available since ARMv8.4-a and ARMv8.6-a respectively, but can also be available optionally since ARMv8.2-a. Check if these are available for use unconditionally (e.g. if compiling with -march=armv8.6-a), or if they can be enabled with specific assembler directives. Use ".arch_extension

[FFmpeg-devel] [PATCH 2/4] aarch64: Add cpu flags for the dotprod and i8mm extensions

2023-05-26 Thread Martin Storsjö
Set these available if they are available unconditionally for the compiler. --- libavutil/aarch64/cpu.c | 15 --- libavutil/aarch64/cpu.h | 2 ++ libavutil/cpu.c | 2 ++ libavutil/cpu.h | 2 ++ libavutil/tests/cpu.c | 2 ++ tests/checkasm/checkasm.c | 2

[FFmpeg-devel] [PATCH 3/4] aarch64: Add linux runtime cpu feature detection using getauxval(AT_HWCAP)

2023-05-26 Thread Martin Storsjö
Based on code by Janne Grunau. Using HWCAP_CPUID for user space access to the CPU feature registers. See https://www.kernel.org/doc/html/latest/arm64/cpu-feature-registers.html. --- configure | 2 ++ libavutil/aarch64/cpu.c | 38 ++ 2 files chang

[FFmpeg-devel] [PATCH 4/4] aarch64: Add Apple runtime detection of dotprod and i8mm using sysctl

2023-05-26 Thread Martin Storsjö
--- configure | 2 ++ libavutil/aarch64/cpu.c | 22 ++ 2 files changed, 24 insertions(+) diff --git a/configure b/configure index b5357b8d27..45bdc16c7d 100755 --- a/configure +++ b/configure @@ -2346,6 +2346,7 @@ SYSTEM_FUNCS=" strerror_r sysconf

Re: [FFmpeg-devel] [PATCH] lavc/aarch64: new optimization for 8-bit hevc_pel_uni_w_pixels, qpel_uni_w_h, qpel_uni_w_v, qpel_uni_w_hv and qpel_h

2023-05-26 Thread Martin Storsjö
Hi, Overall these patches seem mostly ok, but I've got a few minor points to make: - The usdot instruction requires the i8mm extension (part of armv8.6-a), while udot or sdot would require the dotprod extension (available in armv8.4-a). If you could manage with udot or sdot, these functions

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict: add av_dict_pop

2023-05-26 Thread Marvin Scholz
On 26 May 2023, at 8:05, Stefano Sabatini wrote: > On date Monday 2023-05-22 11:23:24 +0200, Marvin Scholz wrote: >> On 22 May 2023, at 1:52, Stefano Sabatini wrote: >> >>> On date Monday 2023-05-01 13:44:54 +0200, Marvin Scholz wrote: This new API allows to remove an entry and obtain owner

[FFmpeg-devel] [PATCH v23 01/10] avcodec/evc: MPEG-5 EVC codec registration

2023-05-26 Thread Dawid Kozinski
Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec Signed-off-by: Dawid Kozinski --- libavcodec/avcodec.h|

[FFmpeg-devel] [PATCH v23 02/10] avcodec/evc_parser: Added parser implementation for EVC format

2023-05-26 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 --- libavcodec/Makefile |1 + libavcodec/evc.h| 155 libavcodec/evc_parser.c | 1508 ++

[FFmpeg-devel] [PATCH v23 03/10] avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream

2023-05-26 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 v23 04/10] avformat/evc_demuxer: Added demuxer to handle reading EVC video files

2023-05-26 Thread Dawid Kozinski
- Provided AVInputFormat struct describing EVC input format (ff_evc_demuxer) Signed-off-by: Dawid Kozinski --- libavcodec/Makefile | 1 + libavcodec/evc_frame_merge_bsf.c | 857 +++ libavformat/Makefile | 1 + libavformat/allformats.c

[FFmpeg-devel] [PATCH v23 05/10] avcodec/evc_encoder: Provided support for EVC encoder

2023-05-26 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 v23 06/10] avcodec/evc_decoder: Provided support for EVC decoder

2023-05-26 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 v23 07/10] avformat/mov_muxer: Extended MOV muxer to handle EVC video content

2023-05-26 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 +- libavformat/evc

[FFmpeg-devel] [PATCH v23 08/10] avformat/mov_demuxer: Extended MOV demuxer to handle EVC video content

2023-05-26 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 --- a/libavform

[FFmpeg-devel] [PATCH v23 09/10] avcodec/evc: Changes in Changelog file

2023-05-26 Thread Dawid Kozinski
- Changelog update Signed-off-by: Dawid Kozinski --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 55291074ec..38d45a6a0c 100644 --- a/Changelog +++ b/Changelog @@ -82,6 +82,8 @@ version 5.1: - remap_opencl filter - added chromakey_

[FFmpeg-devel] [PATCH] configure: Stop undeffing __STRICT_ANSI__ for mingw/cygwin targets

2023-05-26 Thread Martin Storsjö
The undeffing of __STRICT_ANSI__ was introduced for mingw in 5666a9f20c6ef2b207e0517c8eeb9556badf76a3 (in March 2011) and for Cygwin and DOS in a7a187a1beb8551101b592bf85f0f31a0db22f61 (in May 2011). The reason for undeffing it was that it hides some functions which we might rely on; in particular

[FFmpeg-devel] [PATCH v23 10/10] avcodec/evc: Changes in MAINTAINERS file

2023-05-26 Thread Dawid Kozinski
- MAINTAINERS update Signed-off-by: Dawid Kozinski --- MAINTAINERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f95be01dc6..e149922995 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -198,6 +198,8 @@ Codecs: libvpx* James Z

[FFmpeg-devel] ??????[PATCH] avcodec/videotoolboxenc: add CBP/CHP profile

2023-05-26 Thread ??????
Kern, please help to review this patch, which has added CBP profile with profile options. As for the VT_H264Profile replacement, let you take over, follow up this patch. Thanks --  -- ??:

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-26 Thread Lynne
May 25, 2023, 02:31 by d...@lynne.ee: > May 22, 2023, 10:26 by d...@lynne.ee: > >> Planning on pushing this partially (no encoding) tomorrow unless there are >> more comments. >> All known issues have been fixed, and if there are more issues, they can be >> found as users test it. >> > > Added A

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-26 Thread Anton Khirnov
Quoting Lynne (2023-05-26 19:52:24) > May 25, 2023, 02:31 by d...@lynne.ee: > > > May 22, 2023, 10:26 by d...@lynne.ee: > > > >> Planning on pushing this partially (no encoding) tomorrow unless there are > >> more comments. > >> All known issues have been fixed, and if there are more issues, they

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_dec: abort if avcodec_send_packet() returns EAGAIN

2023-05-26 Thread James Almer
On 5/24/2023 8:31 AM, James Almer wrote: As the comment in the code mentions, EAGAIN is not an expected value here because we call avcodec_receive_frame() until all frames have been returned. avcodec_send_packet() returning EAGAIN means a packet is still buffered, which hints that the underlying

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict: add av_dict_pop

2023-05-26 Thread Michael Niedermayer
On Fri, May 26, 2023 at 11:11:48AM +0200, Marvin Scholz wrote: > > > On 26 May 2023, at 8:05, Stefano Sabatini wrote: > > > On date Monday 2023-05-22 11:23:24 +0200, Marvin Scholz wrote: > >> On 22 May 2023, at 1:52, Stefano Sabatini wrote: > >> > >>> On date Monday 2023-05-01 13:44:54 +0200, Ma

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict: add av_dict_pop

2023-05-26 Thread James Almer
On 5/26/2023 6:11 AM, Marvin Scholz wrote: On 26 May 2023, at 8:05, Stefano Sabatini wrote: On date Monday 2023-05-22 11:23:24 +0200, Marvin Scholz wrote: On 22 May 2023, at 1:52, Stefano Sabatini wrote: On date Monday 2023-05-01 13:44:54 +0200, Marvin Scholz wrote: This new API allows to

Re: [FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

2023-05-26 Thread Lynne
May 26, 2023, 21:19 by an...@khirnov.net: > Quoting Lynne (2023-05-26 19:52:24) > >> May 25, 2023, 02:31 by d...@lynne.ee: >> >> > May 22, 2023, 10:26 by d...@lynne.ee: >> > >> >> Planning on pushing this partially (no encoding) tomorrow unless there >> >> are more comments. >> >> All known issue

Re: [FFmpeg-devel] [PATCH 1/3] avutil/dict: add av_dict_pop

2023-05-26 Thread Marvin Scholz
On 26 May 2023, at 22:02, Michael Niedermayer wrote: > On Fri, May 26, 2023 at 11:11:48AM +0200, Marvin Scholz wrote: >> >> >> On 26 May 2023, at 8:05, Stefano Sabatini wrote: >> >>> On date Monday 2023-05-22 11:23:24 +0200, Marvin Scholz wrote: On 22 May 2023, at 1:52, Stefano Sabatini wro

[FFmpeg-devel] [PATCH v4 0/2] Animated JPEG XL Support

2023-05-26 Thread Leo Izen
Changes from v3: - Use avctx->internal->in_pkt instead of allocating a new packet. Leo Izen (2): avcodec/libjxldec: add animated decode support avformat/jpegxl_anim_dec: add animated JPEG XL demuxer MAINTAINERS | 1 + libavcodec/libjxldec.c| 107 ++ l

[FFmpeg-devel] [PATCH v4 1/2] avcodec/libjxldec: add animated decode support

2023-05-26 Thread Leo Izen
Migrate the libjxl decoder wrapper from the decode_frame method to the receive_frame method, which allows sending more than one frame from a single packet. This allows the libjxl decoder to decode JPEG XL files that are animated, and emit every frame of the animation. Now, clients that feed the lib

[FFmpeg-devel] [PATCH v4 2/2] avformat/jpegxl_anim_dec: add animated JPEG XL demuxer

2023-05-26 Thread Leo Izen
Animated JPEG XL files requires a separate demuxer than image2, because the timebase information is set by the demuxer. Should the timebase of an animated JPEG XL file be incompatible with the timebase set by the image2pipe demuxer (usually 1/25 unless set otherwise), rescaling will fail. Adding a

[FFmpeg-devel] [PATCH] nellymoser: user float literals for table

2023-05-26 Thread Tristan Matthews
--- libavcodec/nellymoser.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/libavcodec/nellymoser.c b/libavcodec/nellymoser.c index 66c5f83a56..fa22b79909 100644 --- a/libavcodec/nellymoser.c +++ b/libavcodec/nellymoser.c @@ -39,30 +39,30

Re: [FFmpeg-devel] [PATCH] nellymoser: user float literals for table

2023-05-26 Thread Tristan Matthews
On Sat, May 27, 2023, 00:24 Tristan Matthews wrote: > --- > libavcodec/nellymoser.c | 36 ++-- > 1 file changed, 18 insertions(+), 18 deletions(-) > > diff --git a/libavcodec/nellymoser.c b/libavcodec/nellymoser.c > index 66c5f83a56..fa22b79909 100644 > --- a/liba