Skip to content

Optimized oslGetImagePixel function for better readability and performance - #50

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

Optimized oslGetImagePixel function for better readability and performance#50
dogo merged 1 commit into
masterfrom
feature/improve-oslGetImagePixel

Conversation

@dogo

@dogo dogo commented Sep 1, 2024

Copy link
Copy Markdown
Owner
  • Added early boundary checks for x and y coordinates to prevent unnecessary processing.
  • Simplified switch-case structure and improved 4-bit pixel format handling.
  • Enhanced error handling for unsupported pixel formats.
  • Ensured the function returns -1 for out-of-bounds or unsupported cases.

…mance

- Added early boundary checks for x and y coordinates to prevent unnecessary processing.
- Simplified switch-case structure and improved 4-bit pixel format handling.
- Enhanced error handling for unsupported pixel formats.
- Ensured the function returns -1 for out-of-bounds or unsupported cases.
@dogo
dogo merged commit 8ace700 into master Sep 1, 2024
@dogo
dogo deleted the feature/improve-oslGetImagePixel branch September 1, 2024 03:03
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