FFmpeg
Loading...
Searching...
No Matches
bmvvideo.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.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)
 

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
}
 

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, AVFrame *frame, int *got_frame, AVPacket *pkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 

Variables

const FFCodec ff_bmv_video_decoder
 

Macro Definition Documentation

◆ SCREEN_WIDE

#define SCREEN_WIDE   640

Definition at line 44 of file bmvvideo.c.

Referenced by decode_bmv_frame(), and decode_init().

◆ SCREEN_HIGH

#define SCREEN_HIGH   429

Definition at line 45 of file bmvvideo.c.

Referenced by decode_bmv_frame(), and decode_init().

◆ NEXT_BYTE

#define NEXT_BYTE ( v)
Value:
(v) = forward ? (v) + 1 : (v) - 1;
static int forward(AudioFWTDNContext *s, const double *in, int in_length, double **out, int *out_length, int ch, uint64_t sn)
Definition af_afwtdn.c:620

Definition at line 55 of file bmvvideo.c.

Referenced by decode_bmv_frame().

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 

Definition at line 30 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 57 of file bmvvideo.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext * avctx,
AVFrame * frame,
int * got_frame,
AVPacket * pkt )
static

Definition at line 199 of file bmvvideo.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext * avctx)
static

Definition at line 270 of file bmvvideo.c.

Variable Documentation

◆ ff_bmv_video_decoder

const FFCodec ff_bmv_video_decoder
Initial value:
= {
.p.name = "bmv_video",
CODEC_LONG_NAME("Discworld II BMV video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(BMVDecContext),
.p.capabilities = AV_CODEC_CAP_DR1,
}
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
@ AV_CODEC_ID_BMV_VIDEO
Definition codec_id.h:204
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
static av_cold int decode_init(AVCodecContext *avctx)
Definition 4xm.c:998
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
Definition 4xm.c:837

Definition at line 287 of file bmvvideo.c.