FFmpeg
Data Structures | Functions | Variables
mdec.c File Reference
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "bswapdsp.h"
#include "codec_internal.h"
#include "idctdsp.h"
#include "mpeg12data.h"
#include "mpeg12dec.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  MDECContext
 

Functions

static int mdec_decode_block_intra (MDECContext *a, int16_t *block, int n)
 
static int decode_mb (MDECContext *a, int16_t block[6][64])
 
static void idct_put (MDECContext *a, AVFrame *frame, int mb_x, int mb_y)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_mdec_decoder
 

Detailed Description

Sony PlayStation MDEC (Motion DECoder) This is very similar to intra-only MPEG-1.

Definition in file mdec.c.

Function Documentation

◆ mdec_decode_block_intra()

static int mdec_decode_block_intra ( MDECContext a,
int16_t *  block,
int  n 
)
inlinestatic

Definition at line 62 of file mdec.c.

Referenced by decode_mb().

◆ decode_mb()

static int decode_mb ( MDECContext a,
int16_t  block[6][64] 
)
inlinestatic

Definition at line 132 of file mdec.c.

Referenced by decode_frame().

◆ idct_put()

static void idct_put ( MDECContext a,
AVFrame frame,
int  mb_x,
int  mb_y 
)
inlinestatic

Definition at line 149 of file mdec.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 169 of file mdec.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 211 of file mdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 241 of file mdec.c.

Variable Documentation

◆ ff_mdec_decoder

const FFCodec ff_mdec_decoder
Initial value:
= {
.p.name = "mdec",
CODEC_LONG_NAME("Sony PlayStation MDEC (Motion DECoder)"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MDECContext),
.close = decode_end,
}

Definition at line 251 of file mdec.c.

AV_CODEC_ID_MDEC
@ AV_CODEC_ID_MDEC
Definition: codec_id.h:89
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: mdec.c:211
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts_bsf.c:365
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
decode_end
static av_cold int decode_end(AVCodecContext *avctx)
Definition: mdec.c:241
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: mdec.c:169
MDECContext
Definition: mdec.c:41
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201