Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized oslGetImagePixel function for better readability and performance #50

Merged
merged 1 commit into from
Sep 1, 2024

Commits on Sep 1, 2024

  1. 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.
    dogo committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    8cbad64 View commit details
    Browse the repository at this point in the history