FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
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
 

Macros

#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
 

Macro Definition Documentation

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

Function Documentation

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().

static av_cold int sunrast_encode_init ( AVCodecContext avctx)
static

Definition at line 136 of file sunrastenc.c.

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.

Variable Documentation

const AVCodecDefault sunrast_defaults[]
static
Initial value:
= {
{ "coder", "rle" },
{ NULL },
}

Definition at line 205 of file sunrastenc.c.

AVCodec ff_sunrast_encoder
Initial value:
= {
.name = "sunrast",
.priv_data_size = sizeof(SUNRASTContext),
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24,
.long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
}

Definition at line 210 of file sunrastenc.c.