FFmpeg
Data Structures | Macros | Functions | Variables
motionpixels.c File Reference
#include "avcodec.h"
#include "get_bits.h"
#include "bswapdsp.h"
#include "internal.h"
#include "motionpixels_tablegen.h"

Go to the source code of this file.

Data Structures

struct   HuffCode
 
 

Macros

#define  MAX_HUFF_CODES   16
 

Functions

 
 
static void  mp_read_changes_map (MotionPixelsContext *mp, GetBitContext *gb, int count, int bits_len, int read_color)
 
 
 
static int  mp_gradient (MotionPixelsContext *mp, int component, int v)
 
 
 
 
 
 
static int  mp_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

 

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_end ( AVCodecContextavctx )
static

Definition at line 53 of file motionpixels.c.

Referenced by mp_decode_init().

static av_cold int mp_decode_init ( AVCodecContextavctx )
static

Definition at line 66 of file motionpixels.c.

static void mp_read_changes_map ( MotionPixelsContextmp,
GetBitContextgb,
int  count,
int  bits_len,
int  read_color 
)
static

Definition at line 101 of file motionpixels.c.

Referenced by mp_decode_frame().

static int mp_get_code ( MotionPixelsContextmp,
GetBitContextgb,
int  size,
int  code 
)
static

Definition at line 130 of file motionpixels.c.

Referenced by mp_read_codes_table().

static int mp_read_codes_table ( MotionPixelsContextmp,
GetBitContextgb 
)
static

Definition at line 152 of file motionpixels.c.

Referenced by mp_decode_frame().

static int mp_gradient ( MotionPixelsContextmp,
int  component,
int  v 
)
static

Definition at line 174 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static YuvPixel mp_get_yuv_from_rgb ( MotionPixelsContextmp,
int  x,
int  y 
)
static

Definition at line 183 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static void mp_set_rgb_from_yuv ( MotionPixelsContextmp,
int  x,
int  y,
const YuvPixelp 
)
static

Definition at line 191 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static int mp_get_vlc ( MotionPixelsContextmp,
GetBitContextgb 
)
static

Definition at line 199 of file motionpixels.c.

Referenced by mp_decode_frame_helper(), and mp_decode_line().

static void mp_decode_line ( MotionPixelsContextmp,
GetBitContextgb,
int  y 
)
static

Definition at line 207 of file motionpixels.c.

Referenced by mp_decode_frame_helper().

static void mp_decode_frame_helper ( MotionPixelsContextmp,
GetBitContextgb 
)
static

Definition at line 254 of file motionpixels.c.

Referenced by mp_decode_frame().

static int mp_decode_frame ( AVCodecContextavctx,
voiddata,
intgot_frame,
AVPacketavpkt 
)
static

Definition at line 283 of file motionpixels.c.

Variable Documentation

AVCodec ff_motionpixels_decoder
Initial value:
= {
.name = "motionpixels",
.long_name = NULL_IF_CONFIG_SMALL("Motion Pixels video"),
.priv_data_size = sizeof(MotionPixelsContext),
.close = mp_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static int mp_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: motionpixels.c:283
static av_cold int mp_decode_init(AVCodecContext *avctx)
Definition: motionpixels.c:66
static av_cold int mp_decode_end(AVCodecContext *avctx)
Definition: motionpixels.c:53
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:1002

Definition at line 345 of file motionpixels.c.


Generated on Fri Jan 12 2018 01:48:16 for FFmpeg by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /