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

Classes | Defines | Typedefs

theoradec.h File Reference

#include <ogg/ogg.h>
#include "codec.h"
Include dependency graph for theoradec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  th_stripe_callback

Defines

#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.

#define TH_DECCTL_GET_PPLEVEL_MAX   (1)
#define TH_DECCTL_SET_PPLEVEL   (3)
#define TH_DECCTL_SET_GRANPOS   (5)
#define TH_DECCTL_SET_STRIPE_CB   (7)

Typedefs

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

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:

int th_decode_headerin (th_info *_info, th_comment *_tc, th_setup_info **_setup, ogg_packet *_op)
th_dec_ctxth_decode_alloc (const th_info *_info, const th_setup_info *_setup)
void th_setup_free (th_setup_info *_setup)
int th_decode_ctl (th_dec_ctx *_dec, int _req, void *_buf, size_t _buf_sz)
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_decode_free (th_dec_ctx *_dec)

Detailed Description

The libtheoradec C decoding API.

Definition in file theoradec.h.


Generated by  Doxygen 1.6.0   Back to index