FFmpeg
Data Structures | Functions | Variables
bfi.c File Reference

Brute Force & Ignorance (.bfi) video decoder. More...

#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  BFIContext
 

Functions

static av_cold int bfi_decode_init (AVCodecContext *avctx)
 
static int bfi_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
 
static av_cold int bfi_decode_close (AVCodecContext *avctx)
 

Variables

const FFCodec ff_bfi_decoder
 

Detailed Description

Brute Force & Ignorance (.bfi) video decoder.

Author
Sisir Koppaka ( sisir.koppaka at gmail dot com )
See also
http://wiki.multimedia.cx/index.php?title=BFI

Definition in file bfi.c.

Function Documentation

◆ bfi_decode_init()

static av_cold int bfi_decode_init ( AVCodecContext avctx)
static

Definition at line 41 of file bfi.c.

◆ bfi_decode_frame()

static int bfi_decode_frame ( AVCodecContext avctx,
AVFrame frame,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 51 of file bfi.c.

◆ bfi_decode_close()

static av_cold int bfi_decode_close ( AVCodecContext avctx)
static

Definition at line 179 of file bfi.c.

Variable Documentation

◆ ff_bfi_decoder

const FFCodec ff_bfi_decoder
Initial value:
= {
.p.name = "bfi",
CODEC_LONG_NAME("Brute Force & Ignorance"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_BFI,
.priv_data_size = sizeof(BFIContext),
.close = bfi_decode_close,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 186 of file bfi.c.

bfi_decode_close
static av_cold int bfi_decode_close(AVCodecContext *avctx)
Definition: bfi.c:179
BFIContext
Definition: bfi.c:35
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:287
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:365
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
bfi_decode_init
static av_cold int bfi_decode_init(AVCodecContext *avctx)
Definition: bfi.c:41
AV_CODEC_ID_BFI
@ AV_CODEC_ID_BFI
Definition: codec_id.h:169
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
bfi_decode_frame
static int bfi_decode_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt)
Definition: bfi.c:51