Libav
Macros | Functions | Variables
xwdenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "xwd.h"

Go to the source code of this file.

Macros

#define WINDOW_NAME   "lavcxwdenc"
 
#define WINDOW_NAME_SIZE   11
 

Functions

static av_cold int xwd_encode_init (AVCodecContext *avctx)
 
static int xwd_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
 
static av_cold int xwd_encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_xwd_encoder
 

Macro Definition Documentation

§ WINDOW_NAME

#define WINDOW_NAME   "lavcxwdenc"

Definition at line 30 of file xwdenc.c.

Referenced by xwd_encode_frame().

§ WINDOW_NAME_SIZE

#define WINDOW_NAME_SIZE   11

Definition at line 31 of file xwdenc.c.

Referenced by xwd_encode_frame().

Function Documentation

§ xwd_encode_init()

static av_cold int xwd_encode_init ( AVCodecContext avctx)
static

Definition at line 33 of file xwdenc.c.

§ xwd_encode_frame()

static int xwd_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame p,
int *  got_packet 
)
static

Definition at line 42 of file xwdenc.c.

§ xwd_encode_close()

static av_cold int xwd_encode_close ( AVCodecContext avctx)
static

Definition at line 216 of file xwdenc.c.

Variable Documentation

§ ff_xwd_encoder

AVCodec ff_xwd_encoder
Initial value:
= {
.name = "xwd",
.long_name = NULL_IF_CONFIG_SMALL("XWD (X Window Dump) image"),
.init = xwd_encode_init,
.encode2 = xwd_encode_frame,
.close = xwd_encode_close,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGRA,
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:67
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0 ...
Definition: pixfmt.h:118
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Definition: pixfmt.h:121
static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: xwdenc.c:42
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Definition: pixfmt.h:116
packed RGB 1:2:1, 8bpp, (msb)1B 2G 1R(lsb)
Definition: pixfmt.h:88
8 bit with PIX_FMT_RGB32 palette
Definition: pixfmt.h:76
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition: pixfmt.h:115
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:97
static av_cold int xwd_encode_init(AVCodecContext *avctx)
Definition: xwdenc.c:33
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:98
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:95
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:96
packed RGB 1:2:1, 8bpp, (msb)1R 2G 1B(lsb)
Definition: pixfmt.h:91
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:68
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
Definition: pixfmt.h:120
packed RGB 3:3:2, 8bpp, (msb)2B 3G 3R(lsb)
Definition: pixfmt.h:86
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), little-endian, most significant bit to 1 ...
Definition: pixfmt.h:123
static av_cold int xwd_encode_close(AVCodecContext *avctx)
Definition: xwdenc.c:216
packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0 ...
Definition: pixfmt.h:117
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:74
packed RGB 3:3:2, 8bpp, (msb)2R 3G 3B(lsb)
Definition: pixfmt.h:89
packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian, most significant bit to 1 ...
Definition: pixfmt.h:122
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63

Definition at line 223 of file xwdenc.c.