4xm.c File Reference

Go to the source code of this file.

Classes

struct  CFrameBuffer
struct  FourXContext

Functions

static void idct (DCTELEM block[64])
static void init_vlcs (FourXContext *f)
static void init_mv (FourXContext *f)
static void mcdc (uint16_t *dst, uint16_t *src, int log2w, int h, int stride, int scale, int dc)
static void decode_p_block (FourXContext *f, uint16_t *dst, uint16_t *src, int log2w, int log2h, int stride)
static int get32 (void *p)
static int decode_p_frame (FourXContext *f, uint8_t *buf, int length)
static int decode_i_block (FourXContext *f, DCTELEM *block)
 decode block and dequantize.
static void idct_put (FourXContext *f, int x, int y)
static int decode_i_mb (FourXContext *f)
static uint8_t * read_huffman_tables (FourXContext *f, uint8_t *const buf)
static int mix (int c0, int c1)
static int decode_i2_frame (FourXContext *f, uint8_t *buf, int length)
static int decode_i_frame (FourXContext *f, uint8_t *buf, int length)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static void common_init (AVCodecContext *avctx)
static int decode_init (AVCodecContext *avctx)
static int decode_end (AVCodecContext *avctx)

Variables

static const uint8_t block_type_tab [2][4][8][2]
static const uint8_t size2index [4][4]
static const int8_t mv [256][2]
static const uint8_t dequant_table [64]
static VLC block_type_vlc [2][4]
AVCodec fourxm_decoder


Function Documentation

static void idct ( DCTELEM  block[64]  )  [static]

static void init_vlcs ( FourXContext f  )  [static]

Definition at line 238 of file libavcodec/4xm.c.

Referenced by decode_init(), and mpeg_decode_init().

static void init_mv ( FourXContext f  )  [static]

Definition at line 248 of file libavcodec/4xm.c.

Referenced by decode_p_frame().

static void mcdc ( uint16_t *  dst,
uint16_t *  src,
int  log2w,
int  h,
int  stride,
int  scale,
int  dc 
) [inline, static]

Definition at line 259 of file libavcodec/4xm.c.

Referenced by decode_p_block().

static void decode_p_block ( FourXContext f,
uint16_t *  dst,
uint16_t *  src,
int  log2w,
int  log2h,
int  stride 
) [static]

Definition at line 300 of file libavcodec/4xm.c.

Referenced by decode_p_frame().

static int get32 ( void *  p  )  [static]

Definition at line 346 of file libavcodec/4xm.c.

Referenced by decode_frame(), decode_i_frame(), and decode_p_frame().

static int decode_p_frame ( FourXContext f,
uint8_t *  buf,
int  length 
) [static]

Definition at line 350 of file libavcodec/4xm.c.

Referenced by decode_frame().

static int decode_i_block ( FourXContext f,
DCTELEM block 
) [static]

decode block and dequantize.

Note this is allmost identical to mjpeg

Definition at line 414 of file libavcodec/4xm.c.

Referenced by decode_i_mb().

static void idct_put ( FourXContext f,
int  x,
int  y 
) [inline, static]

static int decode_i_mb ( FourXContext f  )  [static]

Definition at line 502 of file libavcodec/4xm.c.

Referenced by decode_i_frame().

static uint8_t* read_huffman_tables ( FourXContext f,
uint8_t *const   buf 
) [static]

Definition at line 515 of file libavcodec/4xm.c.

Referenced by decode_frame(), decode_i_frame(), and decode_init().

static int mix ( int  c0,
int  c1 
) [static]

Definition at line 592 of file libavcodec/4xm.c.

Referenced by av_aes_init(), crypt(), and decode_i2_frame().

static int decode_i2_frame ( FourXContext f,
uint8_t *  buf,
int  length 
) [static]

Definition at line 599 of file libavcodec/4xm.c.

Referenced by decode_frame().

static int decode_i_frame ( FourXContext f,
uint8_t *  buf,
int  length 
) [static]

Definition at line 635 of file libavcodec/4xm.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 681 of file libavcodec/4xm.c.

Referenced by flac_decode_frame(), and nut_read_packet().

static void common_init ( AVCodecContext avctx  )  [static]

static int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 799 of file libavcodec/4xm.c.

Referenced by decode_init_mp3on4().

static int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 818 of file libavcodec/4xm.c.


Variable Documentation

const uint8_t block_type_tab[2][4][8][2] [static]

Initial value:

{
 {
  {   
    { 0,1}, { 2,2}, { 6,3}, {14,4}, {30,5}, {31,5}, { 0,0}
  },{ 
    { 0,1}, { 0,0}, { 2,2}, { 6,3}, {14,4}, {15,4}, { 0,0}
  },{ 
    { 0,1}, { 2,2}, { 0,0}, { 6,3}, {14,4}, {15,4}, { 0,0}
  },{ 
    { 0,1}, { 0,0}, { 0,0}, { 2,2}, { 6,3}, {14,4}, {15,4}
  }
 },{
  {  
    { 1,2}, { 4,3}, { 5,3}, {0,2}, {6,3}, {7,3}, {0,0}
  },{
    { 1,2}, { 0,0}, { 2,2}, {0,2}, {6,3}, {7,3}, {0,0}
  },{
    { 1,2}, { 2,2}, { 0,0}, {0,2}, {6,3}, {7,3}, {0,0}
  },{
    { 1,2}, { 0,0}, { 0,0}, {0,2}, {2,2}, {6,3}, {7,3}
  }
 }
}

Definition at line 40 of file libavcodec/4xm.c.

Referenced by init_vlcs().

const uint8_t size2index[4][4] [static]

Initial value:

{
  {-1, 3, 1, 1},
  { 3, 0, 0, 0},
  { 2, 0, 0, 0},
  { 2, 0, 0, 0},
}

Definition at line 64 of file libavcodec/4xm.c.

Referenced by decode_p_block().

const int8_t mv[256][2] [static]

const uint8_t dequant_table[64] [static]

Initial value:

{
 16, 15, 13, 19, 24, 31, 28, 17,
 17, 23, 25, 31, 36, 63, 45, 21,
 18, 24, 27, 37, 52, 59, 49, 20,
 16, 28, 34, 40, 60, 80, 51, 20,
 18, 31, 48, 66, 68, 86, 56, 21,
 19, 38, 56, 59, 64, 64, 48, 20,
 27, 48, 55, 55, 56, 51, 35, 15,
 20, 35, 34, 32, 31, 22, 15,  8,
}

Definition at line 107 of file libavcodec/4xm.c.

Referenced by decode_i_block(), and fill_tone_level_array().

VLC block_type_vlc[2][4] [static]

Definition at line 118 of file libavcodec/4xm.c.

Initial value:

Definition at line 833 of file libavcodec/4xm.c.


Generated on Sat Jul 31 05:18:17 2010 for MythTV by  doxygen 1.5.5