Libav
Data Structures | Macros | Enumerations | Functions | Variables
bmv.c File Reference
#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BMVDecContext
 

Macros

#define SCREEN_WIDE   640
 
#define SCREEN_HIGH   429
 
#define NEXT_BYTE(v)   v = forward ? v + 1 : v - 1;
 

Enumerations

enum  BMVFlags {
  BMV_NOP = 0, BMV_END, BMV_DELTA, BMV_INTRA,
  BMV_SCROLL = 0x04, BMV_PALETTE = 0x08, BMV_COMMAND = 0x10, BMV_AUDIO = 0x20,
  BMV_EXT = 0x40, BMV_PRINT = 0x80, BMV_NOP = 0, BMV_END,
  BMV_DELTA, BMV_INTRA, BMV_AUDIO = 0x20
}
 

Functions

static int decode_bmv_frame (const uint8_t *source, int src_len, uint8_t *frame, int frame_off)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int bmv_aud_decode_init (AVCodecContext *avctx)
 
static int bmv_aud_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

static const int bmv_aud_mults [16]
 
AVCodec ff_bmv_video_decoder
 
AVCodec ff_bmv_audio_decoder
 

Macro Definition Documentation

#define SCREEN_WIDE   640

Definition at line 41 of file bmv.c.

Referenced by decode_bmv_frame().

#define SCREEN_HIGH   429

Definition at line 42 of file bmv.c.

Referenced by decode_bmv_frame().

#define NEXT_BYTE (   v)    v = forward ? v + 1 : v - 1;

Definition at line 52 of file bmv.c.

Referenced by decode_bmv_frame().

Enumeration Type Documentation

enum BMVFlags
Enumerator
BMV_NOP 
BMV_END 
BMV_DELTA 
BMV_INTRA 
BMV_SCROLL 
BMV_PALETTE 
BMV_COMMAND 
BMV_AUDIO 
BMV_EXT 
BMV_PRINT 
BMV_NOP 
BMV_END 
BMV_DELTA 
BMV_INTRA 
BMV_AUDIO 

Definition at line 27 of file bmv.c.

Function Documentation

static int decode_bmv_frame ( const uint8_t source,
int  src_len,
uint8_t frame,
int  frame_off 
)
static

Definition at line 54 of file bmv.c.

Referenced by decode_frame().

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

Definition at line 196 of file bmv.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 271 of file bmv.c.

static av_cold int bmv_aud_decode_init ( AVCodecContext avctx)
static

Definition at line 287 of file bmv.c.

static int bmv_aud_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 296 of file bmv.c.

Variable Documentation

const int bmv_aud_mults[16]
static
Initial value:
= {
16512, 8256, 4128, 2064, 1032, 516, 258, 192, 129, 88, 64, 56, 48, 40, 36, 32
}

Definition at line 283 of file bmv.c.

Referenced by bmv_aud_decode_frame().

AVCodec ff_bmv_video_decoder
Initial value:
= {
.name = "bmv_video",
.long_name = NULL_IF_CONFIG_SMALL("Discworld II BMV video"),
.priv_data_size = sizeof(BMVDecContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
Definition: bmv.c:196
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:269
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:711
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:142
static av_cold int decode_init(AVCodecContext *avctx)
Definition: bmv.c:271
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:498

Definition at line 338 of file bmv.c.

AVCodec ff_bmv_audio_decoder
Initial value:
= {
.name = "bmv_audio",
.long_name = NULL_IF_CONFIG_SMALL("Discworld II BMV audio"),
.capabilities = CODEC_CAP_DR1,
}
static int bmv_aud_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: bmv.c:296
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:711
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:142
static av_cold int bmv_aud_decode_init(AVCodecContext *avctx)
Definition: bmv.c:287

Definition at line 349 of file bmv.c.