3.9 Buffers
On this page:
buffer?
3.9.1 Memory
memory?
3.9.2 Samples
sample?
7.7

3.9 Buffers

Buffers are the basic unit of data transfer of GStreamer. Buffers contain blocks of memory.

procedure

(buffer? v)  boolean?

  v : any/c
Returns #t if v is a buffer containing media data, #f otherwise.

3.9.1 Memory

Memory in GStreamer are lightweight objects wrapping a region of memory. They are used to manage the data within a buffer.

procedure

(memory? v)  boolean?

  v : any/c
Returns #t if v is an object referencing a region of memory containing media data, #f otherwise.

3.9.2 Samples

A media sample is a small object associating a buffer with a media type in the form of caps.

procedure

(sample? v)  boolean?

  v : any/c
Returns #t if v is a media sample, #f otherwise.