INNER CODE UNIT · Python
entry_point
CYBERGEM777/HIDEAGEM · extras/ComfyUI/HIDEAGEM_NODES.py:209
def entry_point(self, gem_image, password, time_trap_level, validate, gem_files):
password_c = password.encode('utf-8')
file_paths = process_file_paths(gem_files)
file_paths_array = (ctypes.c_char_p * len(file_paths))(*[bytes(fp, 'utf-8') for fp in file_paths])
out_ocean_size = ctypes.c_uint64()
if time_trap_level > -1:
gem_protocol_key = 2
else:
gem_protocol_key = 0
# Clone base image and convert to pointer
in_ocean = (gem_image.clone().cpu().numpy() * 255).astype(np.uint8)
in_ocean_pointer = in_ocean.ctypes.data_as(ctypes.POINTER(ctypes.c_void_p))