libavcodec/motionpixels.c File Reference

#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"

Go to the source code of this file.

Data Structures

struct  YuvPixel
struct  HuffCode
struct  MotionPixelsContext

Defines

#define MAX_HUFF_CODES   16

Functions

static int mp_yuv_to_rgb (int y, int v, int u, int clip_rgb)
static void mp_set_zero_yuv (YuvPixel *p)
static void mp_build_rgb_yuv_table (YuvPixel *p)
static av_cold int mp_decode_init (AVCodecContext *avctx)
static void mp_read_changes_map (MotionPixelsContext *mp, GetBitContext *gb, int count, int bits_len, int read_color)
static void mp_get_code (MotionPixelsContext *mp, GetBitContext *gb, int size, int code)
static void mp_read_codes_table (MotionPixelsContext *mp, GetBitContext *gb)
static int mp_gradient (MotionPixelsContext *mp, int component, int v)
static YuvPixel mp_get_yuv_from_rgb (MotionPixelsContext *mp, int x, int y)
static void mp_set_rgb_from_yuv (MotionPixelsContext *mp, int x, int y, const YuvPixel *p)
static int mp_get_vlc (MotionPixelsContext *mp, GetBitContext *gb)
static void mp_decode_line (MotionPixelsContext *mp, GetBitContext *gb, int y)
static void mp_decode_frame_helper (MotionPixelsContext *mp, GetBitContext *gb)
static int mp_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
static av_cold int mp_decode_end (AVCodecContext *avctx)

Variables

static YuvPixel mp_rgb_yuv_table [1<< 15]
AVCodec motionpixels_decoder


Define Documentation

#define MAX_HUFF_CODES   16

Definition at line 26 of file motionpixels.c.

Referenced by mp_get_code().


Function Documentation

static void mp_build_rgb_yuv_table ( YuvPixel p  )  [static]

Definition at line 84 of file motionpixels.c.

Referenced by mp_decode_init().

static av_cold int mp_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 345 of file motionpixels.c.

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

Definition at line 288 of file motionpixels.c.

Referenced by decode_frame().

static void mp_decode_frame_helper ( MotionPixelsContext mp,
GetBitContext gb 
) [static]

Definition at line 261 of file motionpixels.c.

Referenced by mp_decode_frame().

static av_cold int mp_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 102 of file motionpixels.c.

static void mp_decode_line ( MotionPixelsContext mp,
GetBitContext gb,
int  y 
) [static]

Definition at line 214 of file motionpixels.c.

Referenced by mp_decode_frame_helper().

static void mp_get_code ( MotionPixelsContext mp,
GetBitContext gb,
int  size,
int  code 
) [static]

Definition at line 147 of file motionpixels.c.

Referenced by mp_read_codes_table().

static int mp_get_vlc ( MotionPixelsContext mp,
GetBitContext gb 
) [static]

Definition at line 206 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static YuvPixel mp_get_yuv_from_rgb ( MotionPixelsContext mp,
int  x,
int  y 
) [static]

Definition at line 190 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static int mp_gradient ( MotionPixelsContext mp,
int  component,
int  v 
) [static]

Definition at line 181 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static void mp_read_changes_map ( MotionPixelsContext mp,
GetBitContext gb,
int  count,
int  bits_len,
int  read_color 
) [static]

Definition at line 118 of file motionpixels.c.

Referenced by mp_decode_frame().

static void mp_read_codes_table ( MotionPixelsContext mp,
GetBitContext gb 
) [static]

Definition at line 166 of file motionpixels.c.

Referenced by mp_decode_frame().

static void mp_set_rgb_from_yuv ( MotionPixelsContext mp,
int  x,
int  y,
const YuvPixel p 
) [static]

Definition at line 198 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static void mp_set_zero_yuv ( YuvPixel p  )  [static]

Definition at line 70 of file motionpixels.c.

Referenced by mp_build_rgb_yuv_table().

static int mp_yuv_to_rgb ( int  y,
int  v,
int  u,
int  clip_rgb 
) [static]

Definition at line 56 of file motionpixels.c.

Referenced by mp_build_rgb_yuv_table(), and mp_set_rgb_from_yuv().


Variable Documentation

Initial value:

Definition at line 359 of file motionpixels.c.

YuvPixel mp_rgb_yuv_table[1<< 15] [static]

Definition at line 54 of file motionpixels.c.


Generated on Fri Oct 26 02:35:43 2012 for FFmpeg by  doxygen 1.5.8