FFmpeg
|
#include "config_components.h"
#include <inttypes.h>
#include "libavutil/attributes.h"
#include "libavutil/emms.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/mem_internal.h"
#include "libavutil/reverse.h"
#include "libavutil/stereo3d.h"
#include "libavutil/timecode.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "error_resilience.h"
#include "hwaccel_internal.h"
#include "hwconfig.h"
#include "idctdsp.h"
#include "internal.h"
#include "mpeg_er.h"
#include "mpeg12.h"
#include "mpeg12codecs.h"
#include "mpeg12data.h"
#include "mpeg12dec.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideodata.h"
#include "mpegvideodec.h"
#include "profiles.h"
#include "startcode.h"
#include "thread.h"
Go to the source code of this file.
Data Structures | |
struct | Mpeg1Context |
struct | IPUContext |
Macros | |
#define | UNCHECKED_BITSTREAM_READER 1 |
#define | A53_MAX_CC_COUNT 2000 |
#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 |
#define | M2V_OFFSET(x) offsetof(Mpeg1Context, x) |
#define | M2V_PARAM AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Enumerations | |
enum | Mpeg2ClosedCaptionsFormat { CC_FORMAT_AUTO, CC_FORMAT_A53_PART4, CC_FORMAT_SCTE20, CC_FORMAT_DVD } |
Functions | |
static int | mpeg_decode_motion (MpegEncContext *s, int fcode, int pred) |
static int | mpeg1_decode_block_inter (MpegEncContext *s, int16_t *block, int n) |
static int | mpeg2_decode_block_non_intra (MpegEncContext *s, int16_t *block, int n) |
static int | mpeg2_decode_block_intra (MpegEncContext *s, int16_t *block, int n) |
static int | get_dmv (MpegEncContext *s) |
static int | mpeg_decode_mb (MpegEncContext *s, int16_t block[12][64]) |
static av_cold int | mpeg_decode_init (AVCodecContext *avctx) |
static enum AVPixelFormat | mpeg_get_pixelformat (AVCodecContext *avctx) |
static int | mpeg_decode_postinit (AVCodecContext *avctx) |
static int | mpeg1_decode_picture (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static void | mpeg_decode_sequence_extension (Mpeg1Context *s1) |
static void | mpeg_decode_sequence_display_extension (Mpeg1Context *s1) |
static void | mpeg_decode_picture_display_extension (Mpeg1Context *s1) |
static int | load_matrix (MpegEncContext *s, uint16_t matrix0[64], uint16_t matrix1[64], int intra) |
static void | mpeg_decode_quant_matrix_extension (MpegEncContext *s) |
static int | mpeg_decode_picture_coding_extension (Mpeg1Context *s1) |
static int | mpeg_field_start (Mpeg1Context *s1, const uint8_t *buf, int buf_size) |
static int | mpeg_decode_slice (MpegEncContext *s, int mb_y, const uint8_t **buf, int buf_size) |
Decode a slice. More... | |
static int | slice_decode_thread (AVCodecContext *c, void *arg) |
static int | slice_end (AVCodecContext *avctx, AVFrame *pict, int *got_output) |
Handle slice ends. More... | |
static int | mpeg1_decode_sequence (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static int | vcr2_init_sequence (AVCodecContext *avctx) |
static void | mpeg_set_cc_format (AVCodecContext *avctx, enum Mpeg2ClosedCaptionsFormat format, const char *label) |
static int | mpeg_decode_a53_cc (AVCodecContext *avctx, const uint8_t *p, int buf_size) |
static void | mpeg_decode_user_data (AVCodecContext *avctx, const uint8_t *p, int buf_size) |
static int | mpeg_decode_gop (AVCodecContext *avctx, const uint8_t *buf, int buf_size) |
static int | decode_chunks (AVCodecContext *avctx, AVFrame *picture, int *got_output, const uint8_t *buf, int buf_size) |
static int | mpeg_decode_frame (AVCodecContext *avctx, AVFrame *picture, int *got_output, AVPacket *avpkt) |
static void | flush (AVCodecContext *avctx) |
static av_cold int | mpeg_decode_end (AVCodecContext *avctx) |
static int | ipu_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
static av_cold int | ipu_decode_init (AVCodecContext *avctx) |
Variables | |
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 [] |
const FFCodec | ff_mpeg1video_decoder |
static const AVOption | mpeg2video_options [] |
static const AVClass | mpeg2video_class |
const FFCodec | ff_mpeg2video_decoder |
const FFCodec | ff_mpegvideo_decoder |
const FFCodec | ff_ipu_decoder |
MPEG-1/2 decoder
Definition in file mpeg12dec.c.
#define UNCHECKED_BITSTREAM_READER 1 |
Definition at line 30 of file mpeg12dec.c.
#define A53_MAX_CC_COUNT 2000 |
Definition at line 63 of file mpeg12dec.c.
#define MAX_INDEX (64 - 1) |
Definition at line 123 of file mpeg12dec.c.
#define check_scantable_index | ( | ctx, | |
x | |||
) |
Definition at line 124 of file mpeg12dec.c.
#define MT_FIELD 1 |
Definition at line 396 of file mpeg12dec.c.
#define MT_FRAME 2 |
Definition at line 397 of file mpeg12dec.c.
#define MT_16X8 2 |
Definition at line 398 of file mpeg12dec.c.
#define MT_DMV 3 |
Definition at line 399 of file mpeg12dec.c.
#define DECODE_SLICE_ERROR -1 |
Definition at line 1381 of file mpeg12dec.c.
#define DECODE_SLICE_OK 0 |
Definition at line 1382 of file mpeg12dec.c.
#define M2V_OFFSET | ( | x | ) | offsetof(Mpeg1Context, x) |
Definition at line 2617 of file mpeg12dec.c.
#define M2V_PARAM AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_DECODING_PARAM |
Definition at line 2618 of file mpeg12dec.c.
Enumerator | |
---|---|
CC_FORMAT_AUTO | |
CC_FORMAT_A53_PART4 | |
CC_FORMAT_SCTE20 | |
CC_FORMAT_DVD |
Definition at line 65 of file mpeg12dec.c.
|
static |
Definition at line 97 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 133 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 217 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
inlinestatic |
Definition at line 302 of file mpeg12dec.c.
Referenced by ipu_decode_frame(), and mpeg_decode_mb().
|
inlinestatic |
Definition at line 387 of file mpeg12dec.c.
Referenced by mpeg_decode_mb().
|
static |
Definition at line 401 of file mpeg12dec.c.
Referenced by mpeg_decode_slice().
|
static |
Definition at line 764 of file mpeg12dec.c.
|
static |
Definition at line 857 of file mpeg12dec.c.
Referenced by mpeg_decode_postinit(), and vcr2_init_sequence().
|
static |
Definition at line 880 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1009 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1056 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1099 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1123 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1157 of file mpeg12dec.c.
Referenced by mpeg1_decode_sequence(), and mpeg_decode_quant_matrix_extension().
|
static |
Definition at line 1180 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1194 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1252 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 1390 of file mpeg12dec.c.
Referenced by decode_chunks(), and slice_decode_thread().
|
static |
Definition at line 1666 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Handle slice ends.
Definition at line 1719 of file mpeg12dec.c.
Referenced by allocate_plane(), average_slice16(), average_slice8(), bilateralo_planes(), blend_frame_partial(), blend_slice_packed_rgb(), blur_planes(), box_slice(), cas_slice16(), cas_slice8(), check_sobel(), clear_slice16(), clear_slice8(), color_balance16(), color_balance16_p(), color_balance8(), color_balance8_p(), colorcontrast_slice16(), colorcontrast_slice16p(), colorcontrast_slice8(), colorcontrast_slice8p(), colorcorrect_slice16(), colorcorrect_slice8(), colorize_slice16(), colorize_slice8(), colorizey_slice16(), colorizey_slice8(), colormap_slice(), compute_images_identity(), compute_images_msad(), compute_images_mse(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), convert_frame(), convert_frame_partial(), copy_horizontal(), copy_vertical(), correct_frame(), decode_chunks(), decode_frame(), decode_speedhq_field(), denoise(), diagonal_transformation(), displace_packed(), displace_planar(), distortion_correction_filter_slice(), do_backgroundkey16_slice(), do_backgroundkey_slice(), do_chromahold16_slice(), do_chromahold_slice(), do_chromakey16_slice(), do_chromakey_slice(), do_despill_slice(), do_hsvhold16_slice(), do_hsvhold_slice(), do_hsvkey16_slice(), do_hsvkey_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_slice(), epx2_slice(), epx3_slice(), exposure_slice(), fade(), ff_sws_slice_worker(), filter16_brng(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_color(), filter_color2(), filter_horizontally(), filter_mono(), filter_postscale(), filter_rgb(), filter_rgb_planar(), filter_slice(), filter_slice_alpha(), filter_slice_alpha16(), filter_slice_chroma(), filter_slice_chroma16(), filter_slice_grey_edge(), filter_slice_luma(), filter_slice_luma16(), filter_slice_packed(), filter_slice_planar(), filter_slice_rgb(), filter_slice_rgba_packed(), filter_slice_rgba_planar(), filter_vertically(), hqx_filter(), irdft_horizontal16(), irdft_horizontal8(), irdft_vertical(), limitdiff_slice(), lut_packed_16bits(), lut_packed_8bits(), lut_planar_16bits(), lut_planar_8bits(), maskedclamp_slice(), maskedminmax_slice(), minmax_slice16(), minmax_slice8(), monochrome_slice16(), monochrome_slice8(), multiply_data(), multiply_slice(), nlmeans_slice(), pixelize_slice(), premultiply_slice(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), qoa_decode_frame(), rdft_horizontal16(), rdft_horizontal8(), rdft_vertical(), scroll_slice(), slice_geq_filter(), slice_get_derivative(), slice_normalize(), slice_params(), ssim_plane(), ssim_plane_16bit(), super2xsai(), temperature_slice16(), temperature_slice16p(), temperature_slice32(), temperature_slice8(), temperature_slice8p(), threshold_slice(), tonemap_slice(), v210_decode_slice(), v360_slice(), v410_decode_slice(), verti_slice_c(), vibrance_slice16(), vibrance_slice16p(), vibrance_slice8(), vibrance_slice8p(), vif_filter1d(), vignetting_filter_slice(), xbr_filter(), and xfade_slice().
|
static |
Definition at line 1769 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 1858 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 1908 of file mpeg12dec.c.
Referenced by mpeg_decode_a53_cc().
|
static |
Definition at line 1922 of file mpeg12dec.c.
Referenced by mpeg_decode_user_data().
|
static |
Definition at line 2067 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2137 of file mpeg12dec.c.
Referenced by decode_chunks().
|
static |
Definition at line 2168 of file mpeg12dec.c.
Referenced by mpeg_decode_frame().
|
static |
Definition at line 2502 of file mpeg12dec.c.
|
static |
Definition at line 2569 of file mpeg12dec.c.
|
static |
Definition at line 2580 of file mpeg12dec.c.
|
static |
Definition at line 2713 of file mpeg12dec.c.
|
static |
Definition at line 2808 of file mpeg12dec.c.
|
static |
Definition at line 809 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 820 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 847 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
|
static |
Definition at line 852 of file mpeg12dec.c.
Referenced by mpeg_get_pixelformat().
const FFCodec ff_mpeg1video_decoder |
Definition at line 2588 of file mpeg12dec.c.
|
static |
Definition at line 2620 of file mpeg12dec.c.
|
static |
Definition at line 2636 of file mpeg12dec.c.
const FFCodec ff_mpeg2video_decoder |
Definition at line 2644 of file mpeg12dec.c.
const FFCodec ff_mpegvideo_decoder |
Definition at line 2690 of file mpeg12dec.c.
const FFCodec ff_ipu_decoder |
Definition at line 2829 of file mpeg12dec.c.