[FFmpeg-soc] [soc]: r323 - in rv40: rv40.c rv40data.h rv40vlc2.h

Kostya kostya.shishkov at gmail.com
Fri Jul 6 12:12:42 CEST 2007


On Fri, Jul 06, 2007 at 12:17:54PM +0200, Michael Niedermayer wrote:
> On Fri, Jul 06, 2007 at 08:37:06AM +0200, kostya wrote:
> > Author: kostya
> > Date: Fri Jul  6 08:37:06 2007
> > New Revision: 323
> > 
> > Log:
> > Add more decoding functions (and tables needed by them)
> > 
> [...]
> > @@ -354,6 +375,15 @@ static inline void rv40_decode_block(DCT
> >   * @{
> >   */
> >  
> > +static inline int decode210(GetBitContext *gb){
> > +    int n;
> > +    n = get_bits1(gb);
> > +    if (n == 1)
> > +        return 0;
> > +    else
> > +        return 2 - get_bits1(gb);
> > +}
> 
> 
> if(get_bits1(gb)) 
>     return 0;
> else
>     return 2 - get_bits1(gb);

Will change here and in vc1.c 
 
> [...]
> > +#define MODE2_PATTERNS_NUM 20
> > +/**
> > + * Intra types table
> > + *
> > + * These values are actually base 10 coded 3-tuples
> > + * used for detecting standard block configurations
> > + */
> > +static const uint16_t rv40_aic_table_index[MODE2_PATTERNS_NUM] = {
> > +   0, 100, 200,
> > +  11, 111, 211, 511, 611,
> > +  22, 122, 222, 722,
> > + 272, 227,
> > + 822, 282, 228,
> > + 112, 116, 221
> > +};
> 
> coding them base 8 or 16 seems like it would be a much better idea ...

It's base 10 coded so each digit in decimal representation has its own
meaning. Also it is grouped that way to join similar groups. 
 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> 
> When you are offended at any man's fault, turn to yourself and study your
> own failings. Then you will forget your anger. -- Epictetus



More information about the FFmpeg-soc mailing list