62#if !defined(_O_THEORA_CODEC_H_)
63# define _O_THEORA_CODEC_H_ (1)
66#if defined(__cplusplus)
77#define TH_EINVAL (-10)
79#define TH_EBADHEADER (-20)
81#define TH_ENOTFORMAT (-21)
83#define TH_EVERSION (-22)
87#define TH_EBADPACKET (-24)
91#define TH_DUPFRAME (1)
411 ogg_uint16_t dc_scale[64];
413 ogg_uint16_t ac_scale[64];
415 unsigned char loop_filter_limits[64];
423#define TH_NHUFFMAN_TABLES (80)
425#define TH_NDCT_TOKENS (32)
587#if defined(__cplusplus)
int th_packet_isheader(ogg_packet *_op)
Determines whether a Theora packet is a header or not.
void th_comment_add(th_comment *_tc, char *_comment)
Add a comment to an initialized th_comment structure.
th_img_plane th_ycbcr_buffer[3]
A complete image buffer for an uncompressed frame.
Definition codec.h:168
void th_info_init(th_info *_info)
Initializes a th_info structure.
th_colorspace
The currently defined color space tags.
Definition codec.h:98
@ TH_CS_ITU_REC_470BG
A color space designed for PAL/SECAM content.
Definition codec.h:105
@ TH_CS_NSPACES
The total number of currently defined color spaces.
Definition codec.h:107
@ TH_CS_ITU_REC_470M
A color space designed for NTSC content.
Definition codec.h:103
@ TH_CS_UNSPECIFIED
The color space was not specified at the encoder.
Definition codec.h:101
const char * th_version_string(void)
Retrieves a human-readable string to identify the library vendor and version.
th_pixel_fmt
The currently defined pixel format tags.
Definition codec.h:114
@ TH_PF_422
Chroma decimation by 2 in the X direction (4:2:2).
Definition codec.h:124
@ TH_PF_444
No chroma decimation (4:4:4).
Definition codec.h:127
@ TH_PF_NFORMATS
The total number of currently defined pixel formats.
Definition codec.h:129
@ TH_PF_RSVD
Currently reserved.
Definition codec.h:120
@ TH_PF_420
Chroma decimation by 2 in both the X and Y directions (4:2:0).
Definition codec.h:118
char * th_comment_query(th_comment *_tc, char *_tag, int _count)
Look up a comment value by its tag.
unsigned char th_quant_base[64]
A single base matrix.
Definition codec.h:338
void th_comment_add_tag(th_comment *_tc, char *_tag, char *_val)
Add a comment to an initialized th_comment structure.
void th_comment_init(th_comment *_tc)
Initialize a th_comment structure.
double th_granule_time(void *_encdec, ogg_int64_t _granpos)
Converts a granule position to an absolute time in seconds.
int th_comment_query_count(th_comment *_tc, char *_tag)
Look up the number of instances of a tag.
ogg_int64_t th_granule_frame(void *_encdec, ogg_int64_t _granpos)
Converts a granule position to an absolute frame index, starting at 0.
struct th_comment th_comment
The comment information.
void th_info_clear(th_info *_info)
Clears a th_info structure.