FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
pamenc.c File Reference
#include "avcodec.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int pam_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
 
static av_cold int pam_encode_init (AVCodecContext *avctx)
 
static av_cold int pam_encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_pam_encoder
 

Function Documentation

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

Definition at line 25 of file pamenc.c.

static av_cold int pam_encode_init ( AVCodecContext avctx)
static

Definition at line 130 of file pamenc.c.

static av_cold int pam_encode_close ( AVCodecContext avctx)
static

Definition at line 142 of file pamenc.c.

Variable Documentation

AVCodec ff_pam_encoder
Initial value:
= {
.name = "pam",
.long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),
.init = pam_encode_init,
.close = pam_encode_close,
.encode2 = pam_encode_frame,
.pix_fmts = (const enum AVPixelFormat[]){
},
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:65
packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is st...
Definition: pixfmt.h:259
static av_cold int pam_encode_init(AVCodecContext *avctx)
Definition: pamenc.c:130
16bit gray, 16bit alpha (big-endian)
Definition: pixfmt.h:234
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:95
alias for AV_PIX_FMT_YA8
Definition: pixfmt.h:146
static av_cold int pam_encode_close(AVCodecContext *avctx)
Definition: pamenc.c:142
Y , 16bpp, big-endian.
Definition: pixfmt.h:99
static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: pamenc.c:25
Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:73
Y , 8bpp.
Definition: pixfmt.h:71
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as big...
Definition: pixfmt.h:111
AVPixelFormat
Pixel format.
Definition: pixfmt.h:61

Definition at line 148 of file pamenc.c.