Libav
|
#include "error_resilience.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "h263.h"
#include "thread.h"
#include "xvididct.h"
Go to the source code of this file.
Macros | |
#define | SPRITE_TRAJ_VLC_BITS 6 |
#define | DC_VLC_BITS 9 |
#define | MB_TYPE_B_VLC_BITS 4 |
Functions | |
void | ff_mpeg4_pred_ac (MpegEncContext *s, int16_t *block, int n, int dir) |
Predict the ac. More... | |
static int | mpeg4_is_resync (MpegEncContext *s) |
check if the next stuff is a resync marker or the end. More... | |
static int | mpeg4_decode_sprite_trajectory (Mpeg4DecContext *ctx, GetBitContext *gb) |
int | ff_mpeg4_decode_video_packet_header (Mpeg4DecContext *ctx) |
Decode the next video packet. More... | |
static int | get_amv (Mpeg4DecContext *ctx, int n) |
Get the average motion vector for a GMC MB. More... | |
static int | mpeg4_decode_dc (MpegEncContext *s, int n, int *dir_ptr) |
Decode the dc value. More... | |
static int | mpeg4_decode_partition_a (Mpeg4DecContext *ctx) |
Decode first partition. More... | |
static int | mpeg4_decode_partition_b (MpegEncContext *s, int mb_count) |
decode second partition. More... | |
int | ff_mpeg4_decode_partitions (Mpeg4DecContext *ctx) |
Decode the first and second partition. More... | |
static int | mpeg4_decode_block (Mpeg4DecContext *ctx, int16_t *block, int n, int coded, int intra, int rvlc) |
Decode a block. More... | |
static int | mpeg4_decode_partitioned_mb (MpegEncContext *s, int16_t block[6][64]) |
decode partition C of one MB. More... | |
static int | mpeg4_decode_mb (MpegEncContext *s, int16_t block[6][64]) |
static int | mpeg4_decode_gop_header (MpegEncContext *s, GetBitContext *gb) |
static int | mpeg4_decode_profile_level (MpegEncContext *s, GetBitContext *gb) |
static int | decode_vol_header (Mpeg4DecContext *ctx, GetBitContext *gb) |
static int | decode_user_data (Mpeg4DecContext *ctx, GetBitContext *gb) |
Decode the user data stuff in the header. More... | |
static int | decode_vop_header (Mpeg4DecContext *ctx, GetBitContext *gb) |
int | ff_mpeg4_decode_picture_header (Mpeg4DecContext *ctx, GetBitContext *gb) |
Decode mpeg4 headers. More... | |
int | ff_mpeg4_frame_end (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static int | mpeg4_update_thread_context (AVCodecContext *dst, const AVCodecContext *src) |
static av_cold int | decode_init (AVCodecContext *avctx) |
Variables | |
static VLC | dc_lum |
static VLC | dc_chrom |
static VLC | sprite_trajectory |
static VLC | mb_type_b_vlc |
static const int | mb_type_b_map [4] |
static const AVProfile | mpeg4_video_profiles [] |
AVCodec | ff_mpeg4_decoder |
#define SPRITE_TRAJ_VLC_BITS 6 |
Definition at line 37 of file mpeg4videodec.c.
Referenced by decode_init(), and mpeg4_decode_sprite_trajectory().
#define DC_VLC_BITS 9 |
Definition at line 38 of file mpeg4videodec.c.
Referenced by decode_init(), and mpeg4_decode_dc().
#define MB_TYPE_B_VLC_BITS 4 |
Definition at line 39 of file mpeg4videodec.c.
Referenced by decode_init(), and mpeg4_decode_mb().
void ff_mpeg4_pred_ac | ( | MpegEncContext * | s, |
int16_t * | block, | ||
int | n, | ||
int | dir | ||
) |
Predict the ac.
n | block index (0-3 are luma, 4-5 are chroma) |
dir | the ac prediction direction |
Definition at line 57 of file mpeg4videodec.c.
Referenced by ff_msmpeg4_decode_block(), and mpeg4_decode_block().
|
inlinestatic |
check if the next stuff is a resync marker or the end.
Definition at line 112 of file mpeg4videodec.c.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partitioned_mb().
|
static |
Definition at line 156 of file mpeg4videodec.c.
Referenced by decode_vop_header(), and ff_mpeg4_decode_video_packet_header().
int ff_mpeg4_decode_video_packet_header | ( | Mpeg4DecContext * | ctx | ) |
Decode the next video packet.
Definition at line 379 of file mpeg4videodec.c.
Referenced by ff_h263_resync().
|
inlinestatic |
Get the average motion vector for a GMC MB.
n | either 0 for the x component or 1 for y |
Definition at line 485 of file mpeg4videodec.c.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partition_a().
|
inlinestatic |
Decode the dc value.
n | block index (0-3 are luma, 4-5 are chroma) |
dir_ptr | the prediction direction will be stored here |
Definition at line 538 of file mpeg4videodec.c.
Referenced by mpeg4_decode_block(), mpeg4_decode_partition_a(), and mpeg4_decode_partition_b().
|
static |
Decode first partition.
Definition at line 585 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_partitions().
|
static |
decode second partition.
Definition at line 779 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_partitions().
int ff_mpeg4_decode_partitions | ( | Mpeg4DecContext * | ctx | ) |
Decode the first and second partition.
Definition at line 872 of file mpeg4videodec.c.
Referenced by decode_slice().
|
inlinestatic |
Decode a block.
Definition at line 935 of file mpeg4videodec.c.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partitioned_mb().
|
static |
decode partition C of one MB.
Definition at line 1180 of file mpeg4videodec.c.
Referenced by decode_vop_header().
|
static |
Definition at line 1265 of file mpeg4videodec.c.
Referenced by decode_init(), and decode_vop_header().
|
static |
Definition at line 1636 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 1654 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 1671 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Decode the user data stuff in the header.
Also initializes divx/xvid/lavc_version/build.
Definition at line 2002 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 2080 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
int ff_mpeg4_decode_picture_header | ( | Mpeg4DecContext * | ctx, |
GetBitContext * | gb | ||
) |
Decode mpeg4 headers.
Definition at line 2325 of file mpeg4videodec.c.
Referenced by ff_h263_decode_frame(), and mpeg4_decode_header().
int ff_mpeg4_frame_end | ( | AVCodecContext * | avctx, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
Definition at line 2498 of file mpeg4videodec.c.
Referenced by ff_h263_decode_frame().
|
static |
Definition at line 2541 of file mpeg4videodec.c.
|
static |
Definition at line 2563 of file mpeg4videodec.c.
|
static |
Definition at line 41 of file mpeg4videodec.c.
|
static |
Definition at line 41 of file mpeg4videodec.c.
|
static |
Definition at line 42 of file mpeg4videodec.c.
|
static |
Definition at line 43 of file mpeg4videodec.c.
|
static |
|
static |
Definition at line 2612 of file mpeg4videodec.c.
AVCodec ff_mpeg4_decoder |
Definition at line 2631 of file mpeg4videodec.c.