1.1.0版本

This commit is contained in:
xinzhu.yin
2026-04-16 16:51:05 +08:00
commit c157e774e5
333 changed files with 70759 additions and 0 deletions

25
UniTAP/dev/ports/rx.py Normal file
View File

@@ -0,0 +1,25 @@
from .port import TSIPort, MemoryManager, Capturer, PortIO
from .modules.capturer.video.video_capturer import VideoCapturerDP, VideoCapturerHDMI
from .modules.capturer.audio.audio_capturer import AudioCapturer
class RX(TSIPort):
"""
Class describe base capabilities of Sink (RX - receiver).
This functionality is used by child classes `DPRX` and `HDRX`.
You cannot use a class `RX` object directly.
"""
def __init__(self, port_io: PortIO, memory_manager: MemoryManager, capturer: Capturer):
super().__init__(port_io, memory_manager, capturer)
self.__audio_capturer = AudioCapturer(capturer)
@property
def audio_capturer(self) -> AudioCapturer:
"""
Should be used to control `AudioCapturer` on Sink (RX - receiver) role.
Returns:
object of `AudioCapturer` type.
"""
return self.__audio_capturer