[FFmpeg-devel] [PATCH] Add functions shared by AMR and SIPR
Vitor Sessak
vitor1001
Sun Oct 25 01:09:10 CEST 2009
Ronald S. Bultje wrote:
> Hi,
>
> On Sun, Oct 18, 2009 at 7:41 PM, Vitor Sessak <vitor1001 at gmail.com> wrote:
>> The SIPR decoder shares quite a few code with AMR. Most of those functions
>> are copied from the last AMR patch in -devel. An exception is
>> ff_acelp_interpolatef(), that was copied from a fixed-point version and is
>> used in AMR in the function interp_pitch_vector().
> [..]
>> +void ff_set_max_dist_lsf(float *lsf, float min_spacing, int size)
>> +{
>> + int i;
>> + float prev = 0.0;
>> + for (i = 0; i < size; i++)
>> + prev = lsf[i] = FFMAX(lsf[i], prev + min_spacing);
>> +}
>
> ff_set_min_dist_lsf().
Changed that and Diego's cosmetics in the new version. Michael, ping?
-Vitor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amr_and_sipr2.diff
Type: text/x-diff
Size: 5995 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091025/161223ab/attachment.diff>
More information about the ffmpeg-devel
mailing list