Skip to content

Refactor and Improve Swizzling Functions in OSLib - #49

Merged
dogo merged 1 commit into
masterfrom
feature/improve-oslSwizzleImage
Sep 1, 2024
Merged

Refactor and Improve Swizzling Functions in OSLib#49
dogo merged 1 commit into
masterfrom
feature/improve-oslSwizzleImage

Conversation

@dogo

@dogo dogo commented Sep 1, 2024

Copy link
Copy Markdown
Owner
  • Enhanced oslSwizzleTexture function with improved readability, loop structure, and consistency in variable usage.
  • Added safety check for memory allocation failure in oslSwizzleImage function to handle errors gracefully.
  • Improved documentation and added comments for better understanding of swizzling logic.
  • Standardized pixel width calculations across functions for consistency.
  • Cleaned up redundant code and made minor optimizations in the swizzling process.

- Enhanced `oslSwizzleTexture` function with improved readability, loop structure, and consistency in variable usage.
- Added safety check for memory allocation failure in `oslSwizzleImage` function to handle errors gracefully.
- Improved documentation and added comments for better understanding of swizzling logic.
- Standardized pixel width calculations across functions for consistency.
- Cleaned up redundant code and made minor optimizations in the swizzling process.
@dogo
dogo merged commit ae428f5 into master Sep 1, 2024
@dogo
dogo deleted the feature/improve-oslSwizzleImage branch September 1, 2024 02:54
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