Video.Canvasmodule Image : sig ... endtype image = Image.tAn image.
type t = image arrayA video.
val make : int -> (int * int) -> tCreate a video with given length and dimensions.
Make a copy of the video (images themselves are not copied since they are supposed to be immutable).
val single_image : Mm_image.Image.YUV420.t -> tCreate a video with one image.
val length : t -> intLength of the video (in images).
val size : t -> intEstimated size of the video (in bytes).
val render : ?transparent:bool -> t -> int -> Mm_image.Image.YUV420.tRender the nth image of the video.
val put : t -> int -> Mm_image.Image.YUV420.t -> unitChange the contents of the nth image of the video (like set but takes an image instead of a canvas as argument).
val blank : t -> int -> int -> unitBlank the video starting at offset with given length.
Map a function to the images of a video (starting at given offset, for given length).
val iter : (Mm_image.Image.YUV420.t -> unit) -> t -> int -> int -> unitIterate a function on the rendering of the images of the video.