swscale/range_convert: indent after previous commit

master
Ramiro Polla 3 months ago
parent f7ee0195df
commit 8b30daedf7
  1. 32
      libswscale/loongarch/swscale_init_loongarch.c
  2. 8
      libswscale/swscale.c
  3. 12
      libswscale/x86/swscale.c

@ -29,27 +29,27 @@ av_cold void ff_sws_init_range_convert_loongarch(SwsInternal *c)
int cpu_flags = av_get_cpu_flags(); int cpu_flags = av_get_cpu_flags();
if (have_lsx(cpu_flags)) { if (have_lsx(cpu_flags)) {
if (c->dstBpc <= 14) { if (c->dstBpc <= 14) {
if (c->srcRange) { if (c->srcRange) {
c->lumConvertRange = lumRangeFromJpeg_lsx; c->lumConvertRange = lumRangeFromJpeg_lsx;
c->chrConvertRange = chrRangeFromJpeg_lsx; c->chrConvertRange = chrRangeFromJpeg_lsx;
} else { } else {
c->lumConvertRange = lumRangeToJpeg_lsx; c->lumConvertRange = lumRangeToJpeg_lsx;
c->chrConvertRange = chrRangeToJpeg_lsx; c->chrConvertRange = chrRangeToJpeg_lsx;
}
} }
}
} }
#if HAVE_LASX #if HAVE_LASX
if (have_lasx(cpu_flags)) { if (have_lasx(cpu_flags)) {
if (c->dstBpc <= 14) { if (c->dstBpc <= 14) {
if (c->srcRange) { if (c->srcRange) {
c->lumConvertRange = lumRangeFromJpeg_lasx; c->lumConvertRange = lumRangeFromJpeg_lasx;
c->chrConvertRange = chrRangeFromJpeg_lasx; c->chrConvertRange = chrRangeFromJpeg_lasx;
} else { } else {
c->lumConvertRange = lumRangeToJpeg_lasx; c->lumConvertRange = lumRangeToJpeg_lasx;
c->chrConvertRange = chrRangeToJpeg_lasx; c->chrConvertRange = chrRangeToJpeg_lasx;
}
} }
}
} }
#endif // #if HAVE_LASX #endif // #if HAVE_LASX
} }

@ -564,13 +564,13 @@ av_cold void ff_sws_init_range_convert(SwsInternal *c)
} }
#if ARCH_AARCH64 #if ARCH_AARCH64
ff_sws_init_range_convert_aarch64(c); ff_sws_init_range_convert_aarch64(c);
#elif ARCH_LOONGARCH64 #elif ARCH_LOONGARCH64
ff_sws_init_range_convert_loongarch(c); ff_sws_init_range_convert_loongarch(c);
#elif ARCH_RISCV #elif ARCH_RISCV
ff_sws_init_range_convert_riscv(c); ff_sws_init_range_convert_riscv(c);
#elif ARCH_X86 #elif ARCH_X86
ff_sws_init_range_convert_x86(c); ff_sws_init_range_convert_x86(c);
#endif #endif
} }
} }

@ -474,12 +474,12 @@ RANGE_CONVERT_FUNCS_DECL(avx2);
av_cold void ff_sws_init_range_convert_x86(SwsInternal *c) av_cold void ff_sws_init_range_convert_x86(SwsInternal *c)
{ {
int cpu_flags = av_get_cpu_flags(); int cpu_flags = av_get_cpu_flags();
if (EXTERNAL_AVX2_FAST(cpu_flags)) { if (EXTERNAL_AVX2_FAST(cpu_flags)) {
RANGE_CONVERT_FUNCS(avx2); RANGE_CONVERT_FUNCS(avx2);
} else if (EXTERNAL_SSE2(cpu_flags)) { } else if (EXTERNAL_SSE2(cpu_flags)) {
RANGE_CONVERT_FUNCS(sse2); RANGE_CONVERT_FUNCS(sse2);
} }
} }
av_cold void ff_sws_init_swscale_x86(SwsInternal *c) av_cold void ff_sws_init_swscale_x86(SwsInternal *c)

Loading…
Cancel
Save