package gstreamer

  1. Overview
  2. Docs

Buffers.

type t

A buffer.

val of_string : string -> int -> int -> t

Create a buffer containing a given string as contents.

val of_data : data -> int -> int -> t

Create a buffer containing given data as contents.

val of_data_list : (data * int * int) list -> t
val to_data : t -> data
val to_string : t -> string
val set_presentation_time : t -> Int64.t -> unit

Set the presentation time of a buffer.

val set_decoding_time : t -> Int64.t -> unit

Set the decoding time of a buffer.

val set_duration : t -> Int64.t -> unit

Set the duration of a buffer.

OCaml

Innovation. Community. Security.