[FFmpeg-devel] [PATCH 1/5] libavutil: Add fixed_dsp
Nedeljko Babic
Nedeljko.Babic at imgtec.com
Tue Mar 18 11:37:13 CET 2014
>> +typedef struct AVFixedDSPContext {
>> + /**
>> + * Overlap/add with window function.
>> + * Used primarily by MDCT-based audio codecs.
>> + * Source and destination vectors must overlap exactly or not at all.
>> + *
>> + * @param dst result vector
>> + * constraints: 16-byte aligned
>> + * @param src0 first source vector
>> + * constraints: 16-byte aligned
>> + * @param src1 second source vector
>> + * constraints: 16-byte aligned
>> + * @param win half-window vector
>> + * constraints: 16-byte aligned
>> + * @param len length of vector
>> + * constraints: multiple of 4
>> + * @param bits scaling parameter
>> + *
>> + */
>> + void (*vector_fmul_window_fixed_scaled)(int16_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len, uint8_t bits);
>> +
>
>Nit: The name is already long enough that you could remove the "fixed". It's after
>all pretty much implied by being inside AVFixedDSPContext.
>
>> + /**
>> + * Overlap/add with window function.
>> + * Used primarily by MDCT-based audio codecs.
>> + * Source and destination vectors must overlap exactly or not at all.
>> + *
>> + * @param dst result vector
>> + * constraints: 32-byte aligned
>> + * @param src0 first source vector
>> + * constraints: 16-byte aligned
>> + * @param src1 second source vector
>> + * constraints: 16-byte aligned
>> + * @param win half-window vector
>> + * constraints: 16-byte aligned
>> + * @param len length of vector
>> + * constraints: multiple of 4
>> + */
>> + void (*vector_fmul_window_fixed)(int32_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len);
>> +
>
>Ditto.
I think that even longer names can be found in FFmpeg, but I agree that being inside
AVFixedDSPContext implies "fixed", so it will be removed.
-Nedeljko
More information about the ffmpeg-devel
mailing list