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


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


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

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 

Definition at line 51 of file sunrastenc.c.

Referenced by sunrast_encode_frame().

static av_cold int sunrast_encode_init ( AVCodecContext avctx)

Definition at line 135 of file sunrastenc.c.

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

Definition at line 178 of file sunrastenc.c.

Variable Documentation

const AVCodecDefault sunrast_defaults[]
Initial value:
= {
{ "coder", "rle" },
{ NULL },
#define NULL
Definition: coverity.c:32

Definition at line 202 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),
static const AVCodecDefault sunrast_defaults[]
Definition: sunrastenc.c:202
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int sunrast_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr)
Definition: sunrastenc.c:178
8 bit with AV_PIX_FMT_RGB32 palette
Definition: pixfmt.h:74
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:66
static av_cold int sunrast_encode_init(AVCodecContext *avctx)
Definition: sunrastenc.c:135
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:209
Y , 8bpp.
Definition: pixfmt.h:71
Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb...
Definition: pixfmt.h:72
static const AVCodecDefault defaults[]
Definition: dcaenc.c:954
Pixel format.
Definition: pixfmt.h:61

Definition at line 207 of file sunrastenc.c.