Skip to content

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

@alyona-eryomina

Description

@alyona-eryomina

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions