module Encoder:sig..end
type t
type settings = {
|
keyframe_frequency : |
|
vp3_compatible : |
|
soft_target : |
|
buffer_delay : |
|
speed : |
val create : Theora.info ->
settings -> (string * string) list -> tInitialize a state handle for decoding.
val encode_header : t -> Ogg.Stream.stream -> unitFills the given stream with the header packets.
val encode_page : t ->
Ogg.Stream.stream -> (unit -> Theora.yuv_buffer) -> Ogg.Page.tEncode data until a page is filled.
val encode_buffer : t -> Ogg.Stream.stream -> Theora.yuv_buffer -> unitEncode a buffer.
val frames_of_granulepos : t -> Stdlib.Int64.t -> Stdlib.Int64.tConvert a granulepos to an absolute frame index, starting at 0. The granulepos is interpreted in the context of a given theora_state handle.
val eos : t -> Ogg.Stream.stream -> unitSet end of stream