[FFmpeg-devel] [PATCH 08/10] sbcenc: add MMX optimizations

James Almer jamrial at gmail.com
Thu Dec 21 03:22:54 EET 2017


On 12/20/2017 4:58 PM, Aurelien Jacobs wrote:
> +;*******************************************************************
> +;void ff_sbc_calc_scalefactors(int32_t sb_sample_f[16][2][8],
> +;                              uint32_t scale_factor[2][8],
> +;                              int blocks, int channels, int subbands)
> +;*******************************************************************
> +INIT_MMX mmx
> +cglobal sbc_calc_scalefactors, 5, 7, 3, sb_sample_f, scale_factor, blocks, channels, subbands, ptr, blk
> +    ; subbands = 4 * subbands * channels
> +    shl  subbandsq, 2

Again, shl  subbandsd, 2

The other two can stay as is, based on what Ronald said in another email.

> +    cmp  channelsq, 2
> +    jl   .loop_1
> +    shl  subbandsq, 1



More information about the ffmpeg-devel mailing list