Module Video_converter


module Video_converter: sig .. end
Plugin to add video-related configuration keys.

val video_converter_conf : Dtools.Conf.ut
type converter = proportional:bool -> Image.Generic.t -> Image.Generic.t -> unit 
~proportional src dst performs the conversion from frame src to frame dst. raises Not_found if no conversion routine was found

A converter plugin is a name, a list of input formats, a list of output formats, a fonction to create a converter.

type converter_plug = Image.Generic.Pixel.format list * Image.Generic.Pixel.format list *
(unit -> converter)
val video_converters : converter_plug Plug.plug
Plugin to register new converters.
val find_converter : Image.Generic.Pixel.format ->
Image.Generic.Pixel.format -> Image.Generic.t -> Image.Generic.t -> unit
find_converter source destination tries to find a converter from source format to destination format. Proportional scale is implicitely set via global configuration key for now. Returns a conversion function: frame -> frame -> unit.