Libav
Macros | Functions | Variables
sgienc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "sgi.h"
#include "rle.h"

Go to the source code of this file.

Macros

#define SGI_SINGLE_CHAN   2
 
#define SGI_MULTI_CHAN   3
 

Functions

static av_cold int encode_init (AVCodecContext *avctx)
 
static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 
static av_cold int encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_sgi_encoder
 

Macro Definition Documentation

§ SGI_SINGLE_CHAN

#define SGI_SINGLE_CHAN   2

Definition at line 28 of file sgienc.c.

Referenced by encode_frame().

§ SGI_MULTI_CHAN

#define SGI_MULTI_CHAN   3

Definition at line 29 of file sgienc.c.

Referenced by encode_frame().

Function Documentation

§ encode_init()

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 31 of file sgienc.c.

§ encode_frame()

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 
)
static

Definition at line 46 of file sgienc.c.

§ encode_close()

static av_cold int encode_close ( AVCodecContext avctx)
static

Definition at line 208 of file sgienc.c.

Variable Documentation

§ ff_sgi_encoder

AVCodec ff_sgi_encoder
Initial value:
= {
.name = "sgi",
.long_name = NULL_IF_CONFIG_SMALL("SGI image"),
.init = encode_init,
.encode2 = encode_frame,
.close = encode_close,
.pix_fmts = (const enum AVPixelFormat[]) {
},
}
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:67
packed RGB 16:16:16, 48bpp, 16R, 16G, 16B, the 2-byte value for each R/G/B component is stored as lit...
Definition: pixfmt.h:113
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:197
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
Definition: sgienc.c:46
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:96
static av_cold int encode_init(AVCodecContext *avctx)
Definition: sgienc.c:31
static av_cold int encode_close(AVCodecContext *avctx)
Definition: sgienc.c:208
Y , 16bpp, big-endian.
Definition: pixfmt.h:100
Y , 8bpp.
Definition: pixfmt.h:73
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:112
Y , 16bpp, little-endian.
Definition: pixfmt.h:101
AVPixelFormat
Pixel format.
Definition: pixfmt.h:63
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:198

Definition at line 214 of file sgienc.c.