### Import PS4 Swizzle Functions Source: https://github.com/aclios/pyswizzle/blob/main/README.md Required imports for performing swizzle operations on PS4 textures. ```python from pyswizzle import ps4_deswizzle, ps4_swizzle ``` -------------------------------- ### nsw_swizzle Source: https://github.com/aclios/pyswizzle/blob/main/README.md Swizzles Nintendo Switch texture data. ```APIDOC ## nsw_swizzle(bytes, im_size, block_size, bytes_per_block, swizzle_mode) ### Description Swizzles a bytes-like object containing Nintendo Switch texture data. ### Parameters - **bytes** (bytes-like object) - Required - The image data to swizzle. - **im_size** (tuple) - Required - The dimensions of the image (width, height). - **block_size** (tuple) - Required - The dimensions of the compression blocks (width, height). - **bytes_per_block** (int) - Required - The number of bytes used to encode one block. - **swizzle_mode** (int) - Required - The swizzle mode for the Nintendo Switch texture. ``` -------------------------------- ### ps4_swizzle Source: https://github.com/aclios/pyswizzle/blob/main/README.md Swizzles PS4 texture data. ```APIDOC ## ps4_swizzle(bytes, im_size, block_size, bytes_per_block) ### Description Swizzles a bytes-like object containing PS4 texture data. ### Parameters - **bytes** (bytes-like object) - Required - The image data to swizzle. - **im_size** (tuple) - Required - The dimensions of the image (width, height). - **block_size** (tuple) - Required - The dimensions of the compression blocks (width, height). - **bytes_per_block** (int) - Required - The number of bytes used to encode one block. ``` -------------------------------- ### Import Nintendo Switch Swizzle Functions Source: https://github.com/aclios/pyswizzle/blob/main/README.md Required imports for performing swizzle operations on Nintendo Switch textures. ```python from pyswizzle import nsw_deswizzle, nsw_swizzle ``` -------------------------------- ### ps4_deswizzle Source: https://github.com/aclios/pyswizzle/blob/main/README.md Deswizzles PS4 texture data. ```APIDOC ## ps4_deswizzle(bytes, im_size, block_size, bytes_per_block) ### Description Deswizzles a bytes-like object containing PS4 texture data. ### Parameters - **bytes** (bytes-like object) - Required - The image data to deswizzle. - **im_size** (tuple) - Required - The dimensions of the image (width, height). - **block_size** (tuple) - Required - The dimensions of the compression blocks (width, height). - **bytes_per_block** (int) - Required - The number of bytes used to encode one block. ``` -------------------------------- ### nsw_deswizzle Source: https://github.com/aclios/pyswizzle/blob/main/README.md Deswizzles Nintendo Switch texture data. ```APIDOC ## nsw_deswizzle(bytes, im_size, block_size, bytes_per_block, swizzle_mode) ### Description Deswizzles a bytes-like object containing Nintendo Switch texture data. ### Parameters - **bytes** (bytes-like object) - Required - The image data to deswizzle. - **im_size** (tuple) - Required - The dimensions of the image (width, height). - **block_size** (tuple) - Required - The dimensions of the compression blocks (width, height). - **bytes_per_block** (int) - Required - The number of bytes used to encode one block. - **swizzle_mode** (int) - Required - The swizzle mode for the Nintendo Switch texture. ``` -------------------------------- ### Perform Nintendo Switch Texture Operations Source: https://github.com/aclios/pyswizzle/blob/main/README.md Functions to deswizzle or swizzle Nintendo Switch texture bytes. ```python deswizzled_bytes = nsw_deswizzle(bytes, im_size, block_size, bytes_per_block, swizzle_mode) ``` ```python swizzled_bytes = nsw_swizzle(bytes, im_size, block_size, bytes_per_block, swizzle_mode) ``` -------------------------------- ### Perform PS4 Texture Operations Source: https://github.com/aclios/pyswizzle/blob/main/README.md Functions to deswizzle or swizzle PS4 texture bytes. ```python deswizzled_bytes = ps4_deswizzle(bytes, im_size, block_size, bytes_per_block) ``` ```python swizzled_bytes = ps4_deswizzle(bytes, im_size, block_size, bytes_per_block) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.