Skip to content

Improve oslUnswizzleTexture and oslUnswizzleImage functions - #58

Merged
dogo merged 1 commit into
masterfrom
refactor/oslUnswizzleImage
Sep 2, 2024
Merged

Improve oslUnswizzleTexture and oslUnswizzleImage functions#58
dogo merged 1 commit into
masterfrom
refactor/oslUnswizzleImage

Conversation

@dogo

@dogo dogo commented Sep 2, 2024

Copy link
Copy Markdown
Owner

Description

This PR improves the oslUnswizzleTexture and oslUnswizzleImage functions by enhancing code clarity, memory management, and platform-specific handling.

Key Changes:

  • Improved variable names for better readability.
  • Added error handling for memory allocation in oslUnswizzleImage.
  • Clarified platform-specific code for non-PSP environments.
  • Preserved optimized loop structure for PSP performance.

These changes enhance the maintainability and robustness of the code without altering its existing functionality.

- Enhanced variable naming for better code clarity and readability.
- Added error handling for memory allocation in oslUnswizzleImage.
- Used malloc to allocate memory safely for the temporary buffer.
- Refined platform-specific code with clearer intent for non-PSP platforms.
- Maintained optimized loop structure for texture unswizzling on PSP.
@dogo
dogo merged commit a2d9d3c into master Sep 2, 2024
@dogo
dogo deleted the refactor/oslUnswizzleImage branch September 2, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant