juturna.names package¶
Module contents¶
- class juturna.names.ComponentStatus(*values)¶
Bases:
StrEnumPossible state values of a component.
NEW(component_created): a component was instantiatedCONFIGURED(component_configured): a component was configured, or, theconfigure()method was invoked on itRUNNING(component_running): a component is running within a running pipeline, so,configure()andstart()were previosuly invoked on itSTOPPED(component_stopped): a previously running component was stopped, sostop()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:
StrEnumSupported pixel formats for image and video payloads. - RGB / BGR (24-bit):
RGB24,BGR24RGBA (32-bit with alpha):
RGBA,ARGB,BGRA,ABGRYUV planar / packed:
YUV420P,YUV444P,YUYV422,NV12,NV21Grayscale:
GRAY,GRAY8Other:
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
Trueif the format has an alpha channel.
- property is_bgr: bool¶
Return
Trueif the format is BGR-ordered.
- property is_grayscale: bool¶
Return
Trueif the format is grayscale.
- property is_rgb: bool¶
Return
Trueif the format is RGB-ordered.
- property is_yuv: bool¶
Return
Trueif the format is a YUV variant.