[FFmpeg-devel] [PATCH 03/14] swscale/range_convert: indent after previous commit
Ramiro Polla
ramiro.polla at gmail.com
Mon Sep 23 15:40:06 EEST 2024
---
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 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)
--
2.30.2
More information about the ffmpeg-devel
mailing list