[FFmpeg-devel] [PATCH] MLP Encoder

Ramiro Polla ramiro.polla
Thu Aug 21 21:18:37 CEST 2008


On Thu, Aug 21, 2008 at 3:47 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Aug 21, 2008 at 06:40:59PM +0100, Ian Caulfield wrote:
>> 2008/8/21 Michael Niedermayer <michaelni at gmx.at>:
>> > * Determine the blocksize
>> >  It should be easy to try various (2^x based block sizes) for each
>> >  major header interval by simple brute force at higher compression_level
>> >  btw, why is it 40 ATM ?
>>
>> The block size is fixed by MLP - 40 for 44.1kHz/48kHz, 80 for
>> 88.2kHz/96kHz or 160 for 176.4kHz/192kHz
>
> then explain me:
> s->blocksize = get_bits(gbp, 9);
> ?

It can be smaller. For example there is an 8-sample sub-block (8 ==
max number of taps in filter) for every restart frame that encodes the
samples with no filtering active. This way decoding can be recovered
losslessly at every restart frame.




More information about the ffmpeg-devel mailing list