mpegvideo_common.h File Reference


Detailed Description

The simplest mpeg encoder (well, it was the simplest!).

Definition in file mpegvideo_common.h.

Go to the source code of this file.

Functions

int dct_quantize_c (MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow)
int dct_quantize_trellis_c (MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow)
void denoise_dct_c (MpegEncContext *s, DCTELEM *block)
void copy_picture (Picture *dst, Picture *src)
int alloc_picture (MpegEncContext *s, Picture *pic, int shared)
 allocates a Picture The pixels are allocated/set by calling get_buffer() if shared=0
void MPV_common_defaults (MpegEncContext *s)
 sets the given MpegEncContext to common defaults (same for encoding and decoding).
static void gmc1_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture)
static void gmc_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture)
static int hpel_motion (MpegEncContext *s, uint8_t *dest, uint8_t *src, int field_based, int field_select, int src_x, int src_y, int width, int height, int stride, int h_edge_pos, int v_edge_pos, int w, int h, op_pixels_func *pix_op, int motion_x, int motion_y)
static av_always_inline void mpeg_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, uint8_t **ref_picture, op_pixels_func(*pix_op)[4], int motion_x, int motion_y, int h)
static void put_obmc (uint8_t *dst, uint8_t *src[5], int stride)
static void obmc_motion (MpegEncContext *s, uint8_t *dest, uint8_t *src, int src_x, int src_y, op_pixels_func *pix_op, int16_t mv[5][2])
static void qpel_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int field_based, int bottom_field, int field_select, uint8_t **ref_picture, op_pixels_func(*pix_op)[4], qpel_mc_func(*qpix_op)[16], int motion_x, int motion_y, int h)
static void chroma_4mv_motion (MpegEncContext *s, uint8_t *dest_cb, uint8_t *dest_cr, uint8_t **ref_picture, op_pixels_func *pix_op, int mx, int my)
 h263 chroma 4mv motion compensation.
static void prefetch_motion (MpegEncContext *s, uint8_t **pix, int dir)
static void MPV_motion (MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int dir, uint8_t **ref_picture, op_pixels_func(*pix_op)[4], qpel_mc_func(*qpix_op)[16])
 motion compensation of a single macroblock


Function Documentation

int dct_quantize_c ( MpegEncContext s,
DCTELEM block,
int  n,
int  qscale,
int *  overflow 
)

Definition at line 3637 of file mpegvideo_enc.c.

int dct_quantize_trellis_c ( MpegEncContext s,
DCTELEM block,
int  n,
int  qscale,
int *  overflow 
)

Definition at line 2951 of file mpegvideo_enc.c.

Referenced by MPV_encode_init().

void denoise_dct_c ( MpegEncContext s,
DCTELEM block 
)

Definition at line 2927 of file mpegvideo_enc.c.

Referenced by MPV_encode_init().

void copy_picture ( Picture dst,
Picture src 
)

Definition at line 176 of file mpegvideo.c.

Referenced by select_input_picture().

int alloc_picture ( MpegEncContext s,
Picture pic,
int  shared 
)

allocates a Picture The pixels are allocated/set by calling get_buffer() if shared=0

Definition at line 185 of file mpegvideo.c.

Referenced by load_input_picture(), MPV_frame_start(), and select_input_picture().

void MPV_common_defaults ( MpegEncContext s  ) 

sets the given MpegEncContext to common defaults (same for encoding and decoding).

the changed fields will not depend upon the prior state of the MpegEncContext.

Definition at line 393 of file mpegvideo.c.

Referenced by MPV_decode_defaults(), and MPV_encode_defaults().

static void gmc1_motion ( MpegEncContext s,
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
uint8_t **  ref_picture 
) [inline, static]

Definition at line 58 of file mpegvideo_common.h.

Referenced by MPV_motion().

static void gmc_motion ( MpegEncContext s,
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
uint8_t **  ref_picture 
) [inline, static]

Definition at line 144 of file mpegvideo_common.h.

Referenced by MPV_motion().

static int hpel_motion ( MpegEncContext s,
uint8_t *  dest,
uint8_t *  src,
int  field_based,
int  field_select,
int  src_x,
int  src_y,
int  width,
int  height,
int  stride,
int  h_edge_pos,
int  v_edge_pos,
int  w,
int  h,
op_pixels_func pix_op,
int  motion_x,
int  motion_y 
) [inline, static]

Definition at line 200 of file mpegvideo_common.h.

Referenced by MPV_motion(), and obmc_motion().

static av_always_inline void mpeg_motion ( MpegEncContext s,
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
int  field_based,
int  bottom_field,
int  field_select,
uint8_t **  ref_picture,
op_pixels_func(*)  pix_op[4],
int  motion_x,
int  motion_y,
int  h 
) [static]

Definition at line 241 of file mpegvideo_common.h.

Referenced by MPV_motion().

static void put_obmc ( uint8_t *  dst,
uint8_t *  src[5],
int  stride 
) [inline, static]

Definition at line 356 of file mpegvideo_common.h.

Referenced by obmc_motion().

static void obmc_motion ( MpegEncContext s,
uint8_t *  dest,
uint8_t *  src,
int  src_x,
int  src_y,
op_pixels_func pix_op,
int16_t  mv[5][2] 
) [inline, static]

Definition at line 408 of file mpegvideo_common.h.

Referenced by MPV_motion().

static void qpel_motion ( MpegEncContext s,
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
int  field_based,
int  bottom_field,
int  field_select,
uint8_t **  ref_picture,
op_pixels_func(*)  pix_op[4],
qpel_mc_func(*)  qpix_op[16],
int  motion_x,
int  motion_y,
int  h 
) [inline, static]

Definition at line 437 of file mpegvideo_common.h.

Referenced by MPV_motion().

static void chroma_4mv_motion ( MpegEncContext s,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
uint8_t **  ref_picture,
op_pixels_func pix_op,
int  mx,
int  my 
) [inline, static]

h263 chroma 4mv motion compensation.

Definition at line 527 of file mpegvideo_common.h.

Referenced by MPV_motion().

static void prefetch_motion ( MpegEncContext s,
uint8_t **  pix,
int  dir 
) [inline, static]

Definition at line 573 of file mpegvideo_common.h.

static void MPV_motion ( MpegEncContext s,
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr,
int  dir,
uint8_t **  ref_picture,
op_pixels_func(*)  pix_op[4],
qpel_mc_func(*)  qpix_op[16] 
) [inline, static]

motion compensation of a single macroblock

Parameters:
s context
dest_y luma destination pointer
dest_cb chroma cb/u destination pointer
dest_cr chroma cr/v destination pointer
dir direction (0->forward, 1->backward)
ref_picture array[3] of pointers to the 3 planes of the reference picture
pic_op halfpel motion compensation function (average or put normally)
pic_op qpel motion compensation function (average or put normally) the motion vectors are taken from s->mv and the MV type from s->mv_type

Definition at line 597 of file mpegvideo_common.h.

Referenced by encode_mb_internal(), and MPV_decode_mb_internal().


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