sgienc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "sgi.h"
#include "rle.h"

Go to the source code of this file.

Data Structures

struct  SgiContext
 

Macros

#define SGI_SINGLE_CHAN   2
 
#define SGI_MULTI_CHAN   3
 

Typedefs

typedef struct SgiContext SgiContext
 

Functions

static av_cold int encode_init (AVCodecContext *avctx)
 
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
 

Variables

AVCodec ff_sgi_encoder
 

Macro Definition Documentation

#define SGI_MULTI_CHAN   3

Definition at line 28 of file sgienc.c.

Referenced by encode_frame().

#define SGI_SINGLE_CHAN   2

Definition at line 27 of file sgienc.c.

Referenced by encode_frame().

Typedef Documentation

typedef struct SgiContext SgiContext

Function Documentation

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void data 
)
static

Definition at line 44 of file sgienc.c.

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 34 of file sgienc.c.

Variable Documentation

AVCodec ff_sgi_encoder
Initial value:
= {
.name = "sgi",
.id = CODEC_ID_SGI,
.priv_data_size = sizeof(SgiContext),
.encode = encode_frame,
.long_name= NULL_IF_CONFIG_SMALL("SGI image"),
}
struct SgiContext SgiContext
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 av_cold int encode_init(AVCodecContext *avctx)
Definition: sgienc.c:34
PixelFormat
Pixel format.
Definition: pixfmt.h:62
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:66
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:93
Y , 8bpp.
Definition: pixfmt.h:72
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
Definition: sgienc.c:44

Definition at line 162 of file sgienc.c.