Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, buffer=None, node_map=None):
#
super().__init__(buffer=buffer)
# Build data components.
self._components.append(
self._build_component(
buffer=buffer, node_map=node_map
)
)
def __repr__(self):
return '{0}'.format(self.components[0].__repr__())
class PayloadRawData(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadFile(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkData(PayloadImage):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
super().__init__(buffer=buffer)
class PayloadJPEG(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG2000(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadH264(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkOnly(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadMultiPart(PayloadBase):
"""
TODO:
"""
def __init__(self, buffer=None, node_map=None):
super().__init__(buffer=buffer)
class PayloadH264(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkOnly(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadMultiPart(PayloadBase):
"""
TODO:
"""
def __init__(self, buffer=None, node_map=None):
"""
TODO: __init__
:param buffer:
:param node_map:
"""
#
super().__init__(buffer=buffer)
# Build data components.
# We know the buffer consists of a set of "part" that is
# defined by the GenTL standard.
for i, part in enumerate(self._buffer.parts):
super().__init__(buffer=buffer)
class PayloadChunkData(PayloadImage):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG2000(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadH264(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkOnly(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
super().__init__(buffer=buffer)
class PayloadJPEG2000(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadH264(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkOnly(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadMultiPart(PayloadBase):
"""
TODO:
"""
def __init__(self, buffer=None, node_map=None):
"""
TODO: __init__
:param buffer:
:param node_map:
"""
#
self._build_component(
buffer=buffer, node_map=node_map
)
)
def __repr__(self):
return '{0}'.format(self.components[0].__repr__())
class PayloadRawData(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadFile(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkData(PayloadImage):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
@property
def components(self):
"""
TODO:
:return:
"""
return self._components
class PayloadUnknown(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadImage(PayloadBase):
def __init__(self, buffer=None, node_map=None):
#
super().__init__(buffer=buffer)
# Build data components.
self._components.append(
self._build_component(
buffer=buffer, node_map=node_map
)
)
def __repr__(self):
return '{0}'.format(self.components[0].__repr__())
class PayloadRawData(PayloadBase):
super().__init__(buffer=buffer)
class PayloadFile(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadChunkData(PayloadImage):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadJPEG2000(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadH264(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
return Component1D(buffer=buffer, part=part)
if symbolic in component_2d_formats:
return Component2D(buffer=buffer, part=part, node_map=node_map)
return None
@property
def components(self):
"""
TODO:
:return:
"""
return self._components
class PayloadUnknown(PayloadBase):
def __init__(self, buffer=None):
#
super().__init__(buffer=buffer)
class PayloadImage(PayloadBase):
def __init__(self, buffer=None, node_map=None):
#
super().__init__(buffer=buffer)
# Build data components.
self._components.append(
self._build_component(
buffer=buffer, node_map=node_map
)
)