Logo Search packages:      
Sourcecode: libtheora version File versions  Download package

theoradec.h File Reference

Detailed Description

The libtheoradec C decoding API.

Definition in file theoradec.h.

#include <stddef.h>
#include <ogg/ogg.h>
#include "codec.h"

Go to the source code of this file.


struct  th_stripe_callback


#define _O_THEORA_THEORADEC_H_   (1)
th_decode_ctl() codes
These are the available request codes for th_decode_ctl(). By convention, these are odd, to distinguish them from the encoder control codes. Keep any experimental or vendor-specific values above 0x8000.



typedef void(* th_stripe_decoded_func )(void *_ctx, th_ycbcr_buffer _buf, int _yfrag0, int _yfrag_end)
Decoder state
The following data structures are opaque, and their contents are not publicly defined by this API. Referring to their internals directly is unsupported, and may break without warning.

typedef struct th_dec_ctx th_dec_ctx
typedef struct th_setup_info th_setup_info


Functions for decoding
You must link to libtheoradec if you use any of the functions in this section.

The functions are listed in the order they are used in a typical decode. The basic steps are:

th_dec_ctxth_decode_alloc (const th_info *_info, const th_setup_info *_setup)
int th_decode_ctl (th_dec_ctx *_dec, int _req, void *_buf, size_t _buf_sz)
void th_decode_free (th_dec_ctx *_dec)
int th_decode_headerin (th_info *_info, th_comment *_tc, th_setup_info **_setup, ogg_packet *_op)
int th_decode_packetin (th_dec_ctx *_dec, const ogg_packet *_op, ogg_int64_t *_granpos)
int th_decode_ycbcr_out (th_dec_ctx *_dec, th_ycbcr_buffer _ycbcr)
void th_setup_free (th_setup_info *_setup)

Generated by  Doxygen 1.6.0   Back to index