27#if !defined(_daala_daaladec_H)
28# define _daala_daaladec_H (1)
32# if defined(__cplusplus)
35# if OD_GNUC_PREREQ(4, 0, 0)
36# pragma GCC visibility push(default)
39#define OD_DECCTL_SET_BSIZE_BUFFER (7001)
40#define OD_DECCTL_SET_FLAGS_BUFFER (7003)
41#define OD_DECCTL_SET_MV_BUFFER (7005)
46#define OD_DECCTL_SET_MC_IMG (7007)
47#define OD_DECCTL_GET_ACCOUNTING (7009)
48#define OD_DECCTL_SET_ACCOUNTING_ENABLED (7011)
51#define OD_ACCT_FRAME (10)
52#define OD_ACCT_MV (11)
75#define MAX_SYMBOL_TYPES (256)
79 char *(str[MAX_SYMBOL_TYPES]);
181 int req,
void *buf,
size_t buf_sz);
190 const ogg_packet *op);
204# if OD_GNUC_PREREQ(4, 0, 0)
205# pragma GCC visibility pop
207# if defined(__cplusplus)
The shared libdaala C API.
int daala_decode_ctl(daala_dec_ctx *dec, int req, void *buf, size_t buf_sz)
Decoder control function.
int daala_decode_packet_in(daala_dec_ctx *dec, od_img *img, const ogg_packet *op)
Retrieves decoded video data frames.
int daala_decode_header_in(daala_info *info, daala_comment *dc, daala_setup_info **ds, const ogg_packet *op)
Parses the header packets from an Ogg Daala stream.
void daala_decode_free(daala_dec_ctx *dec)
Frees an allocated decoder instance.
struct daala_setup_info daala_setup_info
Setup information.
Definition daaladec.h:106
void daala_setup_free(daala_setup_info *setup)
Releases all storage used for the decoder setup information.
daala_dec_ctx * daala_decode_alloc(const daala_info *info, const daala_setup_info *setup)
Allocates a decoder instance.
struct daala_dec_ctx daala_dec_ctx
The decoder context.
Definition daaladec.h:100
Configuration parameters for a codec instance.
Definition codec.h:180
Dictionary for translating strings into id.
Definition daaladec.h:78
od_acct_symbol * syms
All recorded symbols decoded.
Definition daaladec.h:85
int nb_syms
Number of symbols actually recorded.
Definition daaladec.h:87
od_accounting_dict dict
Dictionary for translating strings into id.
Definition daaladec.h:89
unsigned char bits_q3
Number of bits in units of 1/8 bit.
Definition daaladec.h:70
int16_t x
x position in units of 4x4 luma blocks for layers 0-3, or vx for OD_ACCT_MV.
Definition daaladec.h:57
unsigned char level
For layers 0-3, 0 means 4x4, 1, means 8x8, and so on.
Definition daaladec.h:66
unsigned char id
Integer id in the dictionary.
Definition daaladec.h:68
unsigned char layer
layers (0..NPLANES) for color plane coefficients, or one of OD_ACCT_FRAME and OD_ACCT_MV.
Definition daaladec.h:63
int16_t y
y position in units of 4x4 luma blocks for layers 0-3, or vy for OD_ACCT_MV.
Definition daaladec.h:60
Representation of an image or video frame.
Definition codec.h:162