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

did this code support VGA resolution? #25

Closed
9crk opened this issue Mar 15, 2019 · 2 comments
Closed

did this code support VGA resolution? #25

9crk opened this issue Mar 15, 2019 · 2 comments

Comments

@9crk
Copy link

9crk commented Mar 15, 2019

as the code:

bool fmt2jpg(uint8_t *src, size_t src_len, uint16_t width, uint16_t height, pixformat_t format, uint8_t quality, uint8_t ** out, size_t * out_len)
{
    //todo: allocate proper buffer for holding JPEG data
    //this should be enough for CIF frame size
    int jpg_buf_len = 24*1024;

which indicate it only support 24K buffer for picture encoding.
when I want to encode a 640*480 YUV picture.it says the buffer is too small.

then I change this to 240*1024 .but it did not work.

so my question is: does this project truly support VGA or bigger picture encoding?

@9crk
Copy link
Author

9crk commented Mar 15, 2019

picture
this is what it turns out when I use 640*480 pictures.

@github-actions
Copy link

This issue appears to be stale. Please close it if its no longer valid.

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