Aravis.ChunkParser

g Aravis.ChunkParser Aravis.ChunkParser GObject.Object GObject.Object GObject.Object->Aravis.ChunkParser

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (xml, size)

get_boolean_value (buffer, chunk)

get_float_value (buffer, chunk)

get_integer_value (buffer, chunk)

get_string_value (buffer, chunk)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

genicam

Aravis.Gc

r/w/co

Genicam instance

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Aravis.ChunkParser(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Aravis.ChunkParserClass

[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:
  • xml (str) – XML genicam data

  • size (int) – genicam data size, -1 if None terminated

Returns:

a new Aravis.ChunkParser object

Return type:

Aravis.ChunkParser

Creates a new chunk_parser.

New in version 0.4.0.

get_boolean_value(buffer, chunk)
Parameters:
Raises:

GLib.Error

Returns:

the boolean chunk data value.

Return type:

bool

get_float_value(buffer, chunk)
Parameters:
Raises:

GLib.Error

Returns:

the float chunk data value.

Return type:

float

get_integer_value(buffer, chunk)
Parameters:
Raises:

GLib.Error

Returns:

the integer chunk data integer.

Return type:

int

get_string_value(buffer, chunk)
Parameters:
Raises:

GLib.Error

Returns:

the string chunk data value.

Return type:

str

Property Details

Aravis.ChunkParser.props.genicam
Name:

genicam

Type:

Aravis.Gc

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Internal Genicam object