FFmpeg
Data Structures | Macros | Functions | Variables
mpeg12dec.c File Reference

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 "hwconfig.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
 
struct  IPUContext
 

Macros

#define UNCHECKED_BITSTREAM_READER   1
 
#define A53_MAX_CC_COUNT   2000
 
#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
 

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 mpeg1_fast_decode_block_inter (MpegEncContext *s, int16_t *block, int n)
 Changing this would eat up any speed benefits it has. More...
 
static int mpeg2_decode_block_non_intra (MpegEncContext *s, int16_t *block, int n)
 
static int mpeg2_fast_decode_block_non_intra (MpegEncContext *s, int16_t *block, int n)
 Changing this would eat up any speed benefits it has. More...
 
static int mpeg2_decode_block_intra (MpegEncContext *s, int16_t *block, int n)
 
static int mpeg2_fast_decode_block_intra (MpegEncContext *s, int16_t *block, int n)
 Changing this would eat up any speed benefits it has. More...
 
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 void quant_matrix_rebuild (uint16_t *matrix, const uint8_t *old_perm, const uint8_t *new_perm)
 
static enum AVPixelFormat mpeg_get_pixelformat (AVCodecContext *avctx)
 
static void setup_hwaccel_for_pixfmt (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 void mpeg_decode_picture_coding_extension (Mpeg1Context *s1)
 
static int mpeg_field_start (MpegEncContext *s, 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)
 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 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 void 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, void *data, 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, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int ipu_decode_init (AVCodecContext *avctx)
 
static av_cold int ipu_decode_end (AVCodecContext *avctx)
 

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
 
AVCodec ff_ipu_decoder
 

Detailed Description

MPEG-1/2 decoder.

Definition in file mpeg12dec.c.

Macro Definition Documentation

#define UNCHECKED_BITSTREAM_READER   1

Definition at line 28 of file mpeg12dec.c.

#define A53_MAX_CC_COUNT   2000

Definition at line 53 of file mpeg12dec.c.

Referenced by mpeg_decode_a53_cc().

#define MB_TYPE_ZERO_MV   0x20000000

Definition at line 76 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

#define MAX_INDEX   (64 - 1)
#define check_scantable_index (   ctx,
 
)
Value:
do { \
if ((x) > MAX_INDEX) { \
av_log(ctx->avctx, AV_LOG_ERROR, "ac-tex damaged at %d %d\n", \
ctx->mb_x, ctx->mb_y); \
} \
} while (0)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
Definition: error.h:59
#define MAX_INDEX
Definition: mpeg12dec.c:129
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:194
AVFormatContext * ctx
Definition: movenc.c:48
if(ret)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return

Definition at line 130 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 646 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

#define MT_FRAME   2

Definition at line 647 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

#define MT_16X8   2

Definition at line 648 of file mpeg12dec.c.

#define MT_DMV   3

Definition at line 649 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

#define DECODE_SLICE_ERROR   -1

Definition at line 1696 of file mpeg12dec.c.

Referenced by mpeg_decode_slice().

#define DECODE_SLICE_OK   0

Definition at line 1697 of file mpeg12dec.c.

Referenced by mpeg_decode_slice().

Function Documentation

static int mpeg_decode_motion ( MpegEncContext s,
int  fcode,
int  pred 
)
static

Definition at line 103 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int mpeg1_decode_block_inter ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

Definition at line 139 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int mpeg1_fast_decode_block_inter ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

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 228 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int mpeg2_decode_block_non_intra ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

Definition at line 313 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int mpeg2_fast_decode_block_non_intra ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

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().

static int mpeg2_decode_block_intra ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

Definition at line 475 of file mpeg12dec.c.

Referenced by ipu_decode_frame(), and mpeg_decode_mb().

static int mpeg2_fast_decode_block_intra ( MpegEncContext s,
int16_t *  block,
int  n 
)
inlinestatic

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 561 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int get_dmv ( MpegEncContext s)
inlinestatic

Definition at line 637 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

static int mpeg_decode_mb ( MpegEncContext s,
int16_t  block[12][64] 
)
static

Definition at line 651 of file mpeg12dec.c.

Referenced by mpeg_decode_slice().

static av_cold int mpeg_decode_init ( AVCodecContext avctx)
static

Definition at line 1048 of file mpeg12dec.c.

static void quant_matrix_rebuild ( uint16_t *  matrix,
const uint8_t old_perm,
const uint8_t new_perm 
)
static

Definition at line 1104 of file mpeg12dec.c.

Referenced by mpeg_decode_postinit().

static enum AVPixelFormat mpeg_get_pixelformat ( AVCodecContext avctx)
static

Definition at line 1167 of file mpeg12dec.c.

Referenced by mpeg_decode_postinit(), and vcr2_init_sequence().

static void setup_hwaccel_for_pixfmt ( AVCodecContext avctx)
static

Definition at line 1188 of file mpeg12dec.c.

Referenced by mpeg_decode_postinit(), and vcr2_init_sequence().

static int mpeg_decode_postinit ( AVCodecContext avctx)
static

Definition at line 1205 of file mpeg12dec.c.

Referenced by decode_chunks().

static int mpeg1_decode_picture ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 1342 of file mpeg12dec.c.

Referenced by decode_chunks().

static void mpeg_decode_sequence_extension ( Mpeg1Context s1)
static

Definition at line 1389 of file mpeg12dec.c.

Referenced by decode_chunks().

static void mpeg_decode_sequence_display_extension ( Mpeg1Context s1)
static

Definition at line 1439 of file mpeg12dec.c.

Referenced by decode_chunks().

static void mpeg_decode_picture_display_extension ( Mpeg1Context s1)
static

Definition at line 1463 of file mpeg12dec.c.

Referenced by decode_chunks().

static int load_matrix ( MpegEncContext s,
uint16_t  matrix0[64],
uint16_t  matrix1[64],
int  intra 
)
static

Definition at line 1497 of file mpeg12dec.c.

Referenced by mpeg1_decode_sequence(), and mpeg_decode_quant_matrix_extension().

static void mpeg_decode_quant_matrix_extension ( MpegEncContext s)
static

Definition at line 1520 of file mpeg12dec.c.

Referenced by decode_chunks().

static void mpeg_decode_picture_coding_extension ( Mpeg1Context s1)
static

Definition at line 1534 of file mpeg12dec.c.

Referenced by decode_chunks().

static int mpeg_field_start ( MpegEncContext s,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 1593 of file mpeg12dec.c.

Referenced by decode_chunks().

static int mpeg_decode_slice ( MpegEncContext s,
int  mb_y,
const uint8_t **  buf,
int  buf_size 
)
static

Decode a slice.

MpegEncContext.mb_y must be set to the MB row from the startcode.

Returns
DECODE_SLICE_ERROR if the slice is damaged, DECODE_SLICE_OK if this slice is OK

Definition at line 1705 of file mpeg12dec.c.

Referenced by decode_chunks(), and slice_decode_thread().

static int slice_decode_thread ( AVCodecContext c,
void arg 
)
static

Definition at line 1982 of file mpeg12dec.c.

Referenced by decode_chunks().

static int slice_end ( AVCodecContext avctx,
AVFrame pict 
)
static

Handle slice ends.

Returns
1 if it seems to be the last slice

Definition at line 2035 of file mpeg12dec.c.

Referenced by allocate_plane(), amplify_frame(), blend_frame_partial(), blend_slice_packed_rgb(), cas_slice16(), cas_slice8(), color_balance16(), color_balance16_p(), color_balance8(), color_balance8_p(), colorlevel_slice_16(), colorlevel_slice_8(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), convert_frame_partial(), decode_chunks(), decode_frame(), decode_speedhq_field(), DEFINE_BLEND8(), diagonal_transformation(), distortion_correction_filter_slice(), do_chromahold16_slice(), do_chromahold_slice(), do_chromakey16_slice(), do_chromakey_slice(), do_colorhold_slice(), do_colorkey_slice(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), 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_rgba16_packed(), filter_slice_rgba16_planar(), filter_slice_rgba_packed(), filter_slice_rgba_planar(), filter_vertically(), hqx_filter(), lagfun_frame16(), lagfun_frame8(), lut_packed_16bits(), lut_packed_8bits(), lut_planar_16bits(), lut_planar_8bits(), maskedclamp_slice(), maskedminmax_slice(), median_frames16(), median_frames8(), mix_frames(), nlmeans_slice(), premultiply_slice(), process_slice_uyvy422(), process_slice_yuv420p(), process_slice_yuv422p(), process_slice_yuv444p(), scale_frame(), scroll_slice(), slice_geq_filter(), slice_get_derivative(), slice_normalize(), threshold_slice(), tonemap_slice(), unsharp_slice(), v210_decode_slice(), v360_slice(), v410_decode_slice(), vibrance_slice16(), vibrance_slice8(), vignetting_filter_slice(), xbr_filter(), and xfade_slice().

static int mpeg1_decode_sequence ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 2086 of file mpeg12dec.c.

Referenced by decode_chunks().

static int vcr2_init_sequence ( AVCodecContext avctx)
static

Definition at line 2175 of file mpeg12dec.c.

Referenced by mpeg_decode_frame().

static int mpeg_decode_a53_cc ( AVCodecContext avctx,
const uint8_t p,
int  buf_size 
)
static

Definition at line 2229 of file mpeg12dec.c.

Referenced by mpeg_decode_user_data().

static void mpeg_decode_user_data ( AVCodecContext avctx,
const uint8_t p,
int  buf_size 
)
static

Definition at line 2364 of file mpeg12dec.c.

Referenced by decode_chunks().

static void mpeg_decode_gop ( AVCodecContext avctx,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 2434 of file mpeg12dec.c.

Referenced by decode_chunks().

static int decode_chunks ( AVCodecContext avctx,
AVFrame picture,
int got_output,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 2467 of file mpeg12dec.c.

Referenced by mpeg_decode_frame().

static int mpeg_decode_frame ( AVCodecContext avctx,
void data,
int got_output,
AVPacket avpkt 
)
static

Definition at line 2793 of file mpeg12dec.c.

static void flush ( AVCodecContext avctx)
static

Definition at line 2872 of file mpeg12dec.c.

static av_cold int mpeg_decode_end ( AVCodecContext avctx)
static

Definition at line 2881 of file mpeg12dec.c.

static int ipu_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 2991 of file mpeg12dec.c.

static av_cold int ipu_decode_init ( AVCodecContext avctx)
static

Definition at line 3092 of file mpeg12dec.c.

static av_cold int ipu_decode_end ( AVCodecContext avctx)
static

Definition at line 3123 of file mpeg12dec.c.

Variable Documentation

const uint32_t ptype2mb_type[7]
static
Initial value:
= {
MB_TYPE_L0 | MB_TYPE_CBP,
MB_TYPE_QUANT | MB_TYPE_L0 | MB_TYPE_CBP,
}
#define MB_TYPE_INTRA
Definition: mpegutils.h:73
#define MB_TYPE_16x16
Definition: mpegutils.h:54
#define MB_TYPE_QUANT
Definition: mpegutils.h:70
#define MB_TYPE_CBP
Definition: mpegutils.h:71
#define MB_TYPE_ZERO_MV
Definition: mpeg12dec.c:76
#define MB_TYPE_L0
Definition: mpegutils.h:67

Definition at line 78 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

const uint32_t btype2mb_type[11]
static
Initial value:
= {
MB_TYPE_L1 | MB_TYPE_CBP,
MB_TYPE_L0 | MB_TYPE_CBP,
MB_TYPE_L0L1 | MB_TYPE_CBP,
MB_TYPE_QUANT | MB_TYPE_L1 | MB_TYPE_CBP,
MB_TYPE_QUANT | MB_TYPE_L0 | MB_TYPE_CBP,
MB_TYPE_QUANT | MB_TYPE_L0L1 | MB_TYPE_CBP,
}
#define MB_TYPE_L1
Definition: mpegutils.h:68
#define MB_TYPE_INTRA
Definition: mpegutils.h:73
#define MB_TYPE_QUANT
Definition: mpegutils.h:70
#define MB_TYPE_CBP
Definition: mpegutils.h:71
#define MB_TYPE_L0L1
Definition: mpegutils.h:69
#define MB_TYPE_L0
Definition: mpegutils.h:67

Definition at line 88 of file mpeg12dec.c.

Referenced by mpeg_decode_mb().

enum AVPixelFormat mpeg1_hwaccel_pixfmt_list_420[]
static
Initial value:
= {
}
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66

Definition at line 1116 of file mpeg12dec.c.

Referenced by mpeg_get_pixelformat().

enum AVPixelFormat mpeg2_hwaccel_pixfmt_list_420[]
static
Initial value:
= {
}
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66

Definition at line 1130 of file mpeg12dec.c.

Referenced by mpeg_get_pixelformat().

enum AVPixelFormat mpeg12_pixfmt_list_422[]
static
Initial value:
= {
}
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70

Definition at line 1157 of file mpeg12dec.c.

Referenced by mpeg_get_pixelformat().

enum AVPixelFormat mpeg12_pixfmt_list_444[]
static
Initial value:
= {
}
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
Definition: pixfmt.h:71

Definition at line 1162 of file mpeg12dec.c.

Referenced by mpeg_get_pixelformat().

AVCodec ff_mpeg1video_decoder

Definition at line 2890 of file mpeg12dec.c.

AVCodec ff_mpeg2video_decoder

Definition at line 2923 of file mpeg12dec.c.

AVCodec ff_mpegvideo_decoder
Initial value:
= {
.name = "mpegvideo",
.long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"),
.priv_data_size = sizeof(Mpeg1Context),
.close = mpeg_decode_end,
.max_lowres = 3,
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int mpeg_decode_init(AVCodecContext *avctx)
Definition: mpeg12dec.c:1048
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:75
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
#define AV_CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: codec.h:44
static av_cold int mpeg_decode_end(AVCodecContext *avctx)
Definition: mpeg12dec.c:2881
preferred ID for MPEG-1/2 video decoding
Definition: codec_id.h:51
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:110
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_output, AVPacket *avpkt)
Definition: mpeg12dec.c:2793
#define AV_CODEC_CAP_TRUNCATED
Definition: codec.h:51
#define FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
The decoder extracts and fills its parameters even if the frame is skipped due to the skip_frame sett...
Definition: internal.h:60
static void flush(AVCodecContext *avctx)
Definition: mpeg12dec.c:2872
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 2969 of file mpeg12dec.c.

AVCodec ff_ipu_decoder
Initial value:
= {
.name = "ipu",
.long_name = NULL_IF_CONFIG_SMALL("IPU Video"),
.priv_data_size = sizeof(IPUContext),
.close = ipu_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static av_cold int ipu_decode_init(AVCodecContext *avctx)
Definition: mpeg12dec.c:3092
static av_cold int ipu_decode_end(AVCodecContext *avctx)
Definition: mpeg12dec.c:3123
static int ipu_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mpeg12dec.c:2991
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:50

Definition at line 3132 of file mpeg12dec.c.