FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
motionpixels.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "internal.h"
#include "motionpixels_tablegen.h"

Go to the source code of this file.

Data Structures

struct  HuffCode
 
struct  MotionPixelsContext
 

Macros

#define MAX_HUFF_CODES   16
 

Functions

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 int mp_get_code (MotionPixelsContext *mp, GetBitContext *gb, int size, int code)
 
static int 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 *got_frame, AVPacket *avpkt)
 
static av_cold int mp_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_motionpixels_decoder
 

Macro Definition Documentation

#define MAX_HUFF_CODES   16

Definition at line 27 of file motionpixels.c.

Referenced by mp_get_code().

Function Documentation

static av_cold int mp_decode_init ( AVCodecContext avctx)
static

Definition at line 53 of file motionpixels.c.

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

Definition at line 76 of file motionpixels.c.

Referenced by mp_decode_frame().

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

Definition at line 105 of file motionpixels.c.

Referenced by mp_read_codes_table().

static int mp_read_codes_table ( MotionPixelsContext mp,
GetBitContext gb 
)
static

Definition at line 127 of file motionpixels.c.

Referenced by mp_decode_frame().

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

Definition at line 149 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 158 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

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

Definition at line 166 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static int mp_get_vlc ( MotionPixelsContext mp,
GetBitContext gb 
)
static

Definition at line 174 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

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

Definition at line 182 of file motionpixels.c.

Referenced by mp_decode_frame_helper().

static void mp_decode_frame_helper ( MotionPixelsContext mp,
GetBitContext gb 
)
static

Definition at line 229 of file motionpixels.c.

Referenced by mp_decode_frame().

static int mp_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 258 of file motionpixels.c.

static av_cold int mp_decode_end ( AVCodecContext avctx)
static

Definition at line 320 of file motionpixels.c.

Variable Documentation

AVCodec ff_motionpixels_decoder
Initial value:
= {
.name = "motionpixels",
.priv_data_size = sizeof(MotionPixelsContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Motion Pixels video"),
}

Definition at line 333 of file motionpixels.c.