Re: [FFmpeg-devel] [PATCH] avcodec/vvcdec: allocate and store structs on their own within the table list

2024-01-18 Thread Nuo Mi
On Thu, Jan 18, 2024 at 11:10 PM James Almer wrote: > Fixes "runtime error: member access within misaligned address 0xf00 for > type > 'struct bar', which requires # byte alignment" errors under GCC ubsan. > LGTM Thank you, James > > Signed-off-by: James Almer > --- > libavcodec/vvc/vvcdec.c

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Michael Niedermayer
Hi On Thu, Jan 18, 2024 at 09:57:27AM +, Kieran Kunhya wrote: > On Thu, 18 Jan 2024 at 09:55, Paul B Mahol wrote: > > > On Thu, Jan 18, 2024 at 10:53 AM Kieran Kunhya wrote: > > > > > > >> It's a high-spec 4-core machine with 16Gb of RAM, and still very > > > > >> usable these days, but it'

Re: [FFmpeg-devel] [PATCH 7/8] avcodec/x86/vvc: add avg and avg_w AVX2 optimizations

2024-01-18 Thread Michael Niedermayer
On Thu, Jan 18, 2024 at 10:24:03PM +0800, toq...@outlook.com wrote: > From: Wu Jianhua > > The avg/avg_w is based on dav1d. > See https://code.videolan.org/videolan/dav1d/-/blob/master/src/x86/mc_avx2.asm > > vvc_avg_8_2x2_c: 71.6 > vvc_avg_8_2x2_avx2: 26.8 > vvc_avg_8_2x4_c: 140.8 > vvc_avg_8_2

[FFmpeg-devel] [PATCH] lavc/dxvenc: add DXV encoder with support for DXT1 texture format

2024-01-18 Thread Connor Worley
Signed-off-by: Connor Worley --- Changelog | 1 + configure | 1 + doc/general_contents.texi | 3 +- libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/dxvenc.c | 358 ++ libavcodec/versi

Re: [FFmpeg-devel] Back port riscv: test for assembler support to 6.1

2024-01-18 Thread Rémi Denis-Courmont
Le sunnuntaina 7. tammikuuta 2024, 6.20.29 EET Brad Smith a écrit : > I don't have a system. But I have attached what should be there or close > to back ports for 6.1 and 6.0. If someone could please build test these > patches. I have no objections but I do not have a test system either. In any c

[FFmpeg-devel] [PATCH] x86/tx_float: AVX2 SIMD for R2C and C2R RDFTs

2024-01-18 Thread Lynne
Adds full assembly for R2C and C2R transforms R2C Before: 145370 decicycles in   av_tx (r2c),  131072 runs,  0 skips R2C After: 56897 decicycles in   av_tx (r2c),  131072 runs,  0 skips C2R Before: 140958 decicycles in   av_tx (c2r),  131071 runs,  1 skips C2R

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Paul B Mahol
On Thu, Jan 18, 2024 at 10:57 AM Kieran Kunhya wrote: > On Thu, 18 Jan 2024 at 09:55, Paul B Mahol wrote: > > > On Thu, Jan 18, 2024 at 10:53 AM Kieran Kunhya wrote: > > > > > > >> It's a high-spec 4-core machine with 16Gb of RAM, and still very > > > > >> usable these days, but it'll take arou

[FFmpeg-devel] [PATCH] x86/tx_float: enable SIMD for sizes over 131072

2024-01-18 Thread Lynne
The tables for the new sizes were added last year due to being required for SDR. However, the assembly was never updated to use them. Patch attached. >From ccfd9366025105a7dba0471965856b12d73bbd17 Mon Sep 17 00:00:00 2001 From: Lynne Date: Thu, 18 Jan 2024 17:30:29 +0100 Subject: [PATCH] x86/tx_

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Lynne
Jan 18, 2024, 09:42 by ffmpeg-devel@ffmpeg.org: > You know, you could have flipped some burgers & made enough for that laptop > by now. > > Sometimes the obvious way is the way. > > -- > Best regards, > Steve Williams > Managing Director > Advance Software Limited > > Skype: steve--w > > <><> In

[FFmpeg-devel] [PATCH] avcodec/vvcdec: allocate and store structs on their own within the table list

2024-01-18 Thread James Almer
Fixes "runtime error: member access within misaligned address 0xf00 for type 'struct bar', which requires # byte alignment" errors under GCC ubsan. Signed-off-by: James Almer --- libavcodec/vvc/vvcdec.c | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) d

[FFmpeg-devel] [PATCH 5/8] avcodec/vvcdec: reuse h26x/2656_inter.asm to enable x86 optimizations

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/Makefile | 1 + libavcodec/vvc/vvcdsp.c | 4 + libavcodec/vvc/vvcdsp.h | 2 + libavcodec/x86/vvc/Makefile | 6 + libavcodec/x86/vvc/vvcdsp_init.c | 200 +++ 5 files

[FFmpeg-devel] [PATCH 8/8] tests/checkasm/vvc_mc: add check_avg

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/vvc_mc.c | 64 + 1 file changed, 64 insertions(+) diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c index 711280deec..8adb00573f 100644 --- a/tests/checkasm/vvc_mc.c +++ b/tests/c

[FFmpeg-devel] [PATCH 7/8] avcodec/x86/vvc: add avg and avg_w AVX2 optimizations

2024-01-18 Thread toqsxw
From: Wu Jianhua The avg/avg_w is based on dav1d. See https://code.videolan.org/videolan/dav1d/-/blob/master/src/x86/mc_avx2.asm vvc_avg_8_2x2_c: 71.6 vvc_avg_8_2x2_avx2: 26.8 vvc_avg_8_2x4_c: 140.8 vvc_avg_8_2x4_avx2: 34.6 vvc_avg_8_2x8_c: 410.3 vvc_avg_8_2x8_avx2: 41.3 vvc_avg_8_2x16_c: 769.3

[FFmpeg-devel] [PATCH 6/8] tests/checkasm: add checkasm_check_vvc_mc

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- tests/checkasm/Makefile | 1 + tests/checkasm/checkasm.c | 3 + tests/checkasm/checkasm.h | 1 + tests/checkasm/vvc_mc.c | 270 ++ 4 files changed, 275 insertions(+) create mode 100644 tests/checkasm/v

[FFmpeg-devel] [PATCH 3/8] avcodec/x86/hevc_mc: move put/put_uni to h26x/h2656_inter.asm

2024-01-18 Thread toqsxw
From: Wu Jianhua This enable that the asm optimization can be reused by VVC Signed-off-by: Wu Jianhua --- libavcodec/x86/Makefile |1 + libavcodec/x86/h26x/h2656_inter.asm | 1135 +++ libavcodec/x86/h26x/h2656dsp.c | 98 +++ libavcodec/x86/h26x/h2

[FFmpeg-devel] [PATCH 4/8] avcodec/x86/h26x/h2656_inter: add dststride to put

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/x86/h26x/h2656_inter.asm | 32 ++--- libavcodec/x86/h26x/h2656dsp.c | 4 ++-- libavcodec/x86/h26x/h2656dsp.h | 2 +- libavcodec/x86/hevcdsp_init.c | 2 +- 4 files changed, 19 insertions(+), 21 d

[FFmpeg-devel] [PATCH 2/8] avcodec/hevcdsp_template: reuse put/put_luma/put_chroma from h2656_inter_template

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/hevcdsp_template.c | 594 +++--- 1 file changed, 46 insertions(+), 548 deletions(-) diff --git a/libavcodec/hevcdsp_template.c b/libavcodec/hevcdsp_template.c index 0de14e9dcf..9b48bdf08e 100644 --- a/libavco

[FFmpeg-devel] [PATCH 1/8] avcodec/vvc/vvc_inter_template: move put/put_luma/put_chroma template to h2656_inter_template.c

2024-01-18 Thread toqsxw
From: Wu Jianhua Signed-off-by: Wu Jianhua --- libavcodec/h26x/h2656_inter_template.c | 577 + libavcodec/vvc/vvc_inter_template.c| 559 +--- 2 files changed, 578 insertions(+), 558 deletions(-) create mode 100644 libavcodec/h26x/h2656_inter_temp

Re: [FFmpeg-devel] configure doesn't seem to use pkg-config flags?

2024-01-18 Thread Timo Rothenpieler
On 18/01/2024 04:38, Roger Pack wrote: Hello. After compiling libx265 as a "static library" (mingw cross compiling targeting win64) $ pkg-config --libs --static x265 -L/home/rdp/new/sandbox/win64_static/build_files/lib -lx265 /usr/lib/gcc/x86_64-w64-mingw32/10-win32/libstdc++.a -lgcc I get t

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Lynne
Jan 18, 2024, 05:07 by d...@lynne.ee: > Jan 18, 2024, 04:29 by mich...@niedermayer.cc: > >> On Wed, Jan 17, 2024 at 04:39:21PM +0100, Lynne wrote: >> >>> Jan 17, 2024, 14:37 by mich...@niedermayer.cc: >>> >> [...] >> >>> > also what exactly are your requirements for the new machiene >>> > and what

Re: [FFmpeg-devel] [PATCH v1 2/5] avformat: add muxer support for H266/VVC

2024-01-18 Thread Ridley Combs via ffmpeg-devel
> On Jan 4, 2024, at 16:31, James Almer wrote: > > On 11/3/2023 6:57 AM, Thomas Siedel wrote: >> Add muxer for vvcc byte stream format. >> Add AV_CODEC_ID_VVC to ff_mp4_obj_type. >> Add AV_CODEC_ID_VVC to ISO Media codec (VvcConfigurationBox vvi1, >> vvc1 defined in ISO/IEC 14496-15:2021). >> A

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Kieran Kunhya
On Thu, 18 Jan 2024 at 09:55, Paul B Mahol wrote: > On Thu, Jan 18, 2024 at 10:53 AM Kieran Kunhya wrote: > > > > >> It's a high-spec 4-core machine with 16Gb of RAM, and still very > > > >> usable these days, but it'll take around 400 dollars to repair, > > > >> as a new original screen is expe

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Paul B Mahol
On Thu, Jan 18, 2024 at 10:53 AM Kieran Kunhya wrote: > > >> It's a high-spec 4-core machine with 16Gb of RAM, and still very > > >> usable these days, but it'll take around 400 dollars to repair, > > >> as a new original screen is expensive (290), battery isn't cheap (60), > > >> and parts are i

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Kieran Kunhya
> >> It's a high-spec 4-core machine with 16Gb of RAM, and still very > >> usable these days, but it'll take around 400 dollars to repair, > >> as a new original screen is expensive (290), battery isn't cheap (60), > >> and parts are in general in demand as it's out of support by now. > >> > > > >

Re: [FFmpeg-devel] Hardware purchase request: AVX512-capable laptop

2024-01-18 Thread Steve Williams via ffmpeg-devel
You know, you could have flipped some burgers & made enough for that laptop by now. Sometimes the obvious way is the way. On 18/01/2024 06:07, Lynne wrote: Jan 18, 2024, 04:29 by mich...@niedermayer.cc: On Wed, Jan 17, 2024 at 04:39:21PM +0100, Lynne wrote: Jan 17, 2024, 14:37 by mich...@n