ArvGvFakeCamera

ArvGvFakeCamera — GigE Vision Simulator

Functions

Properties

char * genicam-filename Write / Construct Only
double gvsp-lost-ratio Write / Construct
char * interface-name Write / Construct Only
char * serial-number Write / Construct Only

Object Hierarchy

    GObject
    ╰── ArvGvFakeCamera

Description

ArvGvFakeCamera is a class that simulates a real GigEVision camera.

Functions

arv_gv_fake_camera_new ()

ArvGvFakeCamera *
arv_gv_fake_camera_new (const char *interface_name,
                        const char *serial_number);

Parameters

interface_name

listening network interface ('lo' by default).

[nullable]

serial_number

fake device serial number ('GV01' by default).

[nullable]

Returns

a new ArvGvFakeCamera

Since: 0.8.0


arv_gv_fake_camera_new_full ()

ArvGvFakeCamera *
arv_gv_fake_camera_new_full (const char *interface_name,
                             const char *serial_number,
                             const char *genicam_filename);

Parameters

interface_name

listening network interface, by name or IP address, default is 127.0.0.1.

[nullable]

serial_number

fake device serial number, default is GV01.

[nullable]

genicam_filename

path to alternative genicam data.

[nullable]

Returns

a new ArvGvFakeCamera

Since: 0.8.0


arv_gv_fake_camera_get_fake_camera ()

ArvFakeCamera *
arv_gv_fake_camera_get_fake_camera (ArvGvFakeCamera *gv_fake_camera);

Retrieves the underlying ArvFakeCamera object owned by gv_fake_camera .

Parameters

gv_fake_camera

a ArvGvFakeCamera

 

Returns

underlying fake camera object.

[transfer none]

Since: 0.8.0


arv_gv_fake_camera_is_running ()

gboolean
arv_gv_fake_camera_is_running (ArvGvFakeCamera *gv_fake_camera);

Parameters

gv_fake_camera

a ArvGvFakeCamera

 

Returns

TRUE if the fake camera is correctly listening on the GVCP port

Since: 0.8.0

Property Details

The “genicam-filename” property

  “genicam-filename”         char *

Genicam filename.

Owner: ArvGvFakeCamera

Flags: Write / Construct Only

Default value: NULL


The “gvsp-lost-ratio” property

  “gvsp-lost-ratio”          double

GVSP lost packet ratio.

Owner: ArvGvFakeCamera

Flags: Write / Construct

Allowed values: [0,1]

Default value: 0


The “interface-name” property

  “interface-name”           char *

Interface name.

Owner: ArvGvFakeCamera

Flags: Write / Construct Only

Default value: "127.0.0.1"


The “serial-number” property

  “serial-number”            char *

Serial number.

Owner: ArvGvFakeCamera

Flags: Write / Construct Only

Default value: "GV01"