FFmpeg
|
MPEG-1/2 decoder. More...
#include "libavutil/attributes.h"
#include "libavutil/avassert.h"
#include "libavutil/timecode.h"
#include "internal.h"
#include "avcodec.h"
#include "mpegvideo.h"
#include "error_resilience.h"
#include "mpeg12.h"
#include "mpeg12data.h"
#include "mpegvideodata.h"
#include "bytestream.h"
#include "thread.h"
Go to the source code of this file.
Macros | |
#define | UNCHECKED_BITSTREAM_READER 1 |
#define | MAX_INDEX (64 - 1) |
Functions | |
av_cold void | ff_init_2d_vlc_rl (RLTable *rl, unsigned static_size, int flags) |
av_cold void | ff_mpeg12_common_init (MpegEncContext *s) |
void | ff_mpeg1_clean_buffers (MpegEncContext *s) |
av_cold void | ff_mpeg12_init_vlcs (void) |
int | ff_mpeg1_find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s) |
Find the end of the current frame in the bitstream. More... | |
int | ff_mpeg1_decode_block_intra (GetBitContext *gb, const uint16_t *quant_matrix, uint8_t *const scantable, int last_dc[3], int16_t *block, int index, int qscale) |
Variables | |
uint8_t | ff_mpeg12_static_rl_table_store [2][2][2 *MAX_RUN+MAX_LEVEL+3] |
static const uint8_t | table_mb_ptype [7][2] |
static const uint8_t | table_mb_btype [11][2] |
VLC | ff_mv_vlc |
VLC | ff_dc_lum_vlc |
VLC | ff_dc_chroma_vlc |
VLC | ff_mbincr_vlc |
VLC | ff_mb_ptype_vlc |
VLC | ff_mb_btype_vlc |
VLC | ff_mb_pat_vlc |
MPEG-1/2 decoder.
Definition in file mpeg12.c.
#define MAX_INDEX (64 - 1) |
Definition at line 238 of file mpeg12.c.
Referenced by ff_mpeg1_decode_block_intra().
av_cold void ff_mpeg12_common_init | ( | MpegEncContext * | s | ) |
Definition at line 107 of file mpeg12.c.
Referenced by ff_mpeg1_encode_init(), and mpeg_decode_init().
void ff_mpeg1_clean_buffers | ( | MpegEncContext * | s | ) |
Definition at line 115 of file mpeg12.c.
Referenced by encode_thread(), and mpeg_decode_slice().
Definition at line 137 of file mpeg12.c.
Referenced by decode_init(), mpeg_decode_init(), and tqi_decode_init().
int ff_mpeg1_find_frame_end | ( | ParseContext * | pc, |
const uint8_t * | buf, | ||
int | buf_size, | ||
AVCodecParserContext * | s | ||
) |
Find the end of the current frame in the bitstream.
Definition at line 178 of file mpeg12.c.
Referenced by mpeg_decode_frame(), and mpegvideo_parse().
int ff_mpeg1_decode_block_intra | ( | GetBitContext * | gb, |
const uint16_t * | quant_matrix, | ||
uint8_t *const | scantable, | ||
int | last_dc[3], | ||
int16_t * | block, | ||
int | index, | ||
int | qscale | ||
) |
Definition at line 240 of file mpeg12.c.
Referenced by mpeg_decode_mb(), and tqi_decode_mb().
Definition at line 44 of file mpeg12.c.
Referenced by ff_mpeg12_init_vlcs(), and ff_mpeg1_encode_init().
|
static |
Definition at line 46 of file mpeg12.c.
Referenced by ff_mpeg12_init_vlcs().
|
static |
Definition at line 56 of file mpeg12.c.
Referenced by ff_mpeg12_init_vlcs().
VLC ff_mv_vlc |
Definition at line 127 of file mpeg12.c.
Referenced by mpeg_decode_motion().
VLC ff_dc_lum_vlc |
Definition at line 129 of file mpeg12.c.
Referenced by decode_dc().
VLC ff_dc_chroma_vlc |
Definition at line 130 of file mpeg12.c.
Referenced by decode_dc().
VLC ff_mbincr_vlc |
Definition at line 132 of file mpeg12.c.
Referenced by mpeg_decode_slice().
VLC ff_mb_ptype_vlc |
Definition at line 133 of file mpeg12.c.
Referenced by mpeg_decode_mb().
VLC ff_mb_btype_vlc |
Definition at line 134 of file mpeg12.c.
Referenced by mpeg_decode_mb().
VLC ff_mb_pat_vlc |
Definition at line 135 of file mpeg12.c.
Referenced by mpeg_decode_mb().