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

Go to the source code of this file.

Functions

static int pam_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
 

Variables

AVCodec ff_pam_encoder
 

Function Documentation

static int pam_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pict,
int *  got_packet 
)
static

Definition at line 28 of file pamenc.c.

Variable Documentation

AVCodec ff_pam_encoder
Initial value:
= {
.name = "pam",
.priv_data_size = sizeof(PNMContext),
.encode2 = pam_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
},
.long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),
}
struct PNMContext PNMContext
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:67
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:335
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:88
static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet)
Definition: pamenc.c:28
Y , 8bpp.
Definition: pixfmt.h:73
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:74
av_cold int ff_pnm_init(AVCodecContext *avctx)
Definition: pnm.c:191
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63

Definition at line 117 of file pamenc.c.