FFmpeg
Loading...
Searching...
No Matches
wbmpenc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "encode.h"

Go to the source code of this file.

Functions

static void putv (uint8_t **bufp, unsigned int v)
 
static void writebits (uint8_t **bufp, const uint8_t *src, int width, int height, int linesize)
 
static int wbmp_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 

Variables

const FFCodec ff_wbmp_encoder
 

Function Documentation

◆ putv()

static void putv ( uint8_t ** bufp,
unsigned int v )
static

Definition at line 26 of file wbmpenc.c.

Referenced by wbmp_encode_frame().

◆ writebits()

static void writebits ( uint8_t ** bufp,
const uint8_t * src,
int width,
int height,
int linesize )
static

Definition at line 40 of file wbmpenc.c.

Referenced by wbmp_encode_frame().

◆ wbmp_encode_frame()

static int wbmp_encode_frame ( AVCodecContext * avctx,
AVPacket * pkt,
const AVFrame * frame,
int * got_packet )
static

Definition at line 50 of file wbmpenc.c.

Variable Documentation

◆ ff_wbmp_encoder

const FFCodec ff_wbmp_encoder
Initial value:
= {
.p.name = "wbmp",
CODEC_LONG_NAME("WBMP (Wireless Application Protocol Bitmap) image"),
.p.type = AVMEDIA_TYPE_VIDEO,
}
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition codec.h:147
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition codec.h:98
@ AV_CODEC_ID_WBMP
Definition codec_id.h:312
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
@ AV_PIX_FMT_MONOBLACK
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb.
Definition pixfmt.h:83
static int wbmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition wbmpenc.c:50

Definition at line 78 of file wbmpenc.c.