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

Added support for YUV422 #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mdakram28
Copy link

@mdakram28 mdakram28 commented Jan 20, 2024

Minor change in __do_convert_yuv420 can support yuv422 pixel format.

Added a logRowsUVStride parameter which determines the number of rows in output image corresponding to one row in U and V input.

We then set uoffset and voffset depending on this parameter:

uoffset = ((ypos >> logRowsUVStride) * strideu);
voffset = ((ypos >> logRowsUVStride) * stridev);

Tested it with ffmpeg generated YUV422 HEVC video.

Minor change in __do_convert_yuv420 can support yuv422
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.

None yet

1 participant