def get_algorithm_list(self): """ Get dithering algorithms. """ lst = [] _lib.caca_get_dither_color_list.argtypes = [_Dither] _lib.caca_get_dither_color_list.restype = ctypes.POINTER(ctypes.c_char_p) for item in _lib.caca_get_dither_color_list(self): if item is not None and item != "": lst.append(item) else: #memory occurs otherwise break return lst
def get_algorithm_list(self): """ Get dithering algorithms. """ lst = [] _lib.caca_get_dither_color_list.argtypes = [_Dither] _lib.caca_get_dither_color_list.restype = ctypes.POINTER( ctypes.c_char_p) for item in _lib.caca_get_dither_color_list(self): if item is not None and item != "": lst.append(item) else: #memory occurs otherwise break return lst