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

View File

@@ -0,0 +1,29 @@
from .dsc_compression_info import DscCompressionInfo as CompressionInfo
from .video_frame import VideoFrame
class VideoFrameDSC(VideoFrame):
"""
Class `VideoFrameDSC` contains base information about DSC compressed video frame:
- Height (int).
- Width (int).
- Data (bytearray).
- Color info (object of `ColorInfo`).
- Data info (object of `DataInfo`).
- Timestamp (object of `Timestamp`).
- CompressionInfo (object of `CompressionInfo`)
"""
def __init__(self):
super().__init__()
self.compression_info = CompressionInfo()
def is_compressed(self) -> bool:
"""
Return state of the video frame, compressed it or not.
Returns:
object of `bool` type.
"""
return not self._compressed