class
V4L2::Buffer
- V4L2::Buffer
- Reference
- Object
Overview
Represents a "buffer" which the V4L2 kernel API controls.
Defined in:
v4l2/buffer.crConstructors
-
.new(type : Type, memory : Memory, index : UInt32)
Initializes a new buffer of the given type, memory type, and index.
-
.new(buffer_ptr : Pointer(Linux::V4L2Buffer))
Initializes the buffer from a pointer to a Linux::V4L2Buffer struct.
Instance Method Summary
- #bytes_used
- #fd : Int32
- #field(*args, **options)
- #field(*args, **options, &)
- #flags(*args, **options)
- #flags(*args, **options, &)
- #index(*args, **options)
- #index(*args, **options, &)
- #length(*args, **options)
- #length(*args, **options, &)
- #memory(*args, **options)
- #memory(*args, **options, &)
- #offset : UInt32
- #planes
- #requested_fd(*args, **options)
- #requested_fd(*args, **options, &)
- #to_unsafe : Pointer(Linux::V4L2Buffer)
- #type(*args, **options)
- #type(*args, **options, &)
- #user_pointer : Pointer(UInt8)
Constructor Detail
Initializes a new buffer of the given type, memory type, and index.
def self.new(buffer_ptr : Pointer(Linux::V4L2Buffer))
#
Initializes the buffer from a pointer to a Linux::V4L2Buffer struct.