Skip to content

RGB24 and BGR24 cleanup #1749

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

Merged
merged 6 commits into from
Jun 1, 2024
Merged

Conversation

Lord-Grey
Copy link
Collaborator

@Lord-Grey Lord-Grey commented May 31, 2024

Summary

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI of web configuration, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing setups:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's body (e.g. Fixes: #xxx[,#xxx], where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated (docs/docs/en)
  • Related tests have been updated

PLEASE DON'T FORGET TO ADD YOUR CHANGES TO CHANGELOG.MD

  • Yes, CHANGELOG.md is also updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

@Lord-Grey Lord-Grey self-assigned this May 31, 2024
@Lord-Grey Lord-Grey mentioned this pull request May 31, 2024
14 tasks
@Thinner77
Copy link
Contributor

Thinner77 commented May 31, 2024

Great! Can you also complete support for BGR16 and BGR32? Pixelformat.h and ImageResampler already know about these formats, so it's only adding some more "if"s in V4L2 gabber 😄.
wbr

PS: Looks like MF doesn't know about BGR-Formats: https://learn.microsoft.com/de-de/windows/win32/medfound/video-subtype-guids

@Lord-Grey
Copy link
Collaborator Author

Can you also complete support for BGR16 and BGR32?

Done.

It stepped away from BGR16, as I do not think a grey-scale format is too relevant and ImageResampler does not have a implementation yet.

Windows MF is now fixed, too.
Was a good opportunity to get my Windows dev environment up and running again 😀

@Thinner77
Copy link
Contributor

Hi @Lord-Grey,

you are great, and fast 😄 .
But BGR16 isn't a grayscale format and ImageResampler already knows it, i'm confused:

case PixelFormat::BGR16:

wbr

@Lord-Grey
Copy link
Collaborator Author

Lord-Grey commented Jun 1, 2024

ImageResampler already knows it

I am sorry, I confused myself. I was referring to RGB16… :(
I will add it

Thanks for a 2nd pair of eyes reviewing!

@Thinner77
Copy link
Contributor

Thinner77 commented Jun 1, 2024

Hi,

the other option would be to remove support for BGR16 completely because it hasn't been usable so far and nobody seems to have needed it. I don't know, it's your decision. ;-)

wbr

@Lord-Grey
Copy link
Collaborator Author

Lord-Grey commented Jun 1, 2024

the other option would be to remove support for BGR16 completely because it hasn't been usable so far and nobody seems to have needed it.

I do not know if there are side effects on other grabbers.

This reverts commit 4297538.
@Lord-Grey Lord-Grey merged commit 15c305b into hyperion-project:master Jun 1, 2024
18 checks passed
@Lord-Grey Lord-Grey deleted the RGB24_BGR24 branch September 30, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants