SRSDK  0.10.39
Loading...
Searching...
No Matches
leia_shared_camera_sink Struct Reference

#include <sharedCameraSink.h>

Public Member Functions

LEIASDK_API void leia_shared_camera_sink_retain (struct leia_shared_camera_sink *)
 Increment the reference counter.
 
LEIASDK_API void leia_shared_camera_sink_release (struct leia_shared_camera_sink *)
 Decrement the reference counter.
 
LEIA_NODISCARD LEIASDK_API leia_bool leia_shared_camera_sink_is_active (struct leia_shared_camera_sink *)
 Check if shared camera sink is active (attached to a consumer).
 
LEIASDK_API void leia_shared_camera_sink_on_image (struct leia_shared_camera_sink *, struct leia_image_desc const *, struct leia_timestamp)
 Push image data to the consumer.
 
LEIASDK_API void leia_shared_camera_sink_on_intrinsics_change (struct leia_shared_camera_sink *, struct leia_camera_intrinsics const *)
 Push intrinsics data to the consumer.
 
LEIASDK_API void leia_shared_camera_sink_on_lux_change (struct leia_shared_camera_sink *, float luxValue)
 Push lux data to the consumer.
 

Related Symbols

(Note that these are not member symbols.)

LEIA_NODISCARD LEIASDK_API struct leia_shared_camera_sinkleia_shared_camera_sink_alloc (struct leia_core_library *)
 Create a shared camera sink.
 

Member Function Documentation

◆ leia_shared_camera_sink_retain()

LEIASDK_API void leia_shared_camera_sink_retain ( struct leia_shared_camera_sink )

Increment the reference counter.

◆ leia_shared_camera_sink_release()

LEIASDK_API void leia_shared_camera_sink_release ( struct leia_shared_camera_sink )

Decrement the reference counter.

◆ leia_shared_camera_sink_is_active()

LEIA_NODISCARD LEIASDK_API leia_bool leia_shared_camera_sink_is_active ( struct leia_shared_camera_sink )

Check if shared camera sink is active (attached to a consumer).

◆ leia_shared_camera_sink_on_image()

LEIASDK_API void leia_shared_camera_sink_on_image ( struct leia_shared_camera_sink ,
struct leia_image_desc const *  ,
struct leia_timestamp   
)

Push image data to the consumer.

Makes sense to be called only when the sink is active. See leia_shared_camera_sink_is_active.

◆ leia_shared_camera_sink_on_intrinsics_change()

LEIASDK_API void leia_shared_camera_sink_on_intrinsics_change ( struct leia_shared_camera_sink ,
struct leia_camera_intrinsics const *   
)

Push intrinsics data to the consumer.

Makes sense to be called only when the sink is active. See leia_shared_camera_sink_is_active.

◆ leia_shared_camera_sink_on_lux_change()

LEIASDK_API void leia_shared_camera_sink_on_lux_change ( struct leia_shared_camera_sink ,
float  luxValue 
)

Push lux data to the consumer.

Makes sense to be called only when the sink is active. See leia_shared_camera_sink_is_active.

Friends And Related Symbol Documentation

◆ leia_shared_camera_sink_alloc()

LEIA_NODISCARD LEIASDK_API struct leia_shared_camera_sink * leia_shared_camera_sink_alloc ( struct leia_core_library )
related

Create a shared camera sink.

The only goal of this object is to connect a camera data producer with a consumer. Right now, the only existing consumer is the face tracking backend.

This object is reference counted. See md_reference_counting_rules.


The documentation for this struct was generated from the following file: