def _copy_to_gpu(self):
        if self._texture is None:
            Logger.debug('Camera: copy_to_gpu() failed, _texture is None !')
            return
        self._texture.blit_buffer(self._buffer, colorfmt=self._format)
        self._buffer = None
        self.dispatch('on_texture')
Copy the the buffer into the texture
dataset/ETHPy150Open kivy/kivy/kivy/core/camera/__init__.py/CameraBase._copy_to_gpu