#include "avcodec.h"
#include "bytestream.h"
#include "libavutil/avassert.h"
Go to the source code of this file.
Data Structures | |
struct | BMVDecContext |
struct | BMVAudioDecContext |
Defines | |
#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 *data_size, AVPacket *pkt) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static av_cold int | decode_end (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 |
#define NEXT_BYTE | ( | v | ) | v = forward ? v + 1 : v - 1; |
#define SCREEN_HIGH 429 |
#define SCREEN_WIDE 640 |
enum BMVFlags |
static int bmv_aud_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | got_frame_ptr, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int bmv_aud_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_bmv_frame | ( | const uint8_t * | source, | |
int | src_len, | |||
uint8_t * | frame, | |||
int | frame_off | |||
) | [static] |
static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | pkt | |||
) | [static] |
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
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 301 of file bmv.c.
Referenced by bmv_aud_decode_frame().
Initial value:
{ .name = "bmv_audio", .type = AVMEDIA_TYPE_AUDIO, .id = CODEC_ID_BMV_AUDIO, .priv_data_size = sizeof(BMVAudioDecContext), .init = bmv_aud_decode_init, .decode = bmv_aud_decode_frame, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Discworld II BMV audio"), }
Initial value:
{ .name = "bmv_video", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_BMV_VIDEO, .priv_data_size = sizeof(BMVDecContext), .init = decode_init, .close = decode_end, .decode = decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Discworld II BMV video"), }