From: Niklas Haas <ffmpeg@haasn.xyz> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 07/13] avfilter/x86/f_ebur128: add x86 AVX implementation Date: Mon, 16 Jun 2025 13:19:12 +0200 Message-ID: <20250616131912.GB10251@haasn.xyz> (raw) In-Reply-To: <20250614011222.GI29660@pb2> On Sat, 14 Jun 2025 03:12:22 +0200 Michael Niedermayer <michael@niedermayer.cc> wrote: > Hi Niklas > > On Fri, Jun 13, 2025 at 06:37:50PM +0200, Niklas Haas wrote: > > From: Niklas Haas <git@haasn.dev> > > > > Processes two channels in parallel, using 128-bit XMM registers. > > > > In theory, we could go up to YMM registers to process 4 channels, but this is > > not a gain except for relatively high channel counts (e.g. 7.1), and also > > complicates the sample load/store operations considerably. > > > > I decided to only add an AVX variant, since the C code is not substantially > > slower enough to justify a separate function just for ancient CPUs. > > --- > > libavfilter/f_ebur128.c | 15 ++-- > > libavfilter/f_ebur128.h | 16 ++++ > > libavfilter/x86/Makefile | 2 + > > libavfilter/x86/f_ebur128.asm | 142 +++++++++++++++++++++++++++++++ > > libavfilter/x86/f_ebur128_init.c | 35 ++++++++ > > 5 files changed, 205 insertions(+), 5 deletions(-) > > create mode 100644 libavfilter/x86/f_ebur128.asm > > create mode 100644 libavfilter/x86/f_ebur128_init.c > > breaks x86-32 Fixed by enabling this only on 64 bit x86. > > src/libavfilter/x86/f_ebur128.asm:116: error: symbol `m8' undefined > src/libavfilter/x86/f_ebur128.asm:118: error: symbol `m9' undefined > src/libavfilter/x86/f_ebur128.asm:119: error: symbol `m10' undefined > src/libavfilter/x86/f_ebur128.asm:120: error: symbol `m11' undefined > src/libavfilter/x86/f_ebur128.asm:121: error: symbol `m12' undefined > src/libavfilter/x86/f_ebur128.asm:122: error: symbol `m13' undefined > src/libavfilter/x86/f_ebur128.asm:124: error: symbol `r7q' undefined > src/libavfilter/x86/f_ebur128.asm:125: error: symbol `r8q' undefined > src/libavfilter/x86/f_ebur128.asm:132: error: symbol `r7q' undefined > src/libavfilter/x86/f_ebur128.asm:91: ... from macro `filter_channels' defined here > src/libavfilter/x86/f_ebur128.asm:57: ... from macro `FILTER' defined here > src//libavutil/x86/x86inc.asm:1654: ... from macro `movsd' defined here > src//libavutil/x86/x86inc.asm:1501: ... from macro `RUN_AVX_INSTR' defined here > src/libavfilter/x86/f_ebur128.asm:132: error: symbol `r7q' undefined > src/libavfilter/x86/f_ebur128.asm:91: ... from macro `filter_channels' defined here > src/libavfilter/x86/f_ebur128.asm:58: ... from macro `FILTER' defined here > src//libavutil/x86/x86inc.asm:1654: ... from macro `movsd' defined here > src//libavutil/x86/x86inc.asm:1501: ... from macro `RUN_AVX_INSTR' defined here > src/libavfilter/x86/f_ebur128.asm:132: error: symbol `r7q' undefined > ... > > [...] > -- > Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB > > Concerning the gods, I have no means of knowing whether they exist or not > or of what sort they may be, because of the obscurity of the subject, and > the brevity of human life -- Protagoras > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2025-06-16 11:19 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-06-13 16:37 [FFmpeg-devel] [PATCH v2 01/13] avfilter/f_ebur128: use transformed direct form II Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 02/13] avfilter/f_ebur128: simplify sample cache array Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 03/13] avfilter/f_ebur128: use structs for biquad weights Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 04/13] avfilter/f_ebur128: use a single packed array for the integrator cache Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 05/13] avfilter/f_ebur128: move weights and cache to EBUR128DSPContext Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 06/13] avfilter/f_ebur128: split off C implementation to separate function Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 07/13] avfilter/x86/f_ebur128: add x86 AVX implementation Niklas Haas 2025-06-14 1:12 ` Michael Niedermayer 2025-06-16 11:19 ` Niklas Haas [this message] 2025-06-14 1:20 ` James Almer 2025-06-16 11:15 ` Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 08/13] avfilter/f_ebur128: remove pointless macro Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 09/13] avfilter/f_ebur128: move true peak calculation out of main loop Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 10/13] avfilter/f_ebur128: lift sample " Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 11/13] avfilter/f_ebur128: move variable declarations to usage site Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 12/13] avfilter/f_ebur128: move true peak calculation to DSP function Niklas Haas 2025-06-13 16:37 ` [FFmpeg-devel] [PATCH v2 13/13] avfilter/x86/f_ebur128: implement AVX true peak calculation Niklas Haas 2025-06-16 11:19 [FFmpeg-devel] [PATCH v2 01/13] avfilter/f_ebur128: use transformed direct form II Niklas Haas 2025-06-16 11:19 ` [FFmpeg-devel] [PATCH v2 07/13] avfilter/x86/f_ebur128: add x86 AVX implementation Niklas Haas 2025-06-16 14:18 ` Michael Niedermayer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20250616131912.GB10251@haasn.xyz \ --to=ffmpeg@haasn.xyz \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git