vp3.c File Reference


Detailed Description

On2 VP3 Video Decoder.

VP3 Video Decoder by Mike Melanson (mike at multimedia.cx) For more information about the VP3 coding process, visit: http://multimedia.cx/

Theora decoder by Alex Beregszaszi

Definition in file vp3.c.

Go to the source code of this file.

Classes

struct  Coeff
struct  Vp3Fragment
struct  Vp3DecodeContext

Functions

static void debug_vp3 (const char *format,...)
static void debug_init (const char *format,...)
static void debug_dequantizers (const char *format,...)
static void debug_block_coding (const char *format,...)
static void debug_modes (const char *format,...)
static void debug_vectors (const char *format,...)
static void debug_token (const char *format,...)
static void debug_vlc (const char *format,...)
static void debug_dc_pred (const char *format,...)
static void debug_idct (const char *format,...)
static int init_block_mapping (Vp3DecodeContext *s)
static void init_frame (Vp3DecodeContext *s, GetBitContext *gb)
static void init_dequantizer (Vp3DecodeContext *s)
static void init_loop_filter (Vp3DecodeContext *s)
static int unpack_superblocks (Vp3DecodeContext *s, GetBitContext *gb)
static int unpack_modes (Vp3DecodeContext *s, GetBitContext *gb)
static int unpack_vectors (Vp3DecodeContext *s, GetBitContext *gb)
static int unpack_vlcs (Vp3DecodeContext *s, GetBitContext *gb, VLC *table, int coeff_index, int first_fragment, int last_fragment, int eob_run)
static int unpack_dct_coeffs (Vp3DecodeContext *s, GetBitContext *gb)
static void reverse_dc_prediction (Vp3DecodeContext *s, int first_fragment, int fragment_width, int fragment_height)
static void horizontal_filter (unsigned char *first_pixel, int stride, int *bounding_values)
static void vertical_filter (unsigned char *first_pixel, int stride, int *bounding_values)
static void render_slice (Vp3DecodeContext *s, int slice)
static void apply_loop_filter (Vp3DecodeContext *s)
static void vp3_calculate_pixel_addresses (Vp3DecodeContext *s)
static void theora_calculate_pixel_addresses (Vp3DecodeContext *s)
static int vp3_decode_init (AVCodecContext *avctx)
static int vp3_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int vp3_decode_end (AVCodecContext *avctx)
static int read_huffman_tree (AVCodecContext *avctx, GetBitContext *gb)
static int theora_decode_header (AVCodecContext *avctx, GetBitContext *gb)
static int theora_decode_tables (AVCodecContext *avctx, GetBitContext *gb)
static int theora_decode_init (AVCodecContext *avctx)

Variables

static int ModeAlphabet [7][CODING_MODE_COUNT]
AVCodec theora_decoder
AVCodec vp3_decoder


Function Documentation

static void debug_vp3 ( const char *  format,
  ... 
) [inline, static]

static void debug_init ( const char *  format,
  ... 
) [inline, static]

static void debug_dequantizers ( const char *  format,
  ... 
) [inline, static]

Definition at line 93 of file vp3.c.

static void debug_block_coding ( const char *  format,
  ... 
) [inline, static]

Definition at line 99 of file vp3.c.

Referenced by unpack_superblocks().

static void debug_modes ( const char *  format,
  ... 
) [inline, static]

Definition at line 105 of file vp3.c.

Referenced by unpack_modes().

static void debug_vectors ( const char *  format,
  ... 
) [inline, static]

Definition at line 111 of file vp3.c.

Referenced by unpack_vectors().

static void debug_token ( const char *  format,
  ... 
) [inline, static]

Definition at line 117 of file vp3.c.

static void debug_vlc ( const char *  format,
  ... 
) [inline, static]

Definition at line 123 of file vp3.c.

Referenced by unpack_vlcs().

static void debug_dc_pred ( const char *  format,
  ... 
) [inline, static]

Definition at line 129 of file vp3.c.

Referenced by reverse_dc_prediction().

static void debug_idct ( const char *  format,
  ... 
) [inline, static]

Definition at line 135 of file vp3.c.

Referenced by render_slice().

static int init_block_mapping ( Vp3DecodeContext s  )  [static]

Definition at line 343 of file vp3.c.

Referenced by vp3_decode_init().

static void init_frame ( Vp3DecodeContext s,
GetBitContext gb 
) [static]

Definition at line 584 of file vp3.c.

static void init_dequantizer ( Vp3DecodeContext s  )  [static]

Definition at line 605 of file vp3.c.

Referenced by vp3_decode_frame().

static void init_loop_filter ( Vp3DecodeContext s  )  [static]

Definition at line 645 of file vp3.c.

Referenced by vp3_decode_frame().

static int unpack_superblocks ( Vp3DecodeContext s,
GetBitContext gb 
) [static]

Definition at line 667 of file vp3.c.

Referenced by vp3_decode_frame().

static int unpack_modes ( Vp3DecodeContext s,
GetBitContext gb 
) [static]

Definition at line 873 of file vp3.c.

Referenced by vp3_decode_frame().

static int unpack_vectors ( Vp3DecodeContext s,
GetBitContext gb 
) [static]

Definition at line 958 of file vp3.c.

Referenced by vp3_decode_frame().

static int unpack_vlcs ( Vp3DecodeContext s,
GetBitContext gb,
VLC table,
int  coeff_index,
int  first_fragment,
int  last_fragment,
int  eob_run 
) [static]

Definition at line 1141 of file vp3.c.

Referenced by unpack_dct_coeffs().

static int unpack_dct_coeffs ( Vp3DecodeContext s,
GetBitContext gb 
) [static]

Definition at line 1217 of file vp3.c.

Referenced by vp3_decode_frame().

static void reverse_dc_prediction ( Vp3DecodeContext s,
int  first_fragment,
int  fragment_width,
int  fragment_height 
) [static]

Definition at line 1315 of file vp3.c.

Referenced by vp3_decode_frame().

static void horizontal_filter ( unsigned char *  first_pixel,
int  stride,
int *  bounding_values 
) [static]

Definition at line 1718 of file vp3.c.

Referenced by apply_loop_filter(), and render_slice().

static void vertical_filter ( unsigned char *  first_pixel,
int  stride,
int *  bounding_values 
) [static]

Definition at line 1734 of file vp3.c.

Referenced by apply_loop_filter(), and render_slice().

static void render_slice ( Vp3DecodeContext s,
int  slice 
) [static]

Definition at line 1498 of file vp3.c.

Referenced by vp3_decode_frame().

static void apply_loop_filter ( Vp3DecodeContext s  )  [static]

Definition at line 1751 of file vp3.c.

Referenced by vp3_decode_frame().

static void vp3_calculate_pixel_addresses ( Vp3DecodeContext s  )  [static]

Definition at line 1840 of file vp3.c.

Referenced by vp3_decode_frame().

static void theora_calculate_pixel_addresses ( Vp3DecodeContext s  )  [static]

Definition at line 1887 of file vp3.c.

Referenced by vp3_decode_frame().

static int vp3_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 1936 of file vp3.c.

Referenced by theora_decode_init().

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

Definition at line 2127 of file vp3.c.

static int vp3_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 2313 of file vp3.c.

static int read_huffman_tree ( AVCodecContext avctx,
GetBitContext gb 
) [static]

Definition at line 2336 of file vp3.c.

Referenced by theora_decode_tables().

static int theora_decode_header ( AVCodecContext avctx,
GetBitContext gb 
) [static]

Definition at line 2369 of file vp3.c.

Referenced by theora_decode_init().

static int theora_decode_tables ( AVCodecContext avctx,
GetBitContext gb 
) [static]

Definition at line 2444 of file vp3.c.

Referenced by theora_decode_init().

static int theora_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 2548 of file vp3.c.


Variable Documentation

int ModeAlphabet[7][CODING_MODE_COUNT] [static]

Definition at line 176 of file vp3.c.

Referenced by unpack_modes().

Initial value:

Definition at line 2612 of file vp3.c.

Initial value:

Definition at line 2626 of file vp3.c.


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5