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_DATA
payload. 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.ChunkParser
object- Return type:
Creates a new chunk_parser.
New in version 0.4.0.
- get_boolean_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer
) – aAravis.Buffer
with aAravis.BufferPayloadType.CHUNK_DATA
payloadchunk (
str
) – chunk data name
- Raises:
- Returns:
the boolean chunk data value.
- Return type:
- get_float_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer
) – aAravis.Buffer
with aAravis.BufferPayloadType.CHUNK_DATA
payloadchunk (
str
) – chunk data name
- Raises:
- Returns:
the float chunk data value.
- Return type:
- get_integer_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer
) – aAravis.Buffer
with aAravis.BufferPayloadType.CHUNK_DATA
payloadchunk (
str
) – chunk data name
- Raises:
- Returns:
the integer chunk data integer.
- Return type:
- get_string_value(buffer, chunk)¶
- Parameters:
buffer (
Aravis.Buffer
) – aAravis.Buffer
with aAravis.BufferPayloadType.CHUNK_DATA
payloadchunk (
str
) – chunk data name
- Raises:
- Returns:
the string chunk data value.
- Return type: