package theora

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Theora.EncoderSource

Sourcetype t
Sourcetype settings = {
  1. keyframe_frequency : int option;
  2. vp3_compatible : bool option;
  3. soft_target : bool option;
  4. buffer_delay : int option;
  5. speed : int option;
}
Sourceval create : info -> settings -> (string * string) list -> t

Initialize a state handle for decoding.

Sourceval encode_header : t -> Ogg.Stream.stream -> unit

* Fills the given stream with the header packets.

Sourceval encode_page : t -> Ogg.Stream.stream -> (unit -> yuv_buffer) -> Ogg.Page.t

* Encode data until a page is filled.

Sourceval encode_buffer : t -> Ogg.Stream.stream -> yuv_buffer -> unit

Encode a buffer.

Sourceval frames_of_granulepos : t -> Int64.t -> Int64.t

Convert a granulepos to an absolute frame index, starting at 0. * The granulepos is interpreted in the context of a given theora_state handle.

Sourceval eos : t -> Ogg.Stream.stream -> unit

Set end of stream

  • deprecated This function generates invalid bitstream. Please use Ogg.Stream.terminate instead!