libavcodec/sunrastenc.c File Reference

#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "sunrast.h"

Go to the source code of this file.

Data Structures

struct  SUNRASTContext

Defines

#define GET_VALUE   y >= avctx->height ? 0 : x >= len ? ptr[len-1] : ptr[x]

Functions

static void sunrast_image_write_header (AVCodecContext *avctx)
static void sunrast_image_write_image (AVCodecContext *avctx, const uint8_t *pixels, const uint32_t *palette_data, int linesize)
static av_cold int sunrast_encode_init (AVCodecContext *avctx)
static int sunrast_encode_frame (AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)

Variables

static const AVCodecDefault sunrast_defaults []
AVCodec ff_sunrast_encoder


Define Documentation

#define GET_VALUE   y >= avctx->height ? 0 : x >= len ? ptr[len-1] : ptr[x]


Function Documentation

static int sunrast_encode_frame ( AVCodecContext avctx,
AVPacket avpkt,
const AVFrame frame,
int *  got_packet_ptr 
) [static]

Definition at line 181 of file sunrastenc.c.

static av_cold int sunrast_encode_init ( AVCodecContext avctx  )  [static]

Definition at line 136 of file sunrastenc.c.

static void sunrast_image_write_header ( AVCodecContext avctx  )  [static]

Definition at line 38 of file sunrastenc.c.

Referenced by sunrast_encode_frame().

static void sunrast_image_write_image ( AVCodecContext avctx,
const uint8_t pixels,
const uint32_t *  palette_data,
int  linesize 
) [static]

Definition at line 52 of file sunrastenc.c.

Referenced by sunrast_encode_frame().


Variable Documentation

Initial value:

 {
    .name           = "sunrast",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_SUNRAST,
    .priv_data_size = sizeof(SUNRASTContext),
    .init           = sunrast_encode_init,
    .encode2        = sunrast_encode_frame,
    .defaults       = sunrast_defaults,
    .pix_fmts       = (const enum PixelFormat[]){ PIX_FMT_BGR24,
                                                  PIX_FMT_PAL8,
                                                  PIX_FMT_GRAY8,
                                                  PIX_FMT_MONOWHITE,
                                                  PIX_FMT_NONE },
    .long_name      = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
}

Definition at line 210 of file sunrastenc.c.

const AVCodecDefault sunrast_defaults[] [static]

Initial value:

 {
     { "coder", "rle" },
     { NULL },
}

Definition at line 205 of file sunrastenc.c.


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