[FFmpeg-devel] [PATCH 1/5] libavutil: Add fixed_dsp

Nedeljko Babic Nedeljko.Babic at imgtec.com
Tue Jan 21 16:27:29 CET 2014


>> diff --git a/libavutil/fixed_dsp.h b/libavutil/fixed_dsp.h
>> new file mode 100644
>> index 0000000..a37d20c
>> --- /dev/null
>> +++ b/libavutil/fixed_dsp.h
>> @@ -0,0 +1,123 @@
>
>> +
>> +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);
>> +
>> +    /**
>> +     * 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);
>
>These 2 function pointers documentation are the same. Is that intended?

They are similar, but not the same. The destination vectors (first parameter) are different.

-Nedeljko


More information about the ffmpeg-devel mailing list