diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2018-02-17 20:49:32 +0100 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2018-02-24 21:44:16 +0100 |
commit | 6c6c9d14a841543166189dec79e33471c44dc863 (patch) | |
tree | 89897856287d97f8aad1a5063ce26171c753c7b7 /libavfilter/x86 | |
parent | 7590d58b61462ef1f802fc75a092662758d4039a (diff) | |
download | ffmpeg-6c6c9d14a841543166189dec79e33471c44dc863.tar.gz |
avfilter/x86/vf_blend : indent
Diffstat (limited to 'libavfilter/x86')
-rw-r--r-- | libavfilter/x86/vf_blend_init.c | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/libavfilter/x86/vf_blend_init.c b/libavfilter/x86/vf_blend_init.c index b88ea7a7d2..c9c7a52ef9 100644 --- a/libavfilter/x86/vf_blend_init.c +++ b/libavfilter/x86/vf_blend_init.c @@ -74,56 +74,56 @@ av_cold void ff_blend_init_x86(FilterParams *param, int is_16bit) int cpu_flags = av_get_cpu_flags(); if (!is_16bit) { - if (EXTERNAL_SSE2(cpu_flags) && param->opacity == 1) { - switch (param->mode) { - case BLEND_ADDITION: param->blend = ff_blend_addition_sse2; break; - case BLEND_GRAINMERGE: param->blend = ff_blend_grainmerge_sse2; break; - case BLEND_AND: param->blend = ff_blend_and_sse2; break; - case BLEND_AVERAGE: param->blend = ff_blend_average_sse2; break; - case BLEND_DARKEN: param->blend = ff_blend_darken_sse2; break; - case BLEND_GRAINEXTRACT: param->blend = ff_blend_grainextract_sse2; break; - case BLEND_DIVIDE: param->blend = ff_blend_divide_sse2; break; - case BLEND_HARDMIX: param->blend = ff_blend_hardmix_sse2; break; - case BLEND_LIGHTEN: param->blend = ff_blend_lighten_sse2; break; - case BLEND_MULTIPLY: param->blend = ff_blend_multiply_sse2; break; - case BLEND_OR: param->blend = ff_blend_or_sse2; break; - case BLEND_PHOENIX: param->blend = ff_blend_phoenix_sse2; break; - case BLEND_SCREEN: param->blend = ff_blend_screen_sse2; break; - case BLEND_SUBTRACT: param->blend = ff_blend_subtract_sse2; break; - case BLEND_XOR: param->blend = ff_blend_xor_sse2; break; - case BLEND_DIFFERENCE: param->blend = ff_blend_difference_sse2; break; - case BLEND_EXTREMITY: param->blend = ff_blend_extremity_sse2; break; - case BLEND_NEGATION: param->blend = ff_blend_negation_sse2; break; + if (EXTERNAL_SSE2(cpu_flags) && param->opacity == 1) { + switch (param->mode) { + case BLEND_ADDITION: param->blend = ff_blend_addition_sse2; break; + case BLEND_GRAINMERGE: param->blend = ff_blend_grainmerge_sse2; break; + case BLEND_AND: param->blend = ff_blend_and_sse2; break; + case BLEND_AVERAGE: param->blend = ff_blend_average_sse2; break; + case BLEND_DARKEN: param->blend = ff_blend_darken_sse2; break; + case BLEND_GRAINEXTRACT: param->blend = ff_blend_grainextract_sse2; break; + case BLEND_DIVIDE: param->blend = ff_blend_divide_sse2; break; + case BLEND_HARDMIX: param->blend = ff_blend_hardmix_sse2; break; + case BLEND_LIGHTEN: param->blend = ff_blend_lighten_sse2; break; + case BLEND_MULTIPLY: param->blend = ff_blend_multiply_sse2; break; + case BLEND_OR: param->blend = ff_blend_or_sse2; break; + case BLEND_PHOENIX: param->blend = ff_blend_phoenix_sse2; break; + case BLEND_SCREEN: param->blend = ff_blend_screen_sse2; break; + case BLEND_SUBTRACT: param->blend = ff_blend_subtract_sse2; break; + case BLEND_XOR: param->blend = ff_blend_xor_sse2; break; + case BLEND_DIFFERENCE: param->blend = ff_blend_difference_sse2; break; + case BLEND_EXTREMITY: param->blend = ff_blend_extremity_sse2; break; + case BLEND_NEGATION: param->blend = ff_blend_negation_sse2; break; + } } - } - if (EXTERNAL_SSSE3(cpu_flags) && param->opacity == 1) { - switch (param->mode) { - case BLEND_DIFFERENCE: param->blend = ff_blend_difference_ssse3; break; - case BLEND_EXTREMITY: param->blend = ff_blend_extremity_ssse3; break; - case BLEND_NEGATION: param->blend = ff_blend_negation_ssse3; break; + if (EXTERNAL_SSSE3(cpu_flags) && param->opacity == 1) { + switch (param->mode) { + case BLEND_DIFFERENCE: param->blend = ff_blend_difference_ssse3; break; + case BLEND_EXTREMITY: param->blend = ff_blend_extremity_ssse3; break; + case BLEND_NEGATION: param->blend = ff_blend_negation_ssse3; break; + } } - } - if (EXTERNAL_AVX2_FAST(cpu_flags) && param->opacity == 1) { - switch (param->mode) { - case BLEND_ADDITION: param->blend = ff_blend_addition_avx2; break; - case BLEND_GRAINMERGE: param->blend = ff_blend_grainmerge_avx2; break; - case BLEND_AND: param->blend = ff_blend_and_avx2; break; - case BLEND_AVERAGE: param->blend = ff_blend_average_avx2; break; - case BLEND_DARKEN: param->blend = ff_blend_darken_avx2; break; - case BLEND_GRAINEXTRACT: param->blend = ff_blend_grainextract_avx2; break; - case BLEND_HARDMIX: param->blend = ff_blend_hardmix_avx2; break; - case BLEND_LIGHTEN: param->blend = ff_blend_lighten_avx2; break; - case BLEND_MULTIPLY: param->blend = ff_blend_multiply_avx2; break; - case BLEND_OR: param->blend = ff_blend_or_avx2; break; - case BLEND_PHOENIX: param->blend = ff_blend_phoenix_avx2; break; - case BLEND_SCREEN: param->blend = ff_blend_screen_avx2; break; - case BLEND_SUBTRACT: param->blend = ff_blend_subtract_avx2; break; - case BLEND_XOR: param->blend = ff_blend_xor_avx2; break; - case BLEND_DIFFERENCE: param->blend = ff_blend_difference_avx2; break; - case BLEND_EXTREMITY: param->blend = ff_blend_extremity_avx2; break; - case BLEND_NEGATION: param->blend = ff_blend_negation_avx2; break; + if (EXTERNAL_AVX2_FAST(cpu_flags) && param->opacity == 1) { + switch (param->mode) { + case BLEND_ADDITION: param->blend = ff_blend_addition_avx2; break; + case BLEND_GRAINMERGE: param->blend = ff_blend_grainmerge_avx2; break; + case BLEND_AND: param->blend = ff_blend_and_avx2; break; + case BLEND_AVERAGE: param->blend = ff_blend_average_avx2; break; + case BLEND_DARKEN: param->blend = ff_blend_darken_avx2; break; + case BLEND_GRAINEXTRACT: param->blend = ff_blend_grainextract_avx2; break; + case BLEND_HARDMIX: param->blend = ff_blend_hardmix_avx2; break; + case BLEND_LIGHTEN: param->blend = ff_blend_lighten_avx2; break; + case BLEND_MULTIPLY: param->blend = ff_blend_multiply_avx2; break; + case BLEND_OR: param->blend = ff_blend_or_avx2; break; + case BLEND_PHOENIX: param->blend = ff_blend_phoenix_avx2; break; + case BLEND_SCREEN: param->blend = ff_blend_screen_avx2; break; + case BLEND_SUBTRACT: param->blend = ff_blend_subtract_avx2; break; + case BLEND_XOR: param->blend = ff_blend_xor_avx2; break; + case BLEND_DIFFERENCE: param->blend = ff_blend_difference_avx2; break; + case BLEND_EXTREMITY: param->blend = ff_blend_extremity_avx2; break; + case BLEND_NEGATION: param->blend = ff_blend_negation_avx2; break; + } } } - } } |