[Tremor] MCPS for ov_read
Monty
xiphmont at xiph.org
Wed Sep 7 22:57:26 PDT 2005
On Tue, Sep 06, 2005 at 01:45:45PM +0530, Vinoth Kumar wrote:
> Hi Ravi,
>
> Refer to section 4.3.8 of the spec. It says the amount of data returned
> is
>
> window_blocksize(previous_window)/4 + window_blocksize(current_window)/4
>
> So the acceptable return values in your bitstream could be
>
> LONG - LONG 1024
> LONG - SHORT 576
> SHORT - LONG 576
> SHORT - SHORT 128.
>
> Hope this helps.
To clarify further:
> For stereo test file i used, Block Sizes supported
> were 256 and 2048, and after one call of ov_read it
> generated 4096 bytes, that means it generated 2048
> audio samples (16 bit samples).
A 'sample' in a 16 bit stereo stream is four bytes; 16 bits of left
and 16 of right. So it generated 1024 samples; 2048 bytes of left and
2048 bytes of right.
Monty
More information about the Tremor
mailing list