Skip to content

feat: fix brightness filter implementation for proper GCC compatibility#26

Merged
harshsankhla18 merged 3 commits intoOPCODE-Open-Spring-Fest:mainfrom
sam131725:feature/brightness-adjust
Oct 23, 2025
Merged

feat: fix brightness filter implementation for proper GCC compatibility#26
harshsankhla18 merged 3 commits intoOPCODE-Open-Spring-Fest:mainfrom
sam131725:feature/brightness-adjust

Conversation

@sam131725
Copy link
Copy Markdown
Contributor

Description
This pull request fixes the brightness filter implementation to work correctly with GCC and proper argument parsing. The previous implementation had flawed argument parsing logic that prevented the brightness filter from functioning properly.
Key fixes:
Corrected getopt() usage with proper while loop and optarg handling
Fixed filters string to include vignette support ("bgrsivB:")
Updated brightness value parsing to use standard optarg instead of manual argv parsing
Added missing vignette filter case in switch statement
Fixed loop counter to use actual parsed filter count
The brightness filter now works correctly with the usage format: ./filter -B 40 input.bmp output.bmp
Semver Changes
[ ] Patch (bug fix, no new features)
[x] Minor (new features, no breaking changes)
[ ] Major (breaking changes)
Issues
Closes #17
Checklist
[x] I have read the Contributing Guidelines.

@harshsankhla18
Copy link
Copy Markdown
Collaborator

harshsankhla18 commented Oct 22, 2025

@saumya1317 Resolve the conflict and validate the commit

@harshsankhla18 harshsankhla18 merged commit fb2260f into OPCODE-Open-Spring-Fest:main Oct 23, 2025
0 of 2 checks passed
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.

[Feature]: Brightness Adjust

2 participants