Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.stream.core Namespace Reference

Classes

class  IdleTimer
 
class  KeyFrameConverter
 
class  Orientation
 
class  Part
 
class  Segment
 
class  StreamOutput
 
class  StreamSettings
 
class  StreamView
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 STREAM_SETTINGS_NON_LL_HLS
 
tuple TRANSFORM_IMAGE_FUNCTION
 

Detailed Description

Provides core stream functionality.

Variable Documentation

◆ _LOGGER

homeassistant.components.stream.core._LOGGER = logging.getLogger(__name__)
private

Definition at line 36 of file core.py.

◆ STREAM_SETTINGS_NON_LL_HLS

homeassistant.components.stream.core.STREAM_SETTINGS_NON_LL_HLS
Initial value:
1 = StreamSettings(
2  ll_hls=False,
3  min_segment_duration=TARGET_SEGMENT_DURATION_NON_LL_HLS - SEGMENT_DURATION_ADJUSTER,
4  part_target_duration=TARGET_SEGMENT_DURATION_NON_LL_HLS,
5  hls_advance_part_limit=3,
6  hls_part_timeout=TARGET_SEGMENT_DURATION_NON_LL_HLS,
7 )

Definition at line 65 of file core.py.

◆ TRANSFORM_IMAGE_FUNCTION

tuple homeassistant.components.stream.core.TRANSFORM_IMAGE_FUNCTION
Initial value:
1 = (
2  lambda image: image, # Unused
3  lambda image: image, # No transform
4  lambda image: np.fliplr(image).copy(), # Mirror
5  lambda image: np.rot90(image, 2).copy(), # Rotate 180
6  lambda image: np.flipud(image).copy(), # Flip
7  lambda image: np.flipud(np.rot90(image)).copy(), # Rotate left and flip
8  lambda image: np.rot90(image).copy(), # Rotate left
9  lambda image: np.flipud(np.rot90(image, -1)).copy(), # Rotate right and flip
10  lambda image: np.rot90(image, -1).copy(), # Rotate right
11 )

Definition at line 406 of file core.py.