Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimized oslGetImagePixel function for better readability and perfor…
…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.
- Loading branch information