module Decoder:sig..end
type t
val check : Ogg.Stream.packet -> boolThis 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 : unit -> theaderin.val is_ready : t -> booltrue is the given decoder was properly
initialized using headerinval headerin : t ->
Ogg.Stream.packet -> Theora.info * string * (string * string) list
Raises Not_enought_data is decoding header needs another packet.
Raises Done if the decoder was already initialized.
This function should be called with the first packets of the stream
until it returns the requested values. It may consume at most 5 packets
(3 header packet, 1 additional packet and the initial video packet)
val get_yuv : t -> Ogg.Stream.t -> Theora.yuv_buffer
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.
Raises Not_initialized if the decoder was not properly
initialized with headerin.