datumaro.plugins.data_formats.datumaro_binary.mapper.media#
Classes
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.MediaMapper[source]#
Bases:
Mapper
- classmethod forward(obj: MediaElement | None) bytes [source]#
Convert an object to bytes.
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.MediaElementMapper[source]#
Bases:
Mapper
- MAGIC_PATH = '/NOT/A/REAL/PATH'#
- MEDIA_TYPE = 1#
- classmethod forward(obj: MediaElement) bytes [source]#
Convert an object to bytes.
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.ImageMapper[source]#
Bases:
MediaElementMapper
- MAGIC_SIZE_FOR_NONE = (-1583, -1597)#
- MEDIA_TYPE = 2#
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.VideoMapper[source]#
Bases:
MediaElementMapper
- MAGIC_END_FRAME_FOR_NONE = 4294967295#
- MEDIA_TYPE = 5#
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.VideoFrameMapper[source]#
Bases:
MediaElementMapper
- MEDIA_TYPE = 4#
- classmethod forward(obj: VideoFrame) bytes [source]#
Convert an object to bytes.
- class datumaro.plugins.data_formats.datumaro_binary.mapper.media.PointCloudMapper[source]#
Bases:
MediaElementMapper
- MEDIA_TYPE = 6#
- classmethod forward(obj: PointCloud) bytes [source]#
Convert an object to bytes.