FFmpeg
|
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "bytestream.h"
Go to the source code of this file.
Data Structures | |
struct | VmdVideoContext |
Macros | |
#define | VMD_HEADER_SIZE 0x330 |
#define | PALETTE_COUNT 256 |
#define | QUEUE_SIZE 0x1000 |
#define | QUEUE_MASK 0x0FFF |
Functions | |
static int | lz_unpack (const unsigned char *src, int src_len, unsigned char *dest, int dest_len) |
static int | rle_unpack (const unsigned char *src, unsigned char *dest, int src_count, int src_size, int dest_len) |
static int | vmd_decode (VmdVideoContext *s, AVFrame *frame) |
static av_cold int | vmdvideo_decode_end (AVCodecContext *avctx) |
static av_cold int | vmdvideo_decode_init (AVCodecContext *avctx) |
static int | vmdvideo_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
Variables | |
const FFCodec | ff_vmdvideo_decoder |
Sierra VMD video decoder by Vladimir "VAG" Gneushev (vagsoft at mail.ru) for more information on the Sierra VMD format, visit: http://www.pcisys.net/~melanson/codecs/
The video decoder outputs PAL8 colorspace data. The decoder expects a 0x330-byte VMD file header to be transmitted via extradata during codec initialization. Each encoded frame that is sent to this decoder is expected to be prepended with the appropriate 16-byte frame information record from the VMD file.
Definition in file vmdvideo.c.
#define VMD_HEADER_SIZE 0x330 |
Definition at line 46 of file vmdvideo.c.
#define PALETTE_COUNT 256 |
Definition at line 47 of file vmdvideo.c.
#define QUEUE_SIZE 0x1000 |
Definition at line 64 of file vmdvideo.c.
#define QUEUE_MASK 0x0FFF |
Definition at line 65 of file vmdvideo.c.
|
static |
Definition at line 67 of file vmdvideo.c.
Referenced by vmd_decode().
|
static |
Definition at line 140 of file vmdvideo.c.
Referenced by vmd_decode().
|
static |
Definition at line 184 of file vmdvideo.c.
Referenced by vmdvideo_decode_frame().
|
static |
Definition at line 376 of file vmdvideo.c.
|
static |
Definition at line 387 of file vmdvideo.c.
|
static |
Definition at line 433 of file vmdvideo.c.
const FFCodec ff_vmdvideo_decoder |
Definition at line 466 of file vmdvideo.c.