FFmpeg
 All Data Structures Namespaces 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)
 
static av_cold int sunrast_encode_close (AVCodecContext *avctx)
 

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 37 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 51 of file sunrastenc.c.

Referenced by sunrast_encode_frame().

static av_cold int sunrast_encode_init ( AVCodecContext avctx)
static

Definition at line 135 of file sunrastenc.c.

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

Definition at line 177 of file sunrastenc.c.

static av_cold int sunrast_encode_close ( AVCodecContext avctx)
static

Definition at line 201 of file sunrastenc.c.

Variable Documentation

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

Definition at line 207 of file sunrastenc.c.

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

Definition at line 212 of file sunrastenc.c.