[FFmpeg-cvslog] swscale/range_convert: indent after previous commit

Ramiro Polla git at videolan.org
Sun Oct 27 14:25:08 EET 2024


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Sun Sep 22 12:49:18 2024 +0200| [8b30daedf7933346589e6283f0b58f33cd8bf52a] | committer: Ramiro Polla

swscale/range_convert: indent after previous commit

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b30daedf7933346589e6283f0b58f33cd8bf52a
---

 libswscale/loongarch/swscale_init_loongarch.c | 32 +++++++++++++--------------
 libswscale/swscale.c                          |  8 +++----
 libswscale/x86/swscale.c                      | 12 +++++-----
 3 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/libswscale/loongarch/swscale_init_loongarch.c b/libswscale/loongarch/swscale_init_loongarch.c
index fea198338e..f02e957998 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(SwsInternal *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 eeef16a57b..3402d3eb56 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -564,13 +564,13 @@ av_cold void ff_sws_init_range_convert(SwsInternal *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 3de1d71367..a61105b998 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(SwsInternal *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(SwsInternal *c)



More information about the ffmpeg-cvslog mailing list