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

Codaj12 samples don't work with small buffer size #5

Open
alyona-eryomina opened this issue Jun 28, 2023 · 0 comments
Open

Codaj12 samples don't work with small buffer size #5

alyona-eryomina opened this issue Jun 28, 2023 · 0 comments

Comments

@alyona-eryomina
Copy link

Hello!
I have a question about buffer usage for codaj12 accelerator. I am using the StarFive VisionFive2 board and examples from this repository.
In the documentation on using the JpgDecOpenParam structure, it is written about the pBitStream field that the buffer size should not exceed 16383 x 1024 bytes, and the minimum size is 1024. How to properly use this buffer when decoding? It is clear that I can allocate a lot of memory for it and load the whole picture, but is it possible to use a small buffer and load the bitstream as it is decoded (as, for example, done in libjpeg)? I could not run the examples provided above on a small buffer: either the decoding falls, or the image is not completely decoded.
Thanks in advance for your reply!

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