pamenc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "pnm.h"

Go to the source code of this file.

Functions

static int pam_encode_frame (AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data)
 

Variables

AVCodec ff_pam_encoder
 

Function Documentation

static int pam_encode_frame ( AVCodecContext avctx,
unsigned char *  outbuf,
int  buf_size,
void data 
)
static

Definition at line 27 of file pamenc.c.

Variable Documentation

AVCodec ff_pam_encoder
Initial value:
= {
.name = "pam",
.id = CODEC_ID_PAM,
.priv_data_size = sizeof(PNMContext),
.encode = pam_encode_frame,
.long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),
}
struct PNMContext PNMContext
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:73
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static int pam_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data)
Definition: pamenc.c:27
PixelFormat
Pixel format.
Definition: pixfmt.h:62
av_cold int ff_pnm_init(AVCodecContext *avctx)
Definition: pnm.c:186
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:66
#define PIX_FMT_RGB32
Definition: pixfmt.h:169
Y , 8bpp.
Definition: pixfmt.h:72

Definition at line 111 of file pamenc.c.