FFmpeg
Enumerations | Functions | Variables
qdrw.c File Reference
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"

Go to the source code of this file.

Enumerations

enum  QuickdrawOpcodes {
  CLIP = 0x0001, PACKBITSRECT = 0x0098, PACKBITSRGN, DIRECTBITSRECT,
  DIRECTBITSRGN, SHORTCOMMENT = 0x00A0, LONGCOMMENT, EOP = 0x00FF
}
 

Functions

static int parse_palette (AVCodecContext *avctx, GetByteContext *gbc, uint32_t *pal, int colors, int pixmap)
 
static int decode_rle_bpp2 (AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc)
 
static int decode_rle_bpp4 (AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc)
 
static int decode_rle16 (AVCodecContext *avctx, AVFrame *p, GetByteContext *gbc)
 
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, AVFrame *p, int *got_frame, AVPacket *avpkt)
 

Variables

const FFCodec 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

◆ QuickdrawOpcodes

Enumerator
CLIP 
PACKBITSRECT 
PACKBITSRGN 
DIRECTBITSRECT 
DIRECTBITSRGN 
SHORTCOMMENT 
LONGCOMMENT 
EOP 

Definition at line 36 of file qdrw.c.

Function Documentation

◆ parse_palette()

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

Definition at line 48 of file qdrw.c.

Referenced by decode_frame().

◆ decode_rle_bpp2()

static int decode_rle_bpp2 ( AVCodecContext avctx,
AVFrame p,
GetByteContext gbc 
)
static

Definition at line 75 of file qdrw.c.

Referenced by decode_frame().

◆ decode_rle_bpp4()

static int decode_rle_bpp4 ( AVCodecContext avctx,
AVFrame p,
GetByteContext gbc 
)
static

Definition at line 130 of file qdrw.c.

Referenced by decode_frame().

◆ decode_rle16()

static int decode_rle16 ( AVCodecContext avctx,
AVFrame p,
GetByteContext gbc 
)
static

Definition at line 174 of file qdrw.c.

Referenced by decode_frame().

◆ decode_rle()

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

Definition at line 217 of file qdrw.c.

Referenced by decode_frame().

◆ check_header()

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

Definition at line 268 of file qdrw.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 291 of file qdrw.c.

Variable Documentation

◆ ff_qdraw_decoder

const FFCodec ff_qdraw_decoder
Initial value:
= {
.p.name = "qdraw",
CODEC_LONG_NAME("Apple QuickDraw"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.capabilities = AV_CODEC_CAP_DR1,
}

Definition at line 516 of file qdrw.c.

decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Definition: qdrw.c:291
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:306
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:272
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AV_CODEC_ID_QDRAW
@ AV_CODEC_ID_QDRAW
Definition: codec_id.h:110
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201