diff mbox series

[FFmpeg-devel,03/14] swscale/range_convert: indent after previous commit

Message ID 20240923124017.33659-4-ramiro.polla@gmail.com
State New
Headers show
Series swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Ramiro Polla Sept. 23, 2024, 12:40 p.m. UTC
---
 libswscale/loongarch/swscale_init_loongarch.c | 32 +++++++++----------
 libswscale/swscale.c                          |  8 ++---
 libswscale/x86/swscale.c                      | 12 +++----
 3 files changed, 26 insertions(+), 26 deletions(-)
diff mbox series

Patch

diff --git a/libswscale/loongarch/swscale_init_loongarch.c b/libswscale/loongarch/swscale_init_loongarch.c
index 9f12f5e166..de75ffc6dc 100644
--- a/libswscale/loongarch/swscale_init_loongarch.c
+++ b/libswscale/loongarch/swscale_init_loongarch.c
@@ -29,27 +29,27 @@  av_cold void ff_sws_init_range_convert_loongarch(SwsContext *c)
     int cpu_flags = av_get_cpu_flags();
 
     if (have_lsx(cpu_flags)) {
-            if (c->dstBpc <= 14) {
-                if (c->srcRange) {
-                    c->lumConvertRange = lumRangeFromJpeg_lsx;
-                    c->chrConvertRange = chrRangeFromJpeg_lsx;
-                } else {
-                    c->lumConvertRange = lumRangeToJpeg_lsx;
-                    c->chrConvertRange = chrRangeToJpeg_lsx;
-                }
+        if (c->dstBpc <= 14) {
+            if (c->srcRange) {
+                c->lumConvertRange = lumRangeFromJpeg_lsx;
+                c->chrConvertRange = chrRangeFromJpeg_lsx;
+            } else {
+                c->lumConvertRange = lumRangeToJpeg_lsx;
+                c->chrConvertRange = chrRangeToJpeg_lsx;
             }
+        }
     }
 #if HAVE_LASX
     if (have_lasx(cpu_flags)) {
-            if (c->dstBpc <= 14) {
-                if (c->srcRange) {
-                    c->lumConvertRange = lumRangeFromJpeg_lasx;
-                    c->chrConvertRange = chrRangeFromJpeg_lasx;
-                } else {
-                    c->lumConvertRange = lumRangeToJpeg_lasx;
-                    c->chrConvertRange = chrRangeToJpeg_lasx;
-                }
+        if (c->dstBpc <= 14) {
+            if (c->srcRange) {
+                c->lumConvertRange = lumRangeFromJpeg_lasx;
+                c->chrConvertRange = chrRangeFromJpeg_lasx;
+            } else {
+                c->lumConvertRange = lumRangeToJpeg_lasx;
+                c->chrConvertRange = chrRangeToJpeg_lasx;
             }
+        }
     }
 #endif // #if HAVE_LASX
 }
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index df9d3e5ae3..18e213b21b 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -555,13 +555,13 @@  av_cold void ff_sws_init_range_convert(SwsContext *c)
         }
 
 #if ARCH_AARCH64
-    ff_sws_init_range_convert_aarch64(c);
+        ff_sws_init_range_convert_aarch64(c);
 #elif ARCH_LOONGARCH64
-    ff_sws_init_range_convert_loongarch(c);
+        ff_sws_init_range_convert_loongarch(c);
 #elif ARCH_RISCV
-    ff_sws_init_range_convert_riscv(c);
+        ff_sws_init_range_convert_riscv(c);
 #elif ARCH_X86
-    ff_sws_init_range_convert_x86(c);
+        ff_sws_init_range_convert_x86(c);
 #endif
     }
 }
diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c
index 7ecb1f6542..a836de734c 100644
--- a/libswscale/x86/swscale.c
+++ b/libswscale/x86/swscale.c
@@ -474,12 +474,12 @@  RANGE_CONVERT_FUNCS_DECL(avx2);
 
 av_cold void ff_sws_init_range_convert_x86(SwsContext *c)
 {
-        int cpu_flags = av_get_cpu_flags();
-        if (EXTERNAL_AVX2_FAST(cpu_flags)) {
-            RANGE_CONVERT_FUNCS(avx2);
-        } else if (EXTERNAL_SSE2(cpu_flags)) {
-            RANGE_CONVERT_FUNCS(sse2);
-        }
+    int cpu_flags = av_get_cpu_flags();
+    if (EXTERNAL_AVX2_FAST(cpu_flags)) {
+        RANGE_CONVERT_FUNCS(avx2);
+    } else if (EXTERNAL_SSE2(cpu_flags)) {
+        RANGE_CONVERT_FUNCS(sse2);
+    }
 }
 
 av_cold void ff_sws_init_swscale_x86(SwsContext *c)