From: Philipp Zabel Date: Thu, 2 Oct 2014 17:08:35 +0000 (-0300) Subject: [media] coda: allow userspace to set compressed buffer size in a certain range X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~350 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c6a416b9d57af6ff8a2dc71f81dad70dbefb2b;p=pandora-kernel.git [media] coda: allow userspace to set compressed buffer size in a certain range For small frame sizes, allocating 1 MiB per compressed buffer is a waste of space. On the other hand, incompressible 1080p data can produce JPEGs larger than 1 MiB at higher quality settings. Allow userspace to set the compressed buffer size and clamp the value to a sensible range. Also set the initial sizeimage to a value inside the range allowed by try_fmt. While at it, reduce the default image size to a maximum of 1920*1088 (otherwise JPEG will default to 8k*8k and 96 MiB buffers). Signed-off-by: Philipp Zabel Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed