def reconfigure_video(self, config, level):
    'Dynamic reconfigure callback for video parameters.\n\n        :param config: The requested configuration.\n        :type config: dict\n        :param level: Unused here.\n        :type level: int\n        :return: The config corresponding to what was really achieved.\n        :rtype: dict\n        '
    if self.__initializing:
        config.compression = self._compression
        config.fps = self._fps
        config.use_color = self._use_color
        config.use_square_pixels = self._use_square_pixels
        config.resolution = self._resolution.get_vapix_representation()
    else:
        self.__try_set_value_from_config(config, 'compression', self.set_compression)
        self.__try_set_value_from_config(config, 'fps', self.set_fps)
        self.__try_set_value_from_config(config, 'use_color', self.set_use_color)
        self.__try_set_value_from_config(config, 'use_square_pixels', self.set_use_square_pixels)
        try:
            self.set_resolution(config.resolution)
        except ValueError:
            config.resolution = self._resolution.get_vapix_representation()
    return config
Dynamic reconfigure callback for video parameters.

:param config: The requested configuration.
:type config: dict
:param level: Unused here.
:type level: int
:return: The config corresponding to what was really achieved.
:rtype: dict
def reconfigure_video(self, config, level):
    'Dynamic reconfigure callback for video parameters.\n\n        :param config: The requested configuration.\n        :type config: dict\n        :param level: Unused here.\n        :type level: int\n        :return: The config corresponding to what was really achieved.\n        :rtype: dict\n        '
    if self.__initializing:
        config.compression = self._compression
        config.fps = self._fps
        config.use_color = self._use_color
        config.use_square_pixels = self._use_square_pixels
        config.resolution = self._resolution.get_vapix_representation()
    else:
        self.__try_set_value_from_config(config, 'compression', self.set_compression)
        self.__try_set_value_from_config(config, 'fps', self.set_fps)
        self.__try_set_value_from_config(config, 'use_color', self.set_use_color)
        self.__try_set_value_from_config(config, 'use_square_pixels', self.set_use_square_pixels)
        try:
            self.set_resolution(config.resolution)
        except ValueError:
            config.resolution = self._resolution.get_vapix_representation()
    return config