Add camera_decoder

This commit is contained in:
Kamil Trzcinski
2022-04-05 14:54:11 +02:00
parent a1c43cbf2d
commit 77fc9bfdbb
4 changed files with 58 additions and 6 deletions

View File

@ -85,6 +85,10 @@ retry:
E_LOG_INFO(buf_list, "Adapting size to 32x32 block: %dx%d vs %dx%d", orig_width, orig_height, width, height);
}
if (format == V4L2_PIX_FMT_H264) {
bytesperline = 0;
}
if (buf_list->do_mplanes) {
fmt->fmt.pix_mp.colorspace = V4L2_COLORSPACE_JPEG;
fmt->fmt.pix_mp.width = width;