UniTAP.dev.ports.modules.vtg.pg
Class PGStatus describes possible states of PatternGenerator.
Class PGError contains codes of errors with the possibility of string representation.
Inherited Members
- enum.Enum
- name
- value
- builtins.int
- conjugate
- bit_length
- bit_count
- to_bytes
- from_bytes
- as_integer_ratio
- real
- imag
- numerator
- denominator
Main class PatternGenerator allows working with PG functionality on the device: set different types of pattern
set_pattern, set different video modes set_vm, set additional parameters for some patterns set_pattern_params,
get information about current video mode on stream get_stream_video_mode, apply all transferred setting,
reset settings and read pattern generator status.
Allows setting video pattern on current stream. Possible variants:
- type
VideoPattern- value from enumVideoPattern(one of th e possible predefined patterns). - type str - path to image (bmp, png, jpeg, dsc and so on).
- type bytearray - raw image data, which will be loaded to device memory.
- type
VideoFrame- object of class that contains the image data. - type
VideoFrameDSC- object of class that contains dsc image data.
Arguments:
- pattern (Union[
VideoPattern, str, bytearray,VideoFrame,VideoFrameDSC])
Allows setting additional parameters for some patters on current stream.
See available PGPatternParams types: SolidColorParams, WhiteVStripsParams, GradientStripsParams,
MotionParams,SquareWindowParams (see in pg pattern params).
Arguments:
- pattern_params (PGPatternParams)
Apply all settings on current stream.
Returns:
object of bool type - settings were set successfully or not
Class HdmiPatternGenerator inherited from class PatternGenerator.
Allows getting timing_manager, max_stream_count, apply PG settings.
Also has all the PatternGenerator functionality.
Should be used for working with available timings on device.
Returns:
object of
TimingManagertype.
Class DpPatternGenerator inherited from class PatternGenerator.
Allows getting timing_manager, adaptive_sync_status, apply and reset PG settings and set additional settings:
set_as_config, set_scrolling_params.
Also has all the PatternGenerator functionality.
Should be used for working with available timings on device.
Returns:
object of
TimingManagertype.
Allows setting adaptive sync configuration.
See available ASParams types: ConstantASParams, SquareASParams, ZigzagASParams, FixedASParams
(see in types).
Arguments:
- as_config (ASParams)
Allows setting additional configuration for "Scrolling pattern". See available PGScrollingParams types:
StepsScrollingParams (see in pg pattern params).
Arguments:
- scrolling_params (PGScrollingParams)
Returns work status of adaptive sync.
Returns:
object of bool type - adaptive sync enabled or not
Class DpMstPatternGenerator allows working with one of the supported streams on the device (contains list of the
DpPatternGenerator objects). To access the selected stream, use an override of [ ].
Also, allows working with stream number 0 directly and applying all settings of all streams together.
Should be used for working with available timings on device.
Returns:
object of
TimingManagertype.
Allows setting video pattern on stream number 0 of pattern generator. Possible variants:
- type
VideoPattern- value from enumVideoPattern(one of th e possible predefined patterns). - type str - path to image (bmp, png, jpeg, dsc and so on).
- type bytearray - raw image data, which will be loaded to device memory.
- type
VideoFrame- object of class that contains the image data. - type
VideoFrameDSC- object of class that contains the dsc image data.
Arguments:
- pattern (Union[
VideoPattern, str, bytearray,VideoFrame,VideoFrameDSC])
Allows setting additional parameters for some patters on stream number 0 of pattern generator.
See available PGPatternParams types: SolidColorParams, WhiteVStripsParams, GradientStripsParams,
MotionParams,SquareWindowParams (see in pg pattern params).
Arguments:
- pattern_params (PGPatternParams)
Allows setting adaptive sync configuration on stream number 0 of pattern generator.
See available ASParams types: ConstantASParams, SquareASParams, ZigzagASParams, FixedASParams.
(see in types).
Arguments:
- as_config (ASParams)
Allows setting additional configuration for "Scrolling pattern" on stream number 0 of pattern generator.
See available PGScrollingParams types: StepsScrollingParams (see in pg pattern params).
Arguments:
- scrolling_params (PGScrollingParams)
Returns VideoMode information about current configuration of PG on stream 0.
Returns:
object of VideoMode type
Apply all setting on stream number 0 of pattern generator.
Returns:
object of bool type - settings were set successfully or not
Returns current pixel rate for selected stream.
Returns:
object of int type
Returns object of PanelReplay if device supports this feature (first stream).
Returns:
object of 'PanelReplay' type or None