FFmpeg
|
MPEG-1/2 decoder. More...
#include <inttypes.h>
#include "libavutil/attributes.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/stereo3d.h"
#include "avcodec.h"
#include "bytestream.h"
#include "error_resilience.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpeg_er.h"
#include "mpeg12.h"
#include "mpeg12data.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
#include "thread.h"
#include "version.h"
#include "vdpau_compat.h"
#include "xvmc_internal.h"
Go to the source code of this file.
Data Structures | |
struct | Mpeg1Context |
Macros | |
#define | UNCHECKED_BITSTREAM_READER 1 |
#define | MB_TYPE_ZERO_MV 0x20000000 |
#define | check_scantable_index(ctx, x) |
#define | MT_FIELD 1 |
#define | MT_FRAME 2 |
#define | MT_16X8 2 |
#define | MT_DMV 3 |
#define | DECODE_SLICE_ERROR -1 |
#define | DECODE_SLICE_OK 0 |
Variables | |
static const uint32_t | ptype2mb_type [7] |
static const uint32_t | btype2mb_type [11] |
static const uint8_t | non_linear_qscale [32] |
static enum AVPixelFormat | mpeg1_hwaccel_pixfmt_list_420 [] |
static enum AVPixelFormat | mpeg2_hwaccel_pixfmt_list_420 [] |
static enum AVPixelFormat | mpeg12_pixfmt_list_422 [] |
static enum AVPixelFormat | mpeg12_pixfmt_list_444 [] |
static const AVProfile | mpeg2_video_profiles [] |
AVCodec | ff_mpeg1video_decoder |
AVCodec | ff_mpeg2video_decoder |
AVCodec | ff_mpegvideo_decoder |
MPEG-1/2 decoder.
Definition in file mpeg12dec.c.
#define UNCHECKED_BITSTREAM_READER 1 |
Definition at line 28 of file mpeg12dec.c.
#define MB_TYPE_ZERO_MV 0x20000000 |
Definition at line 73 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define check_scantable_index | ( | ctx, | |
x | |||
) |
Definition at line 133 of file mpeg12dec.c.
Referenced by mpeg1_decode_block_inter(), mpeg1_decode_block_intra(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_intra(), and mpeg2_decode_block_non_intra().
#define MT_FIELD 1 |
Definition at line 729 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define MT_FRAME 2 |
Definition at line 730 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define MT_16X8 2 |
Definition at line 731 of file mpeg12dec.c.
#define MT_DMV 3 |
Definition at line 732 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define DECODE_SLICE_ERROR -1 |
Definition at line 1743 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
#define DECODE_SLICE_OK 0 |
Definition at line 1744 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
|
static |
Definition at line 107 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 142 of file mpeg12dec.c.
Referenced by ff_mpeg1_decode_block_intra(), and mpeg_decode_mb().
int ff_mpeg1_decode_block_intra | ( | MpegEncContext * | s, |
int16_t * | block, | ||
int | n | ||
) |
Definition at line 225 of file mpeg12dec.c.
Referenced by tqi_decode_mb().
|
inlinestatic |
Definition at line 230 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Note: this function can read out of range and crash for corrupt streams.
Changing this would eat up any speed benefits it has. Do not use "fast" flag if you need the code to be robust.
Definition at line 315 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 395 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Note: this function can read out of range and crash for corrupt streams.
Changing this would eat up any speed benefits it has. Do not use "fast" flag if you need the code to be robust.
Definition at line 482 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 547 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Note: this function can read out of range and crash for corrupt streams.
Changing this would eat up any speed benefits it has. Do not use "fast" flag if you need the code to be robust.
Definition at line 633 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 710 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 718 of file mpeg12dec.c.
Referenced by mpeg_decode_mb(), and mpeg_decode_slice().
|
static |
Definition at line 734 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
|
static |
Definition at line 1120 of file mpeg12dec.c.
|
static |
Definition at line 1148 of file mpeg12dec.c.
|
static |
Definition at line 1173 of file mpeg12dec.c.
|
inlinestatic |
Definition at line 1228 of file mpeg12dec.c.
Referenced by decode_chunks(), and setup_hwaccel_for_pixfmt().
|
static |
Definition at line 1232 of file mpeg12dec.c.
Referenced by vcr2_init_sequence().
|
static |
Definition at line 1253 of file mpeg12dec.c.
Referenced by vcr2_init_sequence().
|
static |
Definition at line 1273 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1408 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1455 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1492 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1516 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1550 of file mpeg12dec.c.
Referenced by mpeg1_decode_sequence(), and mpeg_decode_quant_matrix_extension().
|
static |
Definition at line 1573 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1587 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1646 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Decode a slice.
MpegEncContext.mb_y must be set to the MB row from the startcode.
Definition at line 1752 of file mpeg12dec.c.
Referenced by decode_chunks(), and slice_decode_thread().
|
static |
Definition at line 2022 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Handle slice ends.
Definition at line 2073 of file mpeg12dec.c.
Referenced by compute_sat_hue_metrics(), decode_chunks(), decode_frame(), filter_brng(), filter_rgb(), filter_slice(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_slice_rgb(), filter_tout(), filter_vrep(), hqx_filter(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), and xbr_filter().
|
static |
Definition at line 2121 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2209 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 2263 of file mpeg12dec.c.
Referenced by mpeg_decode_user_data().
|
static |
Definition at line 2316 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2391 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2418 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 2749 of file mpeg12dec.c.
|
static |
Definition at line 2811 of file mpeg12dec.c.
|
static |
Definition at line 2820 of file mpeg12dec.c.
|
static |
Definition at line 75 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 85 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 99 of file mpeg12dec.c.
Referenced by get_qscale().
|
static |
Definition at line 1185 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 1197 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 1218 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 1223 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 2830 of file mpeg12dec.c.
AVCodec ff_mpeg1video_decoder |
Definition at line 2842 of file mpeg12dec.c.
AVCodec ff_mpeg2video_decoder |
Definition at line 2859 of file mpeg12dec.c.
AVCodec ff_mpegvideo_decoder |
Definition at line 2877 of file mpeg12dec.c.