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 "hwaccel.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 "profiles.h"
#include "thread.h"
#include "version.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 | MAX_INDEX (64 - 1) |
#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 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 [] |
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 74 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define MAX_INDEX (64 - 1) |
Definition at line 127 of file mpeg12dec.c.
Referenced by mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), and mpeg2_fast_decode_block_non_intra().
#define check_scantable_index | ( | ctx, | |
x | |||
) |
Definition at line 128 of file mpeg12dec.c.
Referenced by mpeg1_decode_block_inter(), mpeg1_fast_decode_block_inter(), mpeg2_decode_block_intra(), mpeg2_decode_block_non_intra(), mpeg2_fast_decode_block_intra(), and mpeg2_fast_decode_block_non_intra().
#define MT_FIELD 1 |
Definition at line 653 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define MT_FRAME 2 |
Definition at line 654 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define MT_16X8 2 |
Definition at line 655 of file mpeg12dec.c.
#define MT_DMV 3 |
Definition at line 656 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
#define DECODE_SLICE_ERROR -1 |
Definition at line 1692 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
#define DECODE_SLICE_OK 0 |
Definition at line 1693 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
|
static |
Definition at line 101 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 137 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 227 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 312 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 403 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 475 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 565 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 644 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 658 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
|
static |
Definition at line 1055 of file mpeg12dec.c.
|
static |
Definition at line 1111 of file mpeg12dec.c.
|
static |
Definition at line 1174 of file mpeg12dec.c.
Referenced by vcr2_init_sequence().
|
static |
Definition at line 1195 of file mpeg12dec.c.
Referenced by vcr2_init_sequence().
|
static |
Definition at line 1212 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1349 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1396 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1439 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1463 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1497 of file mpeg12dec.c.
Referenced by mpeg1_decode_sequence(), and mpeg_decode_quant_matrix_extension().
|
static |
Definition at line 1520 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1534 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1593 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 1701 of file mpeg12dec.c.
Referenced by decode_chunks(), and slice_decode_thread().
|
static |
Definition at line 1978 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Handle slice ends.
Definition at line 2029 of file mpeg12dec.c.
Referenced by compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), decode_chunks(), decode_frame(), decode_speedhq_field(), DEFINE_BLEND8(), do_chromakey_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), filter16_3x3(), filter16_5x5(), filter16_7x7(), filter16_brng(), filter16_prewitt(), filter16_roberts(), filter16_sobel(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_3x3(), filter_5x5(), filter_7x7(), filter_color(), filter_color2(), filter_frame(), filter_horizontally(), filter_mono(), filter_postscale(), filter_prewitt(), filter_rgb(), filter_roberts(), filter_slice(), filter_slice16(), filter_slice8(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_slice_rgb(), filter_sobel(), filter_vertically(), hqx_filter(), nlmeans_slice(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), slice_geq_filter(), and xbr_filter().
|
static |
Definition at line 2080 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2169 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 2223 of file mpeg12dec.c.
Referenced by mpeg_decode_user_data().
|
static |
Definition at line 2348 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2418 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2451 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 2777 of file mpeg12dec.c.
|
static |
Definition at line 2852 of file mpeg12dec.c.
|
static |
Definition at line 2861 of file mpeg12dec.c.
|
static |
Definition at line 76 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 86 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 1123 of file mpeg12dec.c.
|
static |
Definition at line 1137 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 1164 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 1169 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
AVCodec ff_mpeg1video_decoder |
Definition at line 2871 of file mpeg12dec.c.
AVCodec ff_mpeg2video_decoder |
Definition at line 2904 of file mpeg12dec.c.
AVCodec ff_mpegvideo_decoder |
Definition at line 2950 of file mpeg12dec.c.