Module Theora.Decoder


module Decoder: sig .. end

type t 
val check : Ogg.Stream.packet -> bool
Check wether an ogg logical stream contains theora data

This function shall be called just after you put the first page in the stream. See examples/thdecode.ml

Raises Ogg.Bad_data if the stream does not contain theora data.

val create : Ogg.Stream.packet ->
Ogg.Stream.packet ->
Ogg.Stream.packet ->
t * Theora.info * string * (string * string) list
Initialize the decoding structure. Needs the first 3 packets of the logical stream.
val get_yuv : t -> Ogg.Stream.t -> Theora.yuv_buffer
Output the next available frame of decoded YUV data.

Raises Ogg.Not_enough_data if the Ogg.Stream.t which has been used to initialize the handler does not contain enought data. You should submit a new page to it, and run this function again until it returns.