FFmpeg
|
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/thread.h"
#include "error_resilience.h"
#include "hwconfig.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
#include "mpeg4video.h"
#include "h263.h"
#include "profiles.h"
#include "thread.h"
#include "xvididct.h"
#include "unary.h"
Go to the source code of this file.
Macros | |
#define | UNCHECKED_BITSTREAM_READER 1 |
#define | SPRITE_TRAJ_VLC_BITS 6 |
#define | DC_VLC_BITS 9 |
#define | MB_TYPE_B_VLC_BITS 4 |
#define | STUDIO_INTRA_BITS 9 |
#define | SET_QPEL_FUNC(postfix1, postfix2) |
#define | OFFSET(x) offsetof(MpegEncContext, x) |
#define | FLAGS AV_OPT_FLAG_EXPORT | AV_OPT_FLAG_READONLY |
Variables | |
static VLC | dc_lum |
static VLC | dc_chrom |
static VLC | sprite_trajectory |
static VLC | mb_type_b_vlc |
static VLC | studio_intra_tab [12] |
static VLC | studio_luma_dc |
static VLC | studio_chroma_dc |
static const int | mb_type_b_map [4] |
static const uint8_t | ac_state_tab [22][2] |
static const AVOption | mpeg4_options [] |
static const AVClass | mpeg4_class |
AVCodec | ff_mpeg4_decoder |
#define UNCHECKED_BITSTREAM_READER 1 |
Definition at line 23 of file mpeg4videodec.c.
#define SPRITE_TRAJ_VLC_BITS 6 |
Definition at line 47 of file mpeg4videodec.c.
#define DC_VLC_BITS 9 |
Definition at line 48 of file mpeg4videodec.c.
#define MB_TYPE_B_VLC_BITS 4 |
Definition at line 49 of file mpeg4videodec.c.
#define STUDIO_INTRA_BITS 9 |
Definition at line 50 of file mpeg4videodec.c.
#define SET_QPEL_FUNC | ( | postfix1, | |
postfix2 | |||
) |
#define OFFSET | ( | x | ) | offsetof(MpegEncContext, x) |
Definition at line 3554 of file mpeg4videodec.c.
#define FLAGS AV_OPT_FLAG_EXPORT | AV_OPT_FLAG_READONLY |
Definition at line 3555 of file mpeg4videodec.c.
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 71 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 126 of file mpeg4videodec.c.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partitioned_mb().
|
static |
Definition at line 176 of file mpeg4videodec.c.
Referenced by decode_vop_header(), and ff_mpeg4_decode_video_packet_header().
|
static |
Definition at line 429 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 445 of file mpeg4videodec.c.
Referenced by ff_h263_resync().
|
static |
Definition at line 534 of file mpeg4videodec.c.
Referenced by decode_studio_vop_header(), and ff_mpeg4_decode_studio_slice_header().
int ff_mpeg4_decode_studio_slice_header | ( | Mpeg4DecContext * | ctx | ) |
Decode the next video packet.
Definition at line 546 of file mpeg4videodec.c.
Referenced by decode_slice().
|
inlinestatic |
Get the average motion vector for a GMC MB.
n | either 0 for the x component or 1 for y |
Definition at line 588 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 641 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 688 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_partitions().
|
static |
decode second partition.
Definition at line 882 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 975 of file mpeg4videodec.c.
Referenced by decode_slice().
|
inlinestatic |
Decode a block.
Definition at line 1040 of file mpeg4videodec.c.
Referenced by mpeg4_decode_mb(), and mpeg4_decode_partitioned_mb().
|
static |
decode partition C of one MB.
Definition at line 1311 of file mpeg4videodec.c.
Referenced by decode_vop_header().
|
static |
Definition at line 1398 of file mpeg4videodec.c.
Referenced by decode_init(), and decode_vop_header().
|
static |
Definition at line 1779 of file mpeg4videodec.c.
Referenced by decode_studio_vol_header(), decode_studio_vop_header(), decode_studiovisualobject(), ff_mpeg4_decode_picture_header(), mpeg4_decode_studio_mb(), and read_quant_matrix_ext().
|
static |
Definition at line 1815 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_mb().
|
static |
Definition at line 1930 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_mb().
|
static |
Definition at line 2013 of file mpeg4videodec.c.
Referenced by decode_studio_vop_header().
|
static |
Definition at line 2060 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 2082 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 2096 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 2128 of file mpeg4videodec.c.
Referenced by decode_studio_vop_header(), and decode_vol_header().
|
static |
Definition at line 2145 of file mpeg4videodec.c.
Referenced by extension_and_user_data().
|
static |
Definition at line 2194 of file mpeg4videodec.c.
Referenced by decode_studio_vol_header(), decode_studio_vop_header(), decode_studiovisualobject(), and ff_mpeg4_decode_picture_header().
|
static |
Definition at line 2211 of file mpeg4videodec.c.
Referenced by decode_vol_header().
|
static |
Definition at line 2297 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 2672 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
int ff_mpeg4_workaround_bugs | ( | AVCodecContext * | avctx | ) |
Definition at line 2729 of file mpeg4videodec.c.
Referenced by ff_h263_decode_frame().
|
static |
Definition at line 2847 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 3121 of file mpeg4videodec.c.
Referenced by decode_studio_vop_header().
|
static |
Decode the next studio vop header.
Definition at line 3140 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
|
static |
Definition at line 3195 of file mpeg4videodec.c.
Referenced by ff_mpeg4_decode_picture_header().
int ff_mpeg4_decode_picture_header | ( | Mpeg4DecContext * | ctx, |
GetBitContext * | gb, | ||
int | header | ||
) |
Decode MPEG-4 headers.
header | If set the absence of a VOP is not treated as error; otherwise, it is treated as such. |
Definition at line 3221 of file mpeg4videodec.c.
Referenced by ff_h263_decode_frame(), and mpeg4_decode_header().
av_cold void ff_mpeg4videodec_static_init | ( | void | ) |
Definition at line 3377 of file mpeg4videodec.c.
Referenced by mpeg4_init_static(), and mpeg4video_parse_init().
int ff_mpeg4_frame_end | ( | AVCodecContext * | avctx, |
const uint8_t * | buf, | ||
int | buf_size | ||
) |
Definition at line 3403 of file mpeg4videodec.c.
Referenced by ff_h263_decode_frame().
|
static |
Definition at line 3500 of file mpeg4videodec.c.
Referenced by decode_init().
|
static |
Definition at line 3527 of file mpeg4videodec.c.
|
static |
Definition at line 52 of file mpeg4videodec.c.
Referenced by ff_mpeg4videodec_static_init(), and mpeg4_decode_dc().
|
static |
Definition at line 52 of file mpeg4videodec.c.
Referenced by ff_mpeg4videodec_static_init(), and mpeg4_decode_dc().
|
static |
Definition at line 53 of file mpeg4videodec.c.
Referenced by ff_mpeg4videodec_static_init(), and mpeg4_decode_sprite_trajectory().
|
static |
Definition at line 54 of file mpeg4videodec.c.
Referenced by ff_mpeg4videodec_static_init(), and mpeg4_decode_mb().
|
static |
Definition at line 55 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_block(), and mpeg4_init_static().
|
static |
Definition at line 56 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_block(), and mpeg4_init_static().
|
static |
Definition at line 57 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_block(), and mpeg4_init_static().
|
static |
|
static |
Definition at line 1789 of file mpeg4videodec.c.
Referenced by mpeg4_decode_studio_block().
|
static |
Definition at line 3556 of file mpeg4videodec.c.
|
static |
Definition at line 3562 of file mpeg4videodec.c.
AVCodec ff_mpeg4_decoder |
Definition at line 3569 of file mpeg4videodec.c.