* [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
@ 2024-05-22 0:00 Stone Chen
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Stone Chen @ 2024-05-22 0:00 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stone Chen
Implements AVX2 DMVR (decoder-side motion vector refinement) SAD functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128. To reduce complexity, SAD is only calculated on even rows. This is calculated for all video bitdepths, but the values passed to the function are always 16bit (even if the original video bitdepth is 8). The AVX2 implementation uses min/max/sub.
Additionally this changes parameters dx and dy from int to intptr_t. This allows dx & dy to be used as pointer offsets without needing to use movsxd.
Benchmarks ( AMD 7940HS )
Before:
BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
NovosobornayaSquare_1920x1080.bin | 197.3 |
RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
After:
BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
NovosobornayaSquare_1920x1080.bin | 204.0|
RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
---
libavcodec/vvc/dsp.c | 2 +-
libavcodec/vvc/dsp.h | 2 +-
libavcodec/x86/vvc/Makefile | 3 +-
libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
5 files changed, 140 insertions(+), 3 deletions(-)
create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
diff --git a/libavcodec/vvc/dsp.c b/libavcodec/vvc/dsp.c
index 41e830a98a..aded1a2f9f 100644
--- a/libavcodec/vvc/dsp.c
+++ b/libavcodec/vvc/dsp.c
@@ -46,7 +46,7 @@ static void av_always_inline pad_int16(int16_t *_dst, const ptrdiff_t dst_stride
memcpy(_dst, _dst - dst_stride, padded_width * sizeof(int16_t));
}
-static int vvc_sad(const int16_t *src0, const int16_t *src1, int dx, int dy,
+static int vvc_sad(const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy,
const int block_w, const int block_h)
{
int sad = 0;
diff --git a/libavcodec/vvc/dsp.h b/libavcodec/vvc/dsp.h
index 9810ac314c..213337358b 100644
--- a/libavcodec/vvc/dsp.h
+++ b/libavcodec/vvc/dsp.h
@@ -86,7 +86,7 @@ typedef struct VVCInterDSPContext {
void (*apply_bdof)(uint8_t *dst, ptrdiff_t dst_stride, int16_t *src0, int16_t *src1, int block_w, int block_h);
- int (*sad)(const int16_t *src0, const int16_t *src1, int dx, int dy, int block_w, int block_h);
+ int (*sad)(const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
void (*dmvr[2][2])(int16_t *dst, const uint8_t *src, ptrdiff_t src_stride, int height,
intptr_t mx, intptr_t my, int width);
} VVCInterDSPContext;
diff --git a/libavcodec/x86/vvc/Makefile b/libavcodec/x86/vvc/Makefile
index d6a66f860a..7b2438ce17 100644
--- a/libavcodec/x86/vvc/Makefile
+++ b/libavcodec/x86/vvc/Makefile
@@ -5,4 +5,5 @@ OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvcdsp_init.o \
x86/h26x/h2656dsp.o
X86ASM-OBJS-$(CONFIG_VVC_DECODER) += x86/vvc/vvc_alf.o \
x86/vvc/vvc_mc.o \
- x86/h26x/h2656_inter.o
+ x86/vvc/vvc_sad.o \
+ x86/h26x/h2656_inter.o
diff --git a/libavcodec/x86/vvc/vvc_sad.asm b/libavcodec/x86/vvc/vvc_sad.asm
new file mode 100644
index 0000000000..9766446b11
--- /dev/null
+++ b/libavcodec/x86/vvc/vvc_sad.asm
@@ -0,0 +1,130 @@
+; /*
+; * Provide SIMD DMVR SAD functions for VVC decoding
+; *
+; * Copyright (c) 2024 Stone Chen
+; *
+; * This file is part of FFmpeg.
+; *
+; * FFmpeg is free software; you can redistribute it and/or
+; * modify it under the terms of the GNU Lesser General Public
+; * License as published by the Free Software Foundation; either
+; * version 2.1 of the License, or (at your option) any later version.
+; *
+; * FFmpeg is distributed in the hope that it will be useful,
+; * but WITHOUT ANY WARRANTY; without even the implied warranty of
+; * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+; * Lesser General Public License for more details.
+; *
+; * You should have received a copy of the GNU Lesser General Public
+; * License along with FFmpeg; if not, write to the Free Software
+; * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+; */
+
+%include "libavutil/x86/x86util.asm"
+%define MAX_PB_SIZE 128
+%define ROWS 2
+
+SECTION_RODATA
+
+pw_1: times 2 dw 1
+
+; DMVR SAD is only calculated on even rows to reduce complexity
+SECTION .text
+
+%macro MIN_MAX_SAD 3 ;
+ pminuw %3, %2, %1
+ pmaxuw %1, %2, %1
+ psubusw %1, %1, %3
+%endmacro
+
+%macro HORIZ_ADD 3 ; xm0, xm1, m1
+ vextracti128 %1, %3, q0001 ; 3 2 1 0
+ paddd %1, %2 ; xm0 (7 + 3) (6 + 2) (5 + 1) (4 + 0)
+ pshufd %2, %1, q0032 ; xm1 - - (7 + 3) (6 + 2)
+ paddd %1, %1, %2 ; xm0 _ _ (5 1 7 3) (4 0 6 2)
+ pshufd %2, %1, q0001 ; xm1 _ _ (5 1 7 3) (5 1 7 3)
+ paddd %1, %1, %2 ; (01234567)
+%endmacro
+
+%if ARCH_X86_64
+%if HAVE_AVX2_EXTERNAL
+
+INIT_YMM avx2
+
+cglobal vvc_sad, 6, 9, 5, src1, src2, dx, dy, block_w, block_h, off1, off2, row_idx
+ sub dxq, 2
+ sub dyq, 2
+
+ mov off1q, 2
+ mov off2q, 2
+
+ add off1q, dyq
+ sub off2q, dyq
+
+ shl off1q, 7
+ shl off2q, 7
+
+ add off1q, dxq
+ sub off2q, dxq
+
+ lea src1q, [src1q + off1q * 2 + 2 * 2]
+ lea src2q, [src2q + off2q * 2 + 2 * 2]
+
+ pxor m3, m3
+ vpbroadcastd m4, [pw_1]
+
+ cmp block_wd, 16
+ jge vvc_sad_16_128
+
+ vvc_sad_8:
+ .loop_height:
+ movu xm0, [src1q]
+ vinserti128 m0, [src1q + MAX_PB_SIZE * ROWS * 2], 1
+ movu xm1, [src2q]
+ vinserti128 m1, [src2q + MAX_PB_SIZE * ROWS * 2], 1
+
+ MIN_MAX_SAD m1, m0, m2
+ pmaddwd m1, m4
+ paddd m3, m1
+
+ add src1q, 2 * MAX_PB_SIZE * ROWS * 2
+ add src2q, 2 * MAX_PB_SIZE * ROWS * 2
+
+ sub block_hd, 4
+ jg .loop_height
+
+ HORIZ_ADD xm0, xm3, m3
+ movd eax, xm0
+ RET
+
+ vvc_sad_16_128:
+ sar block_wd, 4
+ .loop_height:
+ mov off1q, src1q
+ mov off2q, src2q
+ mov row_idxd, block_wd
+
+ .loop_width:
+ movu m0, [src1q]
+ movu m1, [src2q]
+ MIN_MAX_SAD m1, m0, m2
+ pmaddwd m1, m4
+ paddd m3, m1
+
+ add src1q, 32
+ add src2q, 32
+ dec row_idxd
+ jg .loop_width
+
+ lea src1q, [off1q + ROWS * MAX_PB_SIZE * 2]
+ lea src2q, [off2q + ROWS * MAX_PB_SIZE * 2]
+
+ sub block_hd, 2
+ jg .loop_height
+
+ HORIZ_ADD xm0, xm3, m3
+ movd eax, xm0
+ RET
+
+%endif
+%endif
diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c
index 0e68971b2c..aa6c916760 100644
--- a/libavcodec/x86/vvc/vvcdsp_init.c
+++ b/libavcodec/x86/vvc/vvcdsp_init.c
@@ -311,6 +311,9 @@ ALF_FUNCS(16, 12, avx2)
c->alf.filter[CHROMA] = ff_vvc_alf_filter_chroma_##bd##_avx2; \
c->alf.classify = ff_vvc_alf_classify_##bd##_avx2; \
} while (0)
+
+int ff_vvc_sad_avx2(const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
+#define SAD_INIT() c->inter.sad = ff_vvc_sad_avx2
#endif
void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
@@ -327,6 +330,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
ALF_INIT(8);
AVG_INIT(8, avx2);
MC_LINKS_AVX2(8);
+ SAD_INIT();
}
break;
case 10:
@@ -338,6 +342,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
AVG_INIT(10, avx2);
MC_LINKS_AVX2(10);
MC_LINKS_16BPC_AVX2(10);
+ SAD_INIT();
}
break;
case 12:
@@ -349,6 +354,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
AVG_INIT(12, avx2);
MC_LINKS_AVX2(12);
MC_LINKS_16BPC_AVX2(12);
+ SAD_INIT();
}
break;
default:
--
2.45.0
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c
2024-05-22 0:00 [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Stone Chen
@ 2024-05-22 0:00 ` Stone Chen
2024-05-22 1:12 ` Ronald S. Bultje
2024-05-22 2:03 ` James Almer
2024-05-22 1:01 ` [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Ronald S. Bultje
2024-05-22 5:02 ` Andreas Rheinhardt
2 siblings, 2 replies; 11+ messages in thread
From: Stone Chen @ 2024-05-22 0:00 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Stone Chen
Adds checkasm for DMVR SAD AVX2 implementation.
Benchmarks ( AMD 7940HS )
vvc_sad_8x8_c: 50.3
vvc_sad_8x8_avx2: 0.3
vvc_sad_16x16_c: 250.3
vvc_sad_16x16_avx2: 10.3
vvc_sad_32x32_c: 1020.3
vvc_sad_32x32_avx2: 60.3
vvc_sad_64x64_c: 3850.3
vvc_sad_64x64_avx2: 220.3
vvc_sad_128x128_c: 14100.3
vvc_sad_128x128_avx2: 840.3
---
tests/checkasm/vvc_mc.c | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c
index 97f57cb401..f2d7a6d561 100644
--- a/tests/checkasm/vvc_mc.c
+++ b/tests/checkasm/vvc_mc.c
@@ -322,8 +322,46 @@ static void check_avg(void)
report("avg");
}
+static void check_vvc_sad(void)
+{
+ const int bit_depth = 10;
+ VVCDSPContext c;
+ LOCAL_ALIGNED_32(uint16_t, src0, [MAX_CTU_SIZE * MAX_CTU_SIZE * 4]);
+ LOCAL_ALIGNED_32(uint16_t, src1, [MAX_CTU_SIZE * MAX_CTU_SIZE * 4]);
+ declare_func(int, const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
+
+ ff_vvc_dsp_init(&c, bit_depth);
+ memset(src0, 0, MAX_CTU_SIZE * MAX_CTU_SIZE * 4);
+ memset(src1, 0, MAX_CTU_SIZE * MAX_CTU_SIZE * 4);
+
+ randomize_pixels(src0, src1, MAX_CTU_SIZE * MAX_CTU_SIZE * 2);
+ for (int h = 8; h <= MAX_CTU_SIZE; h *= 2) {
+ for (int w = 8; w <= MAX_CTU_SIZE; w *= 2) {
+ for(int offy = 0; offy <= 4; offy++) {
+ for(int offx = 0; offx <= 4; offx++) {
+ if(check_func(c.inter.sad, "vvc_sad_%dx%d", w, h)) {
+ int result0;
+ int result1;
+
+ result0 = call_ref(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
+ result1 = call_new(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
+
+ if (result1 != result0)
+ fail();
+ if(w == h && offx == 0 && offy == 0)
+ bench_new(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
+ }
+ }
+ }
+ }
+ }
+
+ report("check_vvc_sad");
+}
+
void checkasm_check_vvc_mc(void)
{
+ check_vvc_sad();
check_put_vvc_luma();
check_put_vvc_luma_uni();
check_put_vvc_chroma();
--
2.45.0
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
@ 2024-05-22 1:12 ` Ronald S. Bultje
2024-05-22 23:37 ` James Almer
2024-05-22 2:03 ` James Almer
1 sibling, 1 reply; 11+ messages in thread
From: Ronald S. Bultje @ 2024-05-22 1:12 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Stone Chen
Hi,
On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com> wrote:
> Adds checkasm for DMVR SAD AVX2 implementation.
>
> Benchmarks ( AMD 7940HS )
> vvc_sad_8x8_c: 50.3
> vvc_sad_8x8_avx2: 0.3
> vvc_sad_16x16_c: 250.3
> vvc_sad_16x16_avx2: 10.3
> vvc_sad_32x32_c: 1020.3
> vvc_sad_32x32_avx2: 60.3
> vvc_sad_64x64_c: 3850.3
> vvc_sad_64x64_avx2: 220.3
> vvc_sad_128x128_c: 14100.3
> vvc_sad_128x128_avx2: 840.3
> ---
> tests/checkasm/vvc_mc.c | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
LGTM.
Ronald
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c
2024-05-22 1:12 ` Ronald S. Bultje
@ 2024-05-22 23:37 ` James Almer
0 siblings, 0 replies; 11+ messages in thread
From: James Almer @ 2024-05-22 23:37 UTC (permalink / raw)
To: ffmpeg-devel
On 5/21/2024 10:12 PM, Ronald S. Bultje wrote:
> Hi,
>
> On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com> wrote:
>
>> Adds checkasm for DMVR SAD AVX2 implementation.
>>
>> Benchmarks ( AMD 7940HS )
>> vvc_sad_8x8_c: 50.3
>> vvc_sad_8x8_avx2: 0.3
>> vvc_sad_16x16_c: 250.3
>> vvc_sad_16x16_avx2: 10.3
>> vvc_sad_32x32_c: 1020.3
>> vvc_sad_32x32_avx2: 60.3
>> vvc_sad_64x64_c: 3850.3
>> vvc_sad_64x64_avx2: 220.3
>> vvc_sad_128x128_c: 14100.3
>> vvc_sad_128x128_avx2: 840.3
>> ---
>> tests/checkasm/vvc_mc.c | 38 ++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 38 insertions(+)
>>
>
> LGTM.
>
> Ronald
Applied after removing the trailing whitespaces.
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
2024-05-22 1:12 ` Ronald S. Bultje
@ 2024-05-22 2:03 ` James Almer
1 sibling, 0 replies; 11+ messages in thread
From: James Almer @ 2024-05-22 2:03 UTC (permalink / raw)
To: ffmpeg-devel
On 5/21/2024 9:00 PM, Stone Chen wrote:
> Adds checkasm for DMVR SAD AVX2 implementation.
>
> Benchmarks ( AMD 7940HS )
> vvc_sad_8x8_c: 50.3
> vvc_sad_8x8_avx2: 0.3
> vvc_sad_16x16_c: 250.3
> vvc_sad_16x16_avx2: 10.3
> vvc_sad_32x32_c: 1020.3
> vvc_sad_32x32_avx2: 60.3
> vvc_sad_64x64_c: 3850.3
> vvc_sad_64x64_avx2: 220.3
> vvc_sad_128x128_c: 14100.3
> vvc_sad_128x128_avx2: 840.3
> ---
> tests/checkasm/vvc_mc.c | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> diff --git a/tests/checkasm/vvc_mc.c b/tests/checkasm/vvc_mc.c
> index 97f57cb401..f2d7a6d561 100644
> --- a/tests/checkasm/vvc_mc.c
> +++ b/tests/checkasm/vvc_mc.c
> @@ -322,8 +322,46 @@ static void check_avg(void)
> report("avg");
> }
>
> +static void check_vvc_sad(void)
> +{
> + const int bit_depth = 10;
> + VVCDSPContext c;
> + LOCAL_ALIGNED_32(uint16_t, src0, [MAX_CTU_SIZE * MAX_CTU_SIZE * 4]);
> + LOCAL_ALIGNED_32(uint16_t, src1, [MAX_CTU_SIZE * MAX_CTU_SIZE * 4]);
> + declare_func(int, const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
Not related to this patch, but dsp.h should mention alignment
requirements for all the parameters in dsp functions.
> +
> + ff_vvc_dsp_init(&c, bit_depth);
> + memset(src0, 0, MAX_CTU_SIZE * MAX_CTU_SIZE * 4);
> + memset(src1, 0, MAX_CTU_SIZE * MAX_CTU_SIZE * 4);
MAX_CTU_SIZE * MAX_CTU_SIZE * 4 * sizeof(uint16_t)
> +
> + randomize_pixels(src0, src1, MAX_CTU_SIZE * MAX_CTU_SIZE * 2);
Seeing randomize_buffers() is written for uint8_t buffers, it should be
updated for this, like so:
#define randomize_buffers(buf0, buf1, size, mask) \
do { \
int k; \
for (k = 0; k < size; k += 4 / sizeof(*buf0)) { \
uint32_t r = rnd() & mask; \
AV_WN32A(buf0 + k, r); \
AV_WN32A(buf1 + k, r); \
} \
} while (0)
And the argument changed to "MAX_CTU_SIZE * MAX_CTU_SIZE * 4". Otherwise
the loop will write 4 bytes and leave the next 4 untouched.
> + for (int h = 8; h <= MAX_CTU_SIZE; h *= 2) {
There's an extra whitespace of indentation here.
> + for (int w = 8; w <= MAX_CTU_SIZE; w *= 2) {
> + for(int offy = 0; offy <= 4; offy++) {
> + for(int offx = 0; offx <= 4; offx++) {
> + if(check_func(c.inter.sad, "vvc_sad_%dx%d", w, h)) {
"sad_%dx%d"
> + int result0;
> + int result1;
> +
> + result0 = call_ref(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
> + result1 = call_new(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
> +
> + if (result1 != result0)
> + fail();
> + if(w == h && offx == 0 && offy == 0)
> + bench_new(src0 + PIXEL_STRIDE * 2 + 2, src1 + PIXEL_STRIDE * 2 + 2, offx, offy, w, h);
> + }
> + }
> + }
> + }
> + }
> +
> + report("check_vvc_sad");
report("sad");
> +}
> +
> void checkasm_check_vvc_mc(void)
> {
> + check_vvc_sad();
> check_put_vvc_luma();
> check_put_vvc_luma_uni();
> check_put_vvc_chroma();
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-22 0:00 [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Stone Chen
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
@ 2024-05-22 1:01 ` Ronald S. Bultje
2024-05-22 23:38 ` James Almer
2024-05-22 5:02 ` Andreas Rheinhardt
2 siblings, 1 reply; 11+ messages in thread
From: Ronald S. Bultje @ 2024-05-22 1:01 UTC (permalink / raw)
To: FFmpeg development discussions and patches; +Cc: Stone Chen
Hi,
On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com> wrote:
> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD
> functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128.
> To reduce complexity, SAD is only calculated on even rows. This is
> calculated for all video bitdepths, but the values passed to the function
> are always 16bit (even if the original video bitdepth is 8). The AVX2
> implementation uses min/max/sub.
>
> Additionally this changes parameters dx and dy from int to intptr_t. This
> allows dx & dy to be used as pointer offsets without needing to use movsxd.
>
> Benchmarks ( AMD 7940HS )
> Before:
> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
> NovosobornayaSquare_1920x1080.bin | 197.3 |
> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
>
> After:
> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
> NovosobornayaSquare_1920x1080.bin | 204.0|
> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
> ---
> libavcodec/vvc/dsp.c | 2 +-
> libavcodec/vvc/dsp.h | 2 +-
> libavcodec/x86/vvc/Makefile | 3 +-
> libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
> 5 files changed, 140 insertions(+), 3 deletions(-)
> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
>
LGTM.
Ronald
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-22 1:01 ` [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Ronald S. Bultje
@ 2024-05-22 23:38 ` James Almer
2024-05-23 13:18 ` Nuo Mi
0 siblings, 1 reply; 11+ messages in thread
From: James Almer @ 2024-05-22 23:38 UTC (permalink / raw)
To: ffmpeg-devel
On 5/21/2024 10:01 PM, Ronald S. Bultje wrote:
> Hi,
>
> On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com> wrote:
>
>> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD
>> functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128.
>> To reduce complexity, SAD is only calculated on even rows. This is
>> calculated for all video bitdepths, but the values passed to the function
>> are always 16bit (even if the original video bitdepth is 8). The AVX2
>> implementation uses min/max/sub.
>>
>> Additionally this changes parameters dx and dy from int to intptr_t. This
>> allows dx & dy to be used as pointer offsets without needing to use movsxd.
>>
>> Benchmarks ( AMD 7940HS )
>> Before:
>> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
>> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
>> NovosobornayaSquare_1920x1080.bin | 197.3 |
>> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
>>
>> After:
>> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
>> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
>> NovosobornayaSquare_1920x1080.bin | 204.0|
>> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
>> ---
>> libavcodec/vvc/dsp.c | 2 +-
>> libavcodec/vvc/dsp.h | 2 +-
>> libavcodec/x86/vvc/Makefile | 3 +-
>> libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
>> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
>> 5 files changed, 140 insertions(+), 3 deletions(-)
>> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
>>
>
> LGTM.
>
> Ronald
Implemented my changes and applied.
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-22 23:38 ` James Almer
@ 2024-05-23 13:18 ` Nuo Mi
2024-05-23 13:23 ` Stone Chen
0 siblings, 1 reply; 11+ messages in thread
From: Nuo Mi @ 2024-05-23 13:18 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Thu, May 23, 2024 at 7:38 AM James Almer <jamrial@gmail.com> wrote:
> On 5/21/2024 10:01 PM, Ronald S. Bultje wrote:
> > Hi,
> >
> > On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com>
> wrote:
> >
> >> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD
> >> functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h >
> 128.
> >> To reduce complexity, SAD is only calculated on even rows. This is
> >> calculated for all video bitdepths, but the values passed to the
> function
> >> are always 16bit (even if the original video bitdepth is 8). The AVX2
> >> implementation uses min/max/sub.
> >>
> >> Additionally this changes parameters dx and dy from int to intptr_t.
> This
> >> allows dx & dy to be used as pointer offsets without needing to use
> movsxd.
> >>
> >> Benchmarks ( AMD 7940HS )
> >> Before:
> >> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
> >> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
> >> NovosobornayaSquare_1920x1080.bin | 197.3 |
> >> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
> >>
> >> After:
> >> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
> >> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
> >> NovosobornayaSquare_1920x1080.bin | 204.0|
> >> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
> >> ---
> >> libavcodec/vvc/dsp.c | 2 +-
> >> libavcodec/vvc/dsp.h | 2 +-
> >> libavcodec/x86/vvc/Makefile | 3 +-
> >> libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
> >> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
> >> 5 files changed, 140 insertions(+), 3 deletions(-)
> >> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
> >>
> >
> > LGTM.
> >
> > Ronald
>
> Implemented my changes and applied.
>
Thank you, Ronald, Andreas, and James.
Hi Stone,
Congratulations on surviving your first crossfire!
_______________________________________________
> 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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-23 13:18 ` Nuo Mi
@ 2024-05-23 13:23 ` Stone Chen
0 siblings, 0 replies; 11+ messages in thread
From: Stone Chen @ 2024-05-23 13:23 UTC (permalink / raw)
To: FFmpeg development discussions and patches
On Thu, May 23, 2024 at 9:18 AM Nuo Mi <nuomi2021@gmail.com> wrote:
> On Thu, May 23, 2024 at 7:38 AM James Almer <jamrial@gmail.com> wrote:
>
> > On 5/21/2024 10:01 PM, Ronald S. Bultje wrote:
> > > Hi,
> > >
> > > On Tue, May 21, 2024 at 8:01 PM Stone Chen <chen.stonechen@gmail.com>
> > wrote:
> > >
> > >> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD
> > >> functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h >
> > 128.
> > >> To reduce complexity, SAD is only calculated on even rows. This is
> > >> calculated for all video bitdepths, but the values passed to the
> > function
> > >> are always 16bit (even if the original video bitdepth is 8). The AVX2
> > >> implementation uses min/max/sub.
> > >>
> > >> Additionally this changes parameters dx and dy from int to intptr_t.
> > This
> > >> allows dx & dy to be used as pointer offsets without needing to use
> > movsxd.
> > >>
> > >> Benchmarks ( AMD 7940HS )
> > >> Before:
> > >> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
> > >> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
> > >> NovosobornayaSquare_1920x1080.bin | 197.3 |
> > >> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
> > >>
> > >> After:
> > >> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
> > >> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
> > >> NovosobornayaSquare_1920x1080.bin | 204.0|
> > >> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
> > >> ---
> > >> libavcodec/vvc/dsp.c | 2 +-
> > >> libavcodec/vvc/dsp.h | 2 +-
> > >> libavcodec/x86/vvc/Makefile | 3 +-
> > >> libavcodec/x86/vvc/vvc_sad.asm | 130
> +++++++++++++++++++++++++++++++
> > >> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
> > >> 5 files changed, 140 insertions(+), 3 deletions(-)
> > >> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
> > >>
> > >
> > > LGTM.
> > >
> > > Ronald
> >
> > Implemented my changes and applied.
> >
>
Hi all,
> Thank you, Ronald, Andreas, and James.
>
> Hi Stone,
> Congratulations on surviving your first crossfire!
>
Yes thank you Ronald, Andreas and James for the feedback! Also Nuo Mi and
Jian Hua as well.
-Stone
>
> _______________________________________________
> > 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".
>
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-22 0:00 [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Stone Chen
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
2024-05-22 1:01 ` [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Ronald S. Bultje
@ 2024-05-22 5:02 ` Andreas Rheinhardt
2024-05-22 22:54 ` James Almer
2 siblings, 1 reply; 11+ messages in thread
From: Andreas Rheinhardt @ 2024-05-22 5:02 UTC (permalink / raw)
To: ffmpeg-devel
Stone Chen:
> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128. To reduce complexity, SAD is only calculated on even rows. This is calculated for all video bitdepths, but the values passed to the function are always 16bit (even if the original video bitdepth is 8). The AVX2 implementation uses min/max/sub.
>
> Additionally this changes parameters dx and dy from int to intptr_t. This allows dx & dy to be used as pointer offsets without needing to use movsxd.
>
> Benchmarks ( AMD 7940HS )
> Before:
> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
> NovosobornayaSquare_1920x1080.bin | 197.3 |
> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
>
> After:
> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
> NovosobornayaSquare_1920x1080.bin | 204.0|
> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
> ---
> libavcodec/vvc/dsp.c | 2 +-
> libavcodec/vvc/dsp.h | 2 +-
> libavcodec/x86/vvc/Makefile | 3 +-
> libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
> 5 files changed, 140 insertions(+), 3 deletions(-)
> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
>
> diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c
> index 0e68971b2c..aa6c916760 100644
> --- a/libavcodec/x86/vvc/vvcdsp_init.c
> +++ b/libavcodec/x86/vvc/vvcdsp_init.c
> @@ -311,6 +311,9 @@ ALF_FUNCS(16, 12, avx2)
> c->alf.filter[CHROMA] = ff_vvc_alf_filter_chroma_##bd##_avx2; \
> c->alf.classify = ff_vvc_alf_classify_##bd##_avx2; \
> } while (0)
> +
> +int ff_vvc_sad_avx2(const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
> +#define SAD_INIT() c->inter.sad = ff_vvc_sad_avx2
You are adding an AVX2 function to an ARCH_X86_64 #if block. I expect
this to lead to linking failures if AVX2 is disabled.
> #endif
>
> void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
> @@ -327,6 +330,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
> ALF_INIT(8);
> AVG_INIT(8, avx2);
> MC_LINKS_AVX2(8);
> + SAD_INIT();
> }
> break;
> case 10:
> @@ -338,6 +342,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
> AVG_INIT(10, avx2);
> MC_LINKS_AVX2(10);
> MC_LINKS_16BPC_AVX2(10);
> + SAD_INIT();
> }
> break;
> case 12:
> @@ -349,6 +354,7 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
> AVG_INIT(12, avx2);
> MC_LINKS_AVX2(12);
> MC_LINKS_16BPC_AVX2(12);
> + SAD_INIT();
> }
> break;
> default:
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC
2024-05-22 5:02 ` Andreas Rheinhardt
@ 2024-05-22 22:54 ` James Almer
0 siblings, 0 replies; 11+ messages in thread
From: James Almer @ 2024-05-22 22:54 UTC (permalink / raw)
To: ffmpeg-devel
On 5/22/2024 2:02 AM, Andreas Rheinhardt wrote:
> Stone Chen:
>> Implements AVX2 DMVR (decoder-side motion vector refinement) SAD functions. DMVR SAD is only calculated if w >= 8, h >= 8, and w * h > 128. To reduce complexity, SAD is only calculated on even rows. This is calculated for all video bitdepths, but the values passed to the function are always 16bit (even if the original video bitdepth is 8). The AVX2 implementation uses min/max/sub.
>>
>> Additionally this changes parameters dx and dy from int to intptr_t. This allows dx & dy to be used as pointer offsets without needing to use movsxd.
>>
>> Benchmarks ( AMD 7940HS )
>> Before:
>> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 106.0 |
>> Chimera_8bit_1080P_1000_frames.vvc | 204.3 |
>> NovosobornayaSquare_1920x1080.bin | 197.3 |
>> RitualDance_1920x1080_60_10_420_37_RA.266 | 174.0 |
>>
>> After:
>> BQTerrace_1920x1080_60_10_420_22_RA.vvc | 109.3 |
>> Chimera_8bit_1080P_1000_frames.vvc | 216.0 |
>> NovosobornayaSquare_1920x1080.bin | 204.0|
>> RitualDance_1920x1080_60_10_420_37_RA.266 | 181.7 |
>> ---
>> libavcodec/vvc/dsp.c | 2 +-
>> libavcodec/vvc/dsp.h | 2 +-
>> libavcodec/x86/vvc/Makefile | 3 +-
>> libavcodec/x86/vvc/vvc_sad.asm | 130 +++++++++++++++++++++++++++++++
>> libavcodec/x86/vvc/vvcdsp_init.c | 6 ++
>> 5 files changed, 140 insertions(+), 3 deletions(-)
>> create mode 100644 libavcodec/x86/vvc/vvc_sad.asm
>>
>> diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c
>> index 0e68971b2c..aa6c916760 100644
>> --- a/libavcodec/x86/vvc/vvcdsp_init.c
>> +++ b/libavcodec/x86/vvc/vvcdsp_init.c
>> @@ -311,6 +311,9 @@ ALF_FUNCS(16, 12, avx2)
>> c->alf.filter[CHROMA] = ff_vvc_alf_filter_chroma_##bd##_avx2; \
>> c->alf.classify = ff_vvc_alf_classify_##bd##_avx2; \
>> } while (0)
>> +
>> +int ff_vvc_sad_avx2(const int16_t *src0, const int16_t *src1, intptr_t dx, intptr_t dy, int block_w, int block_h);
>> +#define SAD_INIT() c->inter.sad = ff_vvc_sad_avx2
>
> You are adding an AVX2 function to an ARCH_X86_64 #if block. I expect
> this to lead to linking failures if AVX2 is disabled.
It's a prototype, so no linking failures. And SAD_INIT() is called on a
block that both needs ARCH_X86_64 and EXTERNAL_AVX2_FAST to be true.
_______________________________________________
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".
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-05-23 13:24 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22 0:00 [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Stone Chen
2024-05-22 0:00 ` [FFmpeg-devel] [PATCH v5 2/2][GSoC 2024] tests/checkasm: Add check_vvc_sad to vvc_mc.c Stone Chen
2024-05-22 1:12 ` Ronald S. Bultje
2024-05-22 23:37 ` James Almer
2024-05-22 2:03 ` James Almer
2024-05-22 1:01 ` [FFmpeg-devel] [PATCH v5 1/2][GSoC 2024] libavcodec/x86/vvc: Add AVX2 DMVR SAD functions for VVC Ronald S. Bultje
2024-05-22 23:38 ` James Almer
2024-05-23 13:18 ` Nuo Mi
2024-05-23 13:23 ` Stone Chen
2024-05-22 5:02 ` Andreas Rheinhardt
2024-05-22 22:54 ` James Almer
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