FFmpeg
|
mdec.c File Reference
Sony PlayStation MDEC (Motion DECoder) This is very similar to intra-only MPEG-1. More...
Include dependency graph for mdec.c:
Go to the source code of this file.
Data Structures | |
struct | MDECContext |
Typedefs | |
typedef struct MDECContext | 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.
Typedef Documentation
typedef struct MDECContext MDECContext |
Function Documentation
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
Definition at line 121 of file mdec.c.
Referenced by decode_frame().
|
inlinestatic |
Definition at line 138 of file mdec.c.
Referenced by decode_frame().
|
inlinestatic |
Definition at line 54 of file mdec.c.
Referenced by decode_mb().
Variable Documentation
AVCodec ff_mdec_decoder |
Initial value:
= {
.name = "mdec",
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_MDEC,
.priv_data_size = sizeof(MDECContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy)
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mdec.c:158
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: libavcodec/avcodec.h:743
struct MDECContext MDECContext
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
#define ONLY_IF_THREADS_ENABLED(x)
Define a function with only the non-default version specified.
Definition: libavutil/internal.h:162
Definition: libavcodec/avcodec.h:140
static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
Definition: mdec.c:224
#define CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: libavcodec/avcodec.h:810
Definition: avutil.h:143
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868
Generated on Mon Nov 18 2024 06:52:07 for FFmpeg by 1.8.11