Aravis.Buffer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Aravis.Buffer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
[class`ArvBuffer`] provides a class for the instantiation of buffers used for the storage of the separate images of the video stream.
The actual data space may either be allocated by [class`ArvBuffer`] during an object instantiation, of pre-allocated. [class`ArvBuffer`] also allows the transmission of image metadata, such as offsets and size of the transmitted region of interest, pixel format and time stamp.
- classmethod new(size, preallocated)¶
- Parameters:
- Returns:
a new
Aravis.Buffer
object- Return type:
Creates a new buffer for the storage of the video stream images. The data space can be either preallocated, and the caller is responsible for it’s deallocation, or allocated by this function. If it is the case, data memory will be freed when the buffer is destroyed.
New in version 0.2.0.
- classmethod new_allocate(size)¶
- Parameters:
size (
int
) – payload size- Returns:
a new
Aravis.Buffer
object- Return type:
Creates a new buffer for the storage of the video stream images. The data space is allocated by this function, and will be freed when the buffer is destroyed.
New in version 0.2.3.
- classmethod new_full(size, preallocated, user_data, user_data_destroy_func)¶
- Parameters:
- Returns:
a new [class`ArvBuffer`] object
- Return type:
Creates a new buffer for the storage of the video stream images. The data space can be either preallocated, and the caller is responsible for it’s deallocation, or allocated by this function. If it is the case, data memory will be freed when the buffer is destroyed.
If user_data_destroy_func is non
None
, it will be called in order to destroy user_data when the buffer is destroyed.New in version 0.2.0.
- find_component(component_id)¶
- Parameters:
component_id (
int
) – the component id to find- Returns:
the corresponding part id, -1 if not found.
- Return type:
Search for the part corresponding to component_id
New in version 0.8.25.
- get_chunk_data(chunk_id)¶
-
Chunk data accessor.
New in version 0.4.0.
- get_data()¶
- Returns:
a pointer to the buffer data.
- Return type:
Buffer data accessor.
New in version 0.4.0.
- get_frame_id()¶
- Returns:
frame id, 0 on error.
- Return type:
Gets the buffer frame id. For GigEVision devices, 0 is an invalid value.
New in version 0.8.0.
- get_image_height()¶
- Returns:
image height, in pixels.
- Return type:
Gets the image width.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_image_padding()¶
- Returns:
- x_padding:
image x offset placeholder
- y_padding:
image y offset placeholder
- Return type:
Gets the image padding.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_image_pixel_format()¶
- Returns:
image pixel format.
- Return type:
Gets the image pixel format.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_image_region()¶
- Returns:
- x:
image x offset placeholder
- y:
image y offset placeholder
- width:
image width placholder
- height:
image height placeholder
- Return type:
Gets the image region.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_image_width()¶
- Returns:
image width, in pixels.
- Return type:
Gets the image width.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_image_x()¶
- Returns:
image x offset, in pixels.
- Return type:
Gets the image x offset.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_image_y()¶
- Returns:
image y offset, in pixels.
- Return type:
Gets the image y offset.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.4.0.
- get_part_component_id(part_id)¶
-
New in version 0.8.25.
- get_part_data(part_id)¶
-
New in version 0.8.23.
- get_part_data_type(part_id)¶
- Parameters:
part_id (
int
) – part id- Returns:
the part
Aravis.BufferPartDataType
- Return type:
New in version 0.8.23.
- get_part_height(part_id)¶
-
Gets the part height.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_padding(part_id)¶
- Parameters:
part_id (
int
) – a part id- Returns:
- x_padding:
x offset placeholder
- y_padding:
y offset placeholder
- Return type:
Gets the part padding.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_pixel_format(part_id)¶
-
Gets the part pixel format.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_region(part_id)¶
- Parameters:
part_id (
int
) – a part id- Returns:
- x:
x offset placeholder
- y:
y offset placeholder
- width:
width placeholder
- height:
height placeholder
- Return type:
Gets the part region.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_width(part_id)¶
-
Gets the part width.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_x(part_id)¶
-
Gets the part x offset.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_part_y(part_id)¶
-
Gets the part y_offset.
This function must only be called if buffer payload is either
Aravis.BufferPayloadType.IMAGE
,Aravis.BufferPayloadType.EXTENDED_CHUNK_DATA
orAravis.BufferPayloadType.MULTIPART
.New in version 0.8.23.
- get_payload_type()¶
- Returns:
payload type.
- Return type:
Gets the buffer payload type.
New in version 0.4.0.
- get_status()¶
- Returns:
buffer acquisition status.
- Return type:
Gets the buffer acquisition status.
New in version 0.4.0.
- get_system_timestamp()¶
- Returns:
buffer system timestamp, in nanoseconds.
- Return type:
Gets the system timestamp for when the frame was received. Expressed in nanoseconds.
New in version 0.6.0.
- get_timestamp()¶
- Returns:
buffer timestamp, in nanoseconds.
- Return type:
Gets the buffer camera timestamp, expressed as nanoseconds. Not all devices provide reliable timestamp, which means sometimes its better to rely on the buffer completion host local time, or to use
Aravis.Buffer.get_system_timestamp
().New in version 0.4.0.
- get_user_data()¶
-
Gets a pointer to user data set by
Aravis.Buffer.new_full
.New in version 0.4.0.
- has_chunks()¶
-
New in version 0.8.0.
- set_frame_id(frame_id)¶
- Parameters:
frame_id (
int
) – a #guint64
Sets the buffer frame id. For GigEVision devices, 0 is an invalid value.
New in version 0.8.3.