[FFmpeg-devel] [PATCH] Split channel params from context in mlpdec.c

Michael Niedermayer michaelni
Wed Aug 13 02:42:46 CEST 2008


On Tue, Aug 12, 2008 at 09:21:34PM -0300, Ramiro Polla wrote:
> Hello,
> 
> Attached patch splits channel params from MLP context into their own struct.
> 
> I left quant_step_size where it is, waiting on the other thread about it...
> 
> Ramiro Polla

> Index: libavcodec/mlpdec.c
> ===================================================================
> --- libavcodec/mlpdec.c	(revision 14717)
> +++ libavcodec/mlpdec.c	(working copy)
> @@ -153,6 +153,20 @@
>      int32_t     state[MAX_FILTER_ORDER];
>  } FilterParams;
>  
> +/** sample data coding information */
> +typedef struct {
> +    FilterParams filter_params[NUM_FILTERS];
> +
> +    //! Offset to apply to residual values.
> +    int16_t     huff_offset;
> +    //! sign/rounding-corrected version of huff_offset
> +    int32_t     sign_huff_offset;
> +    //! Which VLC codebook to use to read residuals.
> +    uint8_t     codebook;
> +    //! Size of residual suffix not encoded using VLC.
> +    uint8_t     huff_lsbs;
> +} ChannelParams;

I think the doxy would be more readable to the right of vars instead of
interleaved. (this is of course a seperate issue as the code is just
moved around in this patch)

and patch ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080813/9d116884/attachment.pgp>



More information about the ffmpeg-devel mailing list