Aravis.ChunkParser¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Genicam instance |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Aravis.ChunkParser(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
[class`ArvChunkParser`] provides a class for the instantiation of chunk parsers used for the extraction of chunk data stored in the stream payload.
Chunks are tagged blocks of data stored in a [class`ArvBuffer`] containing a
Aravis.BufferPayloadType.CHUNK_DATApayload. The tags allow a chunk parser to dissect the data payload into its elements and to identify the content.Chunk data are enabled using either [method`ArvCamera`.set_chunks] or [method`ArvCamera`.set_chunk_mode]. Both functions are simple convenience wrappers that handle the setting of ChunkModeActive, ChunkSelector and ChunkEnable GENICAM features.
Here is an example of this API in use: tests/arvchunkparsertest.c
- classmethod new(xml, size)¶
- Parameters:
- Returns:
a new
Aravis.ChunkParserobject- Return type:
Creates a new chunk_parser.
Added in version 0.4.0.
- get_boolean_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer) – aAravis.Bufferwith aAravis.BufferPayloadType.CHUNK_DATApayloadchunk (
str) – chunk data name
- Raises:
- Returns:
the boolean chunk data value.
- Return type:
- get_float_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer) – aAravis.Bufferwith aAravis.BufferPayloadType.CHUNK_DATApayloadchunk (
str) – chunk data name
- Raises:
- Returns:
the float chunk data value.
- Return type:
- get_integer_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer) – aAravis.Bufferwith aAravis.BufferPayloadType.CHUNK_DATApayloadchunk (
str) – chunk data name
- Raises:
- Returns:
the integer chunk data integer.
- Return type:
- get_string_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer) – aAravis.Bufferwith aAravis.BufferPayloadType.CHUNK_DATApayloadchunk (
str) – chunk data name
- Raises:
- Returns:
the string chunk data value.
- Return type:
- set_integer_feature_value(feature, value)¶
- Parameters:
- Raises:
Set a feature value using a 64 bit value. The main use for this function is to set a Selector feature, in order to access the corresponding chunk value. As the Genicam data owned by the parser is not shared with the device, this function is limited to features that don’t trigger device access.
Added in version 0.8.35.
- set_string_feature_value(feature, value)¶
- Parameters:
- Raises:
Set a feature value using a string. The main use for this function is to set a Selector feature, in order to access the corresponding chunk value. As the Genicam data owned by the parser is not shared with the device, this function is limited to features that don’t trigger device access.
Added in version 0.8.35.