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

[Feature] Custom image strides support #532

Open
FaiScofield opened this issue Jul 11, 2023 · 0 comments
Open

[Feature] Custom image strides support #532

FaiScofield opened this issue Jul 11, 2023 · 0 comments

Comments

@FaiScofield
Copy link

FaiScofield commented Jul 11, 2023

I wonder if there is a plan to support the custom image strides(or called pitches), with which the users can set the special strides of each plans for a YUV format.

My work relates to lots of aligned raw YUV/RGB formats, which means there are some padding after the real valid data at the end of each line of an image. For example, the following images cannot be analyzed correctly:

  • YUV444SP with 720x480 size and 64 bytes alignment to each plan independently, the image strides are [768, 1472]. But only we flow the default strides (which are [768, 768x2=1536]) can the image be analyzed correctly.
  • RGB888 with 720x480 size and 64 bytes alignment, the image stride is (720x3+63)/64x64=2176. But 2176 is not a multiple of 3, so the image cannot be analyzed neither.

As far as I know, this feature is valid on PixelViewer. Let me know your opinions, and I'm willing to help.
Thanks.

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

1 participant