Messages in this thread | | | From | Jernej Škrabec <> | Subject | Re: [PATCH 4/9] media: v4l2: Add JPEG pixel format to v4l2 format info | Date | Sat, 25 Mar 2023 08:08:17 +0100 |
| |
Dne petek, 24. marec 2023 ob 16:12:23 CET je Paul Kocialkowski napisal(a): > Represent the JPEG pixel format in the v4l2 format info table. > > Note that the bpp is set to 1 which is not a proper way to estimate > the needed buffer size for a given JPEG image. However the compression > ratios of JPEG typically allow fitting the image in a smaller size, > even though extra metadata could increase the total size by an > arbitrary amount. Thus it is not a perfectly safe way to calculate the > size of a JPEG buffer for given dimensions but it still provides a > reasonable approach. > > Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards, Jernej
| |