Logo Search packages:      
Sourcecode: libtheora version File versions

codec.h File Reference


Detailed Description

The shared libtheoradec and libtheoraenc C API. You don't need to include this directly.

Definition in file codec.h.

#include <ogg/ogg.h>

Go to the source code of this file.

Classes

struct  th_comment
struct  th_huff_code
struct  th_img_plane
struct  th_info
struct  th_quant_info
struct  th_quant_ranges

Defines

#define _O_THEORA_CODEC_H_   (1)
#define TH_NDCT_TOKENS   (32)
#define TH_NHUFFMAN_TABLES   (80)
Return codes
#define TH_DUPFRAME   (1)
#define TH_EBADHEADER   (-20)
#define TH_EBADPACKET   (-24)
#define TH_EFAULT   (-1)
#define TH_EIMPL   (-23)
#define TH_EINVAL   (-10)
#define TH_ENOTFORMAT   (-21)
#define TH_EVERSION   (-22)

Typedefs

typedef unsigned char th_quant_base [64]
typedef th_img_plane th_ycbcr_buffer [3]

Enumerations

enum  th_colorspace { TH_CS_UNSPECIFIED, TH_CS_ITU_REC_470M, TH_CS_ITU_REC_470BG, TH_CS_NSPACES }
enum  th_pixel_fmt {
  TH_PF_420, TH_PF_RSVD, TH_PF_422, TH_PF_444,
  TH_PF_NFORMATS
}

Functions

Functions for manipulating header data
void th_comment_add (th_comment *_tc, char *_comment)
void th_comment_add_tag (th_comment *_tc, char *_tag, char *_val)
void th_comment_clear (th_comment *_tc)
void th_comment_init (th_comment *_tc)
char * th_comment_query (th_comment *_tc, char *_tag, int _count)
int th_comment_query_count (th_comment *_tc, char *_tag)
void th_info_clear (th_info *_info)
void th_info_init (th_info *_info)
Basic shared functions
ogg_int64_t th_granule_frame (void *_encdec, ogg_int64_t _granpos)
double th_granule_time (void *_encdec, ogg_int64_t _granpos)
int th_packet_isheader (ogg_packet *_op)
int th_packet_iskeyframe (ogg_packet *_op)
ogg_uint32_t th_version_number (void)
const char * th_version_string (void)


Generated by  Doxygen 1.6.0   Back to index