FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
qdrw.c File Reference

Apple QuickDraw codec. More...

#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Enumerations

enum  QuickdrawOpcodes {
  PACKBITSRECT = 0x0098, PACKBITSRGN, DIRECTBITSRECT, DIRECTBITSRGN,
  EOP = 0x00FF
}
 

Functions

static int parse_palette (AVCodecContext *avctx, GetByteContext *gbc, uint32_t *pal, int colors)
 
static int decode_rle (AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc, int step)
 
static int check_header (const char *buf, int buf_size)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 

Variables

AVCodec ff_qdraw_decoder
 

Detailed Description

Apple QuickDraw codec.

https://developer.apple.com/legacy/library/documentation/mac/QuickDraw/QuickDraw-461.html

Definition in file qdrw.c.

Enumeration Type Documentation

Enumerator
PACKBITSRECT 
PACKBITSRGN 
DIRECTBITSRECT 
DIRECTBITSRGN 
EOP 

Definition at line 35 of file qdrw.c.

Function Documentation

static int parse_palette ( AVCodecContext avctx,
GetByteContext gbc,
uint32_t *  pal,
int  colors 
)
static

Definition at line 44 of file qdrw.c.

Referenced by decode_frame().

static int decode_rle ( AVCodecContext avctx,
AVFrame p,
GetByteContext gbc,
int  step 
)
static

Definition at line 69 of file qdrw.c.

Referenced by decode_frame().

static int check_header ( const char *  buf,
int  buf_size 
)
static

Definition at line 121 of file qdrw.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 144 of file qdrw.c.

Variable Documentation

AVCodec ff_qdraw_decoder
Initial value:
= {
.name = "qdraw",
.long_name = NULL_IF_CONFIG_SMALL("Apple QuickDraw"),
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
}
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:789
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: qdrw.c:144

Definition at line 336 of file qdrw.c.