Improve decoder and add buffer validator

This commit is contained in:
Kamil Trzcinski
2022-04-08 10:57:55 +02:00
parent 6806a6bdf2
commit 1352df220b
5 changed files with 11 additions and 2 deletions

View File

@ -79,8 +79,7 @@ retry:
// JPEG is in 16x16 blocks (shrink image to fit) (but adapt to 32x32)
// And ISP output
if (strstr(buf_list->name, "JPEG") || strstr(buf_list->name, "H264") || buf_list->do_capture && strstr(buf_list->name, "ISP")
|| strstr(buf_list->name, "DECODER")) {
if (strstr(buf_list->name, "JPEG") || strstr(buf_list->name, "H264") || buf_list->do_capture && strstr(buf_list->name, "ISP")) {
width = shrink_to_block(width, 32);
height = shrink_to_block(height, 32);
E_LOG_VERBOSE(buf_list, "Adapting size to 32x32 block: %dx%d vs %dx%d", orig_width, orig_height, width, height);