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

Encoding from RGB 24 frame buffers handling stride / pitch #189

Open
antonio-pasini opened this issue May 30, 2024 · 0 comments
Open

Encoding from RGB 24 frame buffers handling stride / pitch #189

antonio-pasini opened this issue May 30, 2024 · 0 comments

Comments

@antonio-pasini
Copy link

I'd love to use LodePNG to encode a 24 bpp 800x480 frame buffer, but my embedded board has a weird frame buffer scan line pitch: each line must have a length multiple of 128 bytes.

So each line of the frame buffer is 3*800 + 32 bytes = 2432 bytes, not even a pixel multiple.

Woule be really difficult to find enough ram to make a whole copy of that in another region to have contiguous pixels.

Is there a way to use LodePNG with unconventional pixel source formats ? Even if slower, of course.

Or just feeding a line at a time, converted in contiguous pixel form, that would do also.

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

1 participant