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

pixelformats: Use pixel groups instead of verticalsubsampling #2

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

tomba
Copy link
Owner

@tomba tomba commented Nov 1, 2024

At some point we have horizontalsubsampling and verticalsubsampling. Then we had bytespergroup and verticalsubsampling, i.e. a mix of the concept of pixel group and subsampling.

Let's just drop the subsampling totally, as we can represent the subsamplings with a rectangular pixel group.

So, now we have 'pixelspergroup' for each PixelFormat, which tells the width and height, in pixels and lines, of a pixel group. And for each plane, we have 'bytespergroup' which tells the number of bytes a pixel group takes horizontally on that plane, and 'linespergroup' which tells the number of lines a pixel group takes on that plane.

At some point we have horizontalsubsampling and verticalsubsampling.
Then we had bytespergroup and verticalsubsampling, i.e. a mix of the
concept of pixel group and subsampling.

Let's just drop the subsampling totally, as we can represent the
subsamplings with a rectangular pixel group.

So, now we have 'pixelspergroup' for each PixelFormat, which tells the
width and height, in pixels and lines, of a pixel group. And for each
plane, we have 'bytespergroup' which tells the number of bytes a pixel
group takes horizontally on that plane, and 'linespergroup' which tells
the number of lines a pixel group takes on that plane.

Signed-off-by: Tomi Valkeinen <[email protected]>
@tomba tomba merged commit 645d311 into master Nov 2, 2024
5 checks passed
@tomba tomba deleted the pixgroup branch November 2, 2024 09:00
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