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

About stride support? #5

Open
clclon opened this issue Jan 2, 2020 · 2 comments
Open

About stride support? #5

clclon opened this issue Jan 2, 2020 · 2 comments

Comments

@clclon
Copy link

clclon commented Jan 2, 2020

Do you have any plans to add stride support for the input buffer?

@stbrumme
Copy link
Owner

stbrumme commented Jan 2, 2020

No, but I'm working on a substantial rewrite of toojpeg which supports more input formats, such as RGBA, BGR, YUV, etc.
I will take a look at the performance impact ("runtime cost") and decide whether it's worth it or not.

@clclon
Copy link
Author

clclon commented Jan 2, 2020

Thanks in advance for possible support in this matter. there is not much work, you need to take into account the difference between width and stride, skipping this difference for processing.

For example: the real image has dimensions 600x1024, the stride is 608. You need to process as usual 600 pixels horizontally, and skip 8 pixels by rewinding the buffer.

If necessary, I can lay out a buffer with a reference stride as a .raw file

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

No branches or pull requests

2 participants