sunrast.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/imgutils.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  SUNRASTContext
 

Macros

#define RT_OLD   0
 
#define RT_STANDARD   1
 
#define RT_BYTE_ENCODED   2
 
#define RT_FORMAT_RGB   3
 
#define RT_FORMAT_TIFF   4
 
#define RT_FORMAT_IFF   5
 

Typedefs

typedef struct SUNRASTContext SUNRASTContext
 

Functions

static av_cold int sunrast_init (AVCodecContext *avctx)
 
static int sunrast_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 
static av_cold int sunrast_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_sunrast_decoder
 

Macro Definition Documentation

#define RT_BYTE_ENCODED   2

Definition at line 28 of file sunrast.c.

Referenced by sunrast_decode_frame().

#define RT_FORMAT_IFF   5

Definition at line 31 of file sunrast.c.

Referenced by sunrast_decode_frame().

#define RT_FORMAT_RGB   3

Definition at line 29 of file sunrast.c.

Referenced by sunrast_decode_frame().

#define RT_FORMAT_TIFF   4

Definition at line 30 of file sunrast.c.

Referenced by sunrast_decode_frame().

#define RT_OLD   0

Definition at line 26 of file sunrast.c.

#define RT_STANDARD   1

Definition at line 27 of file sunrast.c.

Typedef Documentation

Function Documentation

static int sunrast_decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 46 of file sunrast.c.

static av_cold int sunrast_end ( AVCodecContext avctx)
static

Definition at line 192 of file sunrast.c.

static av_cold int sunrast_init ( AVCodecContext avctx)
static

Definition at line 37 of file sunrast.c.

Variable Documentation

AVCodec ff_sunrast_decoder
Initial value:
= {
.name = "sunrast",
.priv_data_size = sizeof(SUNRASTContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"),
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:228
struct SUNRASTContext SUNRASTContext
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:719
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static int sunrast_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
Definition: sunrast.c:46
static av_cold int sunrast_end(AVCodecContext *avctx)
Definition: sunrast.c:192
static av_cold int sunrast_init(AVCodecContext *avctx)
Definition: sunrast.c:37
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327

Definition at line 201 of file sunrast.c.