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

On the front page, I do not understand explanation of 4:2:2 etc #83

Open
vonj opened this issue Jun 25, 2019 · 4 comments
Open

On the front page, I do not understand explanation of 4:2:2 etc #83

vonj opened this issue Jun 25, 2019 · 4 comments

Comments

@vonj
Copy link

vonj commented Jun 25, 2019

The text says "y is the number of changes of chroma samples between the first and seconds rows of a pixels."

But isn't it more accurate to say:

"y is the number of changes of chroma samples between the first and last rows of a pixels."

If not, I still don't understand how chroma subsampling is used!

@matteocontrini
Copy link
Contributor

The sentence referes to the grid that is taken as a reference for chroma subsampling. When you say 4:*:* you mean a grid that has 4 columns and 2 rows (the 2 is fixed). So the y is the number of changes between the first row in the grid and the second row in the grid.

We had a discussion about chroma subsampling previously in #24, you might find useful reading it :)

@vonj
Copy link
Author

vonj commented Jun 25, 2019 via email

@matteocontrini
Copy link
Contributor

It's usually 4 by 2, with some uncommon exceptions like 4:1:0 and 4:2:1, according to Wikipedia.

@vonj
Copy link
Author

vonj commented Jun 26, 2019

I may create sample images of how I understand the situation... but later in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants