FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
bmvvideo.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/common.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)
 

Variables

const AVCodec ff_bmv_video_decoder
 

Macro Definition Documentation

◆ SCREEN_WIDE

#define SCREEN_WIDE   640

Definition at line 43 of file bmvvideo.c.

◆ SCREEN_HIGH

#define SCREEN_HIGH   429

Definition at line 44 of file bmvvideo.c.

◆ NEXT_BYTE

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

Definition at line 54 of file bmvvideo.c.

Enumeration Type Documentation

◆ BMVFlags

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 29 of file bmvvideo.c.

Function Documentation

◆ decode_bmv_frame()

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

Definition at line 56 of file bmvvideo.c.

Referenced by decode_frame().

◆ decode_frame()

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

Definition at line 198 of file bmvvideo.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 271 of file bmvvideo.c.

Variable Documentation

◆ ff_bmv_video_decoder

const 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 = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 288 of file bmvvideo.c.

FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:41
init
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
Definition: bmvvideo.c:198
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: bmvvideo.c:271
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
BMVDecContext
Definition: bmvvideo.c:46
AV_CODEC_ID_BMV_VIDEO
@ AV_CODEC_ID_BMV_VIDEO
Definition: codec_id.h:203
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201