FFmpeg
Functions | Variables
wbmpdec.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "thread.h"

Go to the source code of this file.

Functions

static unsigned int getv (GetByteContext *gb)
 
static void readbits (uint8_t *dst, int width, int height, int linesize, const uint8_t *src, int size)
 
static int wbmp_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec ff_wbmp_decoder
 

Function Documentation

◆ getv()

static unsigned int getv ( GetByteContext gb)
static

Definition at line 27 of file wbmpdec.c.

Referenced by wbmp_decode_frame().

◆ readbits()

static void readbits ( uint8_t *  dst,
int  width,
int  height,
int  linesize,
const uint8_t *  src,
int  size 
)
static

Definition at line 39 of file wbmpdec.c.

Referenced by wbmp_decode_frame().

◆ wbmp_decode_frame()

static int wbmp_decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 50 of file wbmpdec.c.

Variable Documentation

◆ ff_wbmp_decoder

const FFCodec ff_wbmp_decoder
Initial value:
= {
.p.name = "wbmp",
CODEC_LONG_NAME("WBMP (Wireless Application Protocol Bitmap) image"),
.p.type = AVMEDIA_TYPE_VIDEO,
}

Definition at line 85 of file wbmpdec.c.

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
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:110
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
wbmp_decode_frame
static int wbmp_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: wbmpdec.c:50
AV_CODEC_ID_WBMP
@ AV_CODEC_ID_WBMP
Definition: codec_id.h:317
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201