libavcodec/mpeg4video.h File Reference

#include <stdint.h>
#include "get_bits.h"
#include "mpegvideo.h"
#include "rl.h"

Go to the source code of this file.

Defines

#define RECT_SHAPE   0
#define BIN_SHAPE   1
#define BIN_ONLY_SHAPE   2
#define GRAY_SHAPE   3
#define SIMPLE_VO_TYPE   1
#define CORE_VO_TYPE   3
#define MAIN_VO_TYPE   4
#define NBIT_VO_TYPE   5
#define ARTS_VO_TYPE   10
#define ACE_VO_TYPE   12
#define ADV_SIMPLE_VO_TYPE   17
#define EXTENDED_PAR   15
#define STATIC_SPRITE   1
#define GMC_SPRITE   2
#define MOTION_MARKER   0x1F001
#define DC_MARKER   0x6B001
#define VOS_STARTCODE   0x1B0
#define USER_DATA_STARTCODE   0x1B2
#define GOP_STARTCODE   0x1B3
#define VISUAL_OBJ_STARTCODE   0x1B5
#define VOP_STARTCODE   0x1B6
#define IS_3IV1   0

Functions

void mpeg4_encode_mb (MpegEncContext *s, DCTELEM block[6][64], int motion_x, int motion_y)
void mpeg4_pred_ac (MpegEncContext *s, DCTELEM *block, int n, int dir)
 predicts the ac.
void ff_set_mpeg4_time (MpegEncContext *s)
void mpeg4_encode_picture_header (MpegEncContext *s, int picture_number)
int ff_mpeg4_decode_picture_header (MpegEncContext *s, GetBitContext *gb)
 decode mpeg4 headers
void ff_mpeg4_encode_video_packet_header (MpegEncContext *s)
void ff_mpeg4_clean_buffers (MpegEncContext *s)
void ff_mpeg4_stuffing (PutBitContext *pbc)
 add mpeg4 stuffing bits (01.
void ff_mpeg4_init_partitions (MpegEncContext *s)
void ff_mpeg4_merge_partitions (MpegEncContext *s)
void ff_clean_mpeg4_qscales (MpegEncContext *s)
 modify mb_type & qscale so that encoding is acually possible in mpeg4
int ff_mpeg4_decode_partitions (MpegEncContext *s)
 decodes the first & second partition
int ff_mpeg4_get_video_packet_prefix_length (MpegEncContext *s)
int mpeg4_decode_video_packet_header (MpegEncContext *s)
 decodes the next video packet.
void ff_mpeg4_init_direct_mv (MpegEncContext *s)
int ff_mpeg4_set_direct_mv (MpegEncContext *s, int mx, int my)
static int ff_mpeg4_pred_dc (MpegEncContext *s, int n, int level, int *dir_ptr, int encoding)
 predicts the dc.

Variables

const uint8_t ff_mpeg4_DCtab_lum [13][2]
const uint8_t ff_mpeg4_DCtab_chrom [13][2]
const uint16_t ff_mpeg4_intra_vlc [103][2]
RLTable ff_mpeg4_rl_intra
RLTable rvlc_rl_inter
RLTable rvlc_rl_intra
const uint16_t sprite_trajectory_tab [15][2]
const uint8_t mb_type_b_tab [4][2]
const int16_t ff_mpeg4_default_intra_matrix [64]
const int16_t ff_mpeg4_default_non_intra_matrix [64]
const uint8_t ff_mpeg4_y_dc_scale_table [32]
const uint8_t ff_mpeg4_c_dc_scale_table [32]
const uint16_t ff_mpeg4_resync_prefix [8]
const uint8_t mpeg4_dc_threshold [8]
uint8_t ff_mpeg4_static_rl_table_store [3][2][2 *MAX_RUN+MAX_LEVEL+3]


Define Documentation

#define ACE_VO_TYPE   12

Definition at line 42 of file mpeg4video.h.

#define ADV_SIMPLE_VO_TYPE   17

Definition at line 43 of file mpeg4video.h.

Referenced by mpeg4_encode_vol_header().

#define ARTS_VO_TYPE   10

Definition at line 41 of file mpeg4video.h.

#define BIN_ONLY_SHAPE   2

#define BIN_SHAPE   1

Definition at line 33 of file mpeg4video.h.

#define CORE_VO_TYPE   3

Definition at line 38 of file mpeg4video.h.

#define DC_MARKER   0x6B001

#define EXTENDED_PAR   15

Definition at line 46 of file mpeg4video.h.

#define GMC_SPRITE   2

#define GOP_STARTCODE   0x1B3

Definition at line 57 of file mpeg4video.h.

Referenced by ff_mpeg4_decode_picture_header(), and mpeg4_encode_gop_header().

#define GRAY_SHAPE   3

Definition at line 35 of file mpeg4video.h.

Referenced by decode_vol_header().

#define IS_3IV1   0

#define MAIN_VO_TYPE   4

Definition at line 39 of file mpeg4video.h.

#define MOTION_MARKER   0x1F001

#define NBIT_VO_TYPE   5

Definition at line 40 of file mpeg4video.h.

#define RECT_SHAPE   0

#define SIMPLE_VO_TYPE   1

Definition at line 37 of file mpeg4video.h.

Referenced by mpeg4_encode_vol_header().

#define STATIC_SPRITE   1

Definition at line 49 of file mpeg4video.h.

Referenced by decode_vol_header(), and decode_vop_header().

#define USER_DATA_STARTCODE   0x1B2

Definition at line 56 of file mpeg4video.h.

Referenced by ff_mpeg4_decode_picture_header().

#define VISUAL_OBJ_STARTCODE   0x1B5

Definition at line 58 of file mpeg4video.h.

Referenced by mpeg4_encode_visual_object_header().

#define VOP_STARTCODE   0x1B6

Definition at line 59 of file mpeg4video.h.

Referenced by ff_mpeg4_decode_picture_header(), and mpeg4_encode_picture_header().

#define VOS_STARTCODE   0x1B0


Function Documentation

void ff_clean_mpeg4_qscales ( MpegEncContext s  ) 

modify mb_type & qscale so that encoding is acually possible in mpeg4

Definition at line 204 of file mpeg4videoenc.c.

Referenced by estimate_qp().

void ff_mpeg4_clean_buffers ( MpegEncContext s  ) 

Definition at line 43 of file mpeg4video.c.

Referenced by encode_thread(), and ff_h263_decode_frame().

int ff_mpeg4_decode_partitions ( MpegEncContext s  ) 

decodes the first & second partition

Returns:
<0 if error (and sets error type in the error_status_table)

Definition at line 793 of file mpeg4videodec.c.

Referenced by decode_slice().

int ff_mpeg4_decode_picture_header ( MpegEncContext s,
GetBitContext gb 
)

decode mpeg4 headers

Returns:
<0 if no VOP found (or a damaged one) FRAME_SKIPPED if a not coded VOP is found 0 if a VOP is found

Definition at line 2134 of file mpeg4videodec.c.

Referenced by av_mpeg4_decode_header(), and ff_h263_decode_frame().

void ff_mpeg4_encode_video_packet_header ( MpegEncContext s  ) 

Definition at line 1316 of file mpeg4videoenc.c.

Referenced by encode_thread().

int ff_mpeg4_get_video_packet_prefix_length ( MpegEncContext s  ) 

void ff_mpeg4_init_direct_mv ( MpegEncContext s  ) 

Definition at line 78 of file mpeg4video.c.

Referenced by decode_vop_header(), ff_set_mpeg4_time(), and rv20_decode_picture_header().

void ff_mpeg4_init_partitions ( MpegEncContext s  ) 

Definition at line 1276 of file mpeg4videoenc.c.

Referenced by encode_thread().

void ff_mpeg4_merge_partitions ( MpegEncContext s  ) 

Definition at line 1289 of file mpeg4videoenc.c.

Referenced by write_slice_end().

static int ff_mpeg4_pred_dc ( MpegEncContext s,
int  n,
int  level,
int *  dir_ptr,
int  encoding 
) [inline, static]

predicts the dc.

encoding quantized level -> quantized diff decoding quantized diff -> quantized level

Parameters:
n block index (0-3 are luma, 4-5 are chroma)
dir_ptr pointer to an integer where the prediction direction will be stored

Definition at line 128 of file mpeg4video.h.

Referenced by mpeg4_decode_block(), mpeg4_decode_dc(), and mpeg4_encode_mb().

int ff_mpeg4_set_direct_mv ( MpegEncContext s,
int  mx,
int  my 
)

Returns:
the mb_type

Definition at line 121 of file mpeg4video.c.

Referenced by encode_thread(), ff_h263_decode_mb(), and mpeg4_decode_mb().

void ff_mpeg4_stuffing ( PutBitContext pbc  ) 

add mpeg4 stuffing bits (01.

..1)

Definition at line 847 of file mpeg4videoenc.c.

Referenced by mpeg4_encode_gop_header(), mpeg4_encode_visual_object_header(), mpeg4_encode_vol_header(), and write_slice_end().

void ff_set_mpeg4_time ( MpegEncContext s  ) 

Definition at line 856 of file mpeg4videoenc.c.

Referenced by encode_picture().

int mpeg4_decode_video_packet_header ( MpegEncContext s  ) 

decodes the next video packet.

Returns:
<0 if something went wrong

Definition at line 361 of file mpeg4videodec.c.

Referenced by ff_h263_resync().

void mpeg4_encode_mb ( MpegEncContext s,
DCTELEM  block[6][64],
int  motion_x,
int  motion_y 
)

Definition at line 471 of file mpeg4videoenc.c.

Referenced by encode_mb_internal().

void mpeg4_encode_picture_header ( MpegEncContext s,
int  picture_number 
)

Definition at line 1041 of file mpeg4videoenc.c.

Referenced by encode_picture().

void mpeg4_pred_ac ( MpegEncContext s,
DCTELEM block,
int  n,
int  dir 
)

predicts the ac.

Parameters:
n block index (0-3 are luma, 4-5 are chroma)
dir the ac prediction direction

Definition at line 56 of file mpeg4videodec.c.

Referenced by ff_msmpeg4_decode_block(), and mpeg4_decode_block().


Variable Documentation

const uint8_t ff_mpeg4_c_dc_scale_table[32]

Definition at line 363 of file mpeg4data.h.

Referenced by common_init(), decode_vop_header(), and encode_init().

const uint8_t ff_mpeg4_DCtab_chrom[13][2]

const uint8_t ff_mpeg4_DCtab_lum[13][2]

Definition at line 337 of file mpeg4data.h.

Referenced by decode_vol_header(), and MPV_encode_init().

Definition at line 348 of file mpeg4data.h.

Referenced by decode_vol_header(), and MPV_encode_init().

const uint16_t ff_mpeg4_intra_vlc[103][2]

Definition at line 47 of file mpeg4data.h.

const uint16_t ff_mpeg4_resync_prefix[8]

Definition at line 368 of file mpeg4data.h.

Referenced by mpeg4_is_resync().

Definition at line 109 of file mpeg4data.h.

Referenced by decode_init(), encode_init(), and mpeg4_decode_block().

uint8_t ff_mpeg4_static_rl_table_store[3][2][2 *MAX_RUN+MAX_LEVEL+3]

Definition at line 27 of file mpeg4video.c.

Referenced by decode_init(), and encode_init().

const uint8_t ff_mpeg4_y_dc_scale_table[32]

Definition at line 359 of file mpeg4data.h.

Referenced by common_init(), decode_vop_header(), and encode_init().

const uint8_t mb_type_b_tab[4][2]

Definition at line 332 of file mpeg4data.h.

Referenced by decode_init().

const uint8_t mpeg4_dc_threshold[8]

Definition at line 372 of file mpeg4data.h.

Referenced by decode_vop_header().

Definition at line 214 of file mpeg4data.h.

Referenced by decode_init(), and mpeg4_decode_block().

Definition at line 318 of file mpeg4data.h.

Referenced by decode_init(), and mpeg4_decode_block().

const uint16_t sprite_trajectory_tab[15][2]

Definition at line 326 of file mpeg4data.h.

Referenced by decode_init().


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