Electronic Arts Madcow Video Decoder. More...
#include "avcodec.h"#include "get_bits.h"#include "dsputil.h"#include "aandcttab.h"#include "mpeg12.h"#include "mpeg12data.h"#include "libavutil/imgutils.h"Go to the source code of this file.
Data Structures | |
| struct | MadContext |
Defines | |
| #define | EA_PREAMBLE_SIZE 8 |
| #define | MADk_TAG MKTAG('M', 'A', 'D', 'k') |
| #define | MADm_TAG MKTAG('M', 'A', 'D', 'm') |
| #define | MADe_TAG MKTAG('M', 'A', 'D', 'e') |
Typedefs | |
| typedef struct MadContext | MadContext |
Functions | |
| static void | bswap16_buf (uint16_t *dst, const uint16_t *src, int count) |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| static void | comp (unsigned char *dst, int dst_stride, unsigned char *src, int src_stride, int add) |
| static void | comp_block (MadContext *t, int mb_x, int mb_y, int j, int mv_x, int mv_y, int add) |
| static void | idct_put (MadContext *t, DCTELEM *block, int mb_x, int mb_y, int j) |
| static void | decode_block_intra (MadContext *t, DCTELEM *block) |
| static int | decode_motion (GetBitContext *gb) |
| static void | decode_mb (MadContext *t, int inter) |
| static void | calc_intra_matrix (MadContext *t, int qscale) |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_eamad_decoder |
Electronic Arts Madcow Video Decoder.
Definition in file eamad.c.
| #define MADe_TAG MKTAG('M', 'A', 'D', 'e') |
Definition at line 42 of file eamad.c.
Referenced by decode_frame().
| #define MADm_TAG MKTAG('M', 'A', 'D', 'm') |
Definition at line 41 of file eamad.c.
Referenced by decode_frame().
| typedef struct MadContext MadContext |
| static void bswap16_buf | ( | uint16_t * | dst, | |
| const uint16_t * | src, | |||
| int | count | |||
| ) | [static] |
Definition at line 53 of file eamad.c.
Referenced by decode_frame().
| static void calc_intra_matrix | ( | MadContext * | t, | |
| int | qscale | |||
| ) | [static] |
Definition at line 217 of file eamad.c.
Referenced by decode_frame().
| static void comp | ( | unsigned char * | dst, | |
| int | dst_stride, | |||
| unsigned char * | src, | |||
| int | src_stride, | |||
| int | add | |||
| ) | [inline, static] |
Definition at line 74 of file eamad.c.
Referenced by av_image_fill_max_pixsteps(), av_read_image_line(), av_write_image_line(), comp_block(), do_audio_out(), ff_interleave_compare_dts(), and find_c_packed_planar_out_funcs().
| static void comp_block | ( | MadContext * | t, | |
| int | mb_x, | |||
| int | mb_y, | |||
| int | j, | |||
| int | mv_x, | |||
| int | mv_y, | |||
| int | add | |||
| ) | [inline, static] |
Definition at line 83 of file eamad.c.
Referenced by decode_mb().
| static void decode_block_intra | ( | MadContext * | t, | |
| DCTELEM * | block | |||
| ) | [inline, static] |
Definition at line 116 of file eamad.c.
Referenced by decode_mb().
| static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static void decode_mb | ( | MadContext * | t, | |
| int | inter | |||
| ) | [static] |
Definition at line 187 of file eamad.c.
Referenced by decode_frame().
| static int decode_motion | ( | GetBitContext * | gb | ) | [static] |
Definition at line 176 of file eamad.c.
Referenced by decode_mb().
| static void idct_put | ( | MadContext * | t, | |
| DCTELEM * | block, | |||
| int | mb_x, | |||
| int | mb_y, | |||
| int | j | |||
| ) | [inline, static] |
Definition at line 101 of file eamad.c.
Referenced by decode_mb().
{
.name = "eamad",
.type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_MAD,
.priv_data_size = sizeof(MadContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video")
}