[Ffmpeg-devel] [PATCH] nuppelvideo decoder
    Michael Niedermayer 
    michaelni
       
    Sat Jan 14 18:23:51 CET 2006
    
    
  
Hi
On Sat, Jan 14, 2006 at 06:04:36PM +0100, Jindrich Makovicka wrote:
[...]
> static const uint8_t rtjpeg_idct_perm[64] = {
>     0,
>     8, 1,
>     2, 9, 16,
>     24, 17, 10, 3,
>     4, 11, 18, 25, 32,
>     40, 33, 26, 19, 12, 5,
>     6, 13, 20, 27, 34, 41, 48,
>     56, 49, 42, 35, 28, 21, 14, 7,
>     15, 22, 29, 36, 43, 50, 57,
>     58, 51, 44, 37, 30, 23,
>     31, 38, 45, 52, 59,
>     60, 53, 46, 39,
>     47, 54, 61,
>     62, 55,
>     63
> };
this looks like a transposed ff_zigzag_direct aka
j= ff_zigzag_direct
rtjpeg_idct_perm[i] = ((j>>3) | (j<<3)) & 63;
> 
> typedef struct  __attribute__((packed)) rtframeheader {
>     char frametype;
>     char comptype;
>     char keyframe;
>     char filters;
>     int  timecode;
>     int  packetlength;
> } rtframeheader;
__attribute__((packed)) ugg, are you crazy? this is not portable
[...]
-- 
Michael
    
    
More information about the ffmpeg-devel
mailing list