[FFmpeg-devel] Indeo3 replacement, take 3

Michael Niedermayer michaelni
Sat Nov 7 04:23:04 CET 2009


On Thu, Nov 05, 2009 at 10:50:46PM +0100, Maxim wrote:
[...]
> >
> > [...]
> >   
> >> /**
> >>  *  Requant a 8 pixel line by duplicating each even pixel as follows:
> >>  *  ABCDEFGH -> AACCEEGG
> >>  */
> >> static inline uint64_t requant(uint64_t a) {
> >> #if HAVE_BIGENDIAN
> >>     a &= 0xFF00FF00FF00FF00;
> >>     a |= a >> 8;
> >> #else
> >>     a &= 0x00FF00FF00FF00FF;
> >>     a |= a << 8;
> >> #endif
> >>     return a;
> >> }
> >>     
> >
> > i would not call this operation re-quantization
> >   
> 
> Ok, what is it then?

duplicating every second pixel


[...]
> >
> > [...]
> >   
> >>         /* convert four pixels at once using softSIMD */
> >>         for (x = 0; x < plane->width >> 2; x++)
> >>             *dst32++ = (*src32++ & 0x7F7F7F7F) << 1;
> >>     
> >
> > is the & needed, arent these bits 0 anyway?
> >   
> 
> See the question above with the "ref_block"...

iam not sure if i understand you
but for damaged files it really doesnt matter what value
the least significant bits have
but i may be misunderstaning you ...

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

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- 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/20091107/1d09ce2b/attachment.pgp>



More information about the ffmpeg-devel mailing list