juturna.names package

Module contents

class juturna.names.ComponentStatus(*values)

Bases: StrEnum

Possible state values of a component.

  • NEW (component_created): a component was instantiated

  • CONFIGURED (component_configured): a component was configured, or, the configure() method was invoked on it

  • RUNNING (component_running): a component is running within a running pipeline, so, configure() and start() were previosuly invoked on it

  • STOPPED (component_stopped): a previously running component was stopped, so stop() was invoked on it

CONFIGURED = 'component_configured'
NEW = 'component_created'
RUNNING = 'component_running'
STOPPED = 'component_stopped'
class juturna.names.PipelineStatus(*values)

Bases: StrEnum

DESTROYED = 'pipeline_destroyed'
NEW = 'pipeline_created'
READY = 'pipeline_ready'
RUNNING = 'pipeline_running'
class juturna.names.PixelFormat(*values)

Bases: StrEnum

Supported pixel formats for image and video payloads. - RGB / BGR (24-bit):

RGB24, BGR24

  • RGBA (32-bit with alpha): RGBA, ARGB, BGRA, ABGR

  • YUV planar / packed: YUV420P, YUV444P, YUYV422, NV12, NV21

  • Grayscale: GRAY, GRAY8

  • Other: PAL8, GBRP

ABGR = 'abgr'
ARGB = 'argb'
BGR24 = 'bgr24'
BGRA = 'bgra'
GBRP = 'gbrp'
GRAY = 'gray'
GRAY8 = 'gray8'
NV12 = 'nv12'
NV21 = 'nv21'
PAL8 = 'pal8'
RGB24 = 'rgb24'
RGBA = 'rgba'
YUV420P = 'yuv420p'
YUV444P = 'yuv444p'
YUYV422 = 'yuyv422'
property has_alpha: bool

Return True if the format has an alpha channel.

property is_bgr: bool

Return True if the format is BGR-ordered.

property is_grayscale: bool

Return True if the format is grayscale.

property is_rgb: bool

Return True if the format is RGB-ordered.

property is_yuv: bool

Return True if the format is a YUV variant.

class juturna.names.ServiceStatus(*values)

Bases: StrEnum

REQUEST_KO = 'service_request_failed'
REQUEST_OK = 'service_request_ok'