How to use the harvesters.core.PayloadBase function in harvesters

To help you get started, we’ve selected a few harvesters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github genicam / harvesters / harvesters / core.py View on Github external
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)
github genicam / harvesters / harvesters / core.py View on Github external
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):
github genicam / harvesters / harvesters / core.py View on Github external
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):
github genicam / harvesters / harvesters / core.py View on Github external
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)
github genicam / harvesters / harvesters / core.py View on Github external
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:
        """
        #
github genicam / harvesters / harvesters / core.py View on Github external
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)
github genicam / harvesters / harvesters / core.py View on Github external
    @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):
github genicam / harvesters / harvesters / core.py View on Github external
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)
github genicam / harvesters / harvesters / core.py View on Github external
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
            )
        )