FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
mdec.c File Reference

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

#include "avcodec.h"
#include "blockdsp.h"
#include "bswapdsp.h"
#include "idctdsp.h"
#include "mpegvideo.h"
#include "mpeg12.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, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_init_thread_copy (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

AVCodec 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

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

Definition at line 59 of file mdec.c.

Referenced by decode_mb().

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

Definition at line 126 of file mdec.c.

Referenced by decode_frame().

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

Definition at line 143 of file mdec.c.

Referenced by decode_frame().

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

Definition at line 163 of file mdec.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 207 of file mdec.c.

static av_cold int decode_init_thread_copy ( AVCodecContext avctx)
static

Definition at line 231 of file mdec.c.

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 240 of file mdec.c.

Variable Documentation

AVCodec ff_mdec_decoder
Initial value:
= {
.name = "mdec",
.long_name = NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"),
.priv_data_size = sizeof(MDECContext),
}

Definition at line 250 of file mdec.c.