module Video:sig
..end
Operations on video data.
typeframe =
Image.RGBA32.t
A frame.
typebuffer =
frame array
A video buffer.
val size : buffer -> int
Size of the buffer in frames.
val create : int -> buffer
Create a buffer with a given number of frames. The frames themselves should
not be read or written to, otherwise use make
.
val make : int -> int -> int -> buffer
Create a buffer with a given number of frames of given size.
val copy : buffer -> buffer
Create a fresh copy of a buffer.
val append : buffer -> buffer -> buffer
Concatenate two buffers.
val blit : buffer -> int -> buffer -> int -> int -> unit
val iter_all : buffer -> (frame -> unit) -> unit
val map_all : buffer -> (frame -> frame) -> unit
val randomize : buffer -> int -> int -> unit
val blank : buffer -> int -> int -> unit
module Ringbuffer_ext:Ringbuffer.R
with type elt = frame
module Ringbuffer:Ringbuffer.R
with type elt = frame
module FPS:sig
..end
Operations on frame rates.
module IO:sig
..end