libavcodec/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.

Data Structures

struct  SgiContext

Defines

#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)

Variables

AVCodec ff_sgi_encoder


Define Documentation

#define SGI_MULTI_CHAN   3

Definition at line 29 of file sgienc.c.

Referenced by encode_frame().

#define SGI_SINGLE_CHAN   2

Definition at line 28 of file sgienc.c.

Referenced by encode_frame().


Function Documentation

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

Definition at line 50 of file sgienc.c.

static av_cold int encode_init ( AVCodecContext avctx  )  [static]

Definition at line 35 of file sgienc.c.


Variable Documentation

Initial value:

 {
    .name           = "sgi",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_SGI,
    .priv_data_size = sizeof(SgiContext),
    .init           = encode_init,
    .encode2        = encode_frame,
    .pix_fmts       = (const enum PixelFormat[]){
        PIX_FMT_RGB24, PIX_FMT_RGBA,
        PIX_FMT_RGB48LE, PIX_FMT_RGB48BE,
        PIX_FMT_RGBA64LE, PIX_FMT_RGBA64BE,
        PIX_FMT_GRAY16LE, PIX_FMT_GRAY16BE,
        PIX_FMT_GRAY8, PIX_FMT_NONE
    },
    .long_name      = NULL_IF_CONFIG_SMALL("SGI image"),
}

Definition at line 213 of file sgienc.c.


Generated on Fri Oct 26 02:47:58 2012 for FFmpeg by  doxygen 1.5.8