[FFmpeg-devel] [PATCH] Add AMR-NB decoder, next try

Diego Biurrun diego
Sun Jan 3 22:28:36 CET 2010


On Sun, Jan 03, 2010 at 07:29:39PM +0100, Vitor Sessak wrote:
> Diego Biurrun wrote:
>> On Sun, Jan 03, 2010 at 06:01:49PM +0100, Vitor Sessak wrote:
>>> Hi, the SoC AMR decoder is in a pretty nice shape and have already 
>>> gone  through a few review rounds, so I'll give my try in getting it 
>>> committed.
>>>
>>> --- libavcodec/amrnbdata.h	(revision 0)
>>> +++ libavcodec/amrnbdata.h	(revision 0)
>>> +/** Number of impulse response coefficients used for tilt factor */
>>> +#define AMR_TILT_RESPONSE   22
>>> +/** Tilt factor = 1st reflection coefficient * gamma_t */
>>> +#define AMR_TILT_GAMMA_T   0.8
>>> +/** Adaptive gain control factor used in post-filter */
>>> +#define AMR_AGC_ALPHA      0.9
>>
>> The bottom of a *huge* header file with tables does not seem like
>> a good place for these..
>
> They are there because the header is nicely separated in different  
> sections. A possible solution would be moving the defines to the C file,  
> but I'm undecided.

If they are only used in the C file, then they do not belong in the
header.

Diego



More information about the ffmpeg-devel mailing list