summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/m5mols/m5mols.h
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-09-18 11:18:43 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-06 02:28:06 +0200
commitab7ef22419927910e563170db41f0a428d20b0a2 (patch)
tree2602b6202d14880c5c4726603703470cd015d0bd /drivers/media/i2c/m5mols/m5mols.h
parent[media] s5p-fimc: Add support for V4L2_PIX_FMT_S5C_UYVY_JPG fourcc (diff)
downloadlinux-ab7ef22419927910e563170db41f0a428d20b0a2.tar.xz
linux-ab7ef22419927910e563170db41f0a428d20b0a2.zip
[media] m5mols: Implement .get_frame_desc subdev callback
.get_frame_desc can be used by host interface driver to query properties of captured frames, e.g. required memory buffer size. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c/m5mols/m5mols.h')
-rw-r--r--drivers/media/i2c/m5mols/m5mols.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/i2c/m5mols/m5mols.h b/drivers/media/i2c/m5mols/m5mols.h
index 86c815be348c..4ab8b370e665 100644
--- a/drivers/media/i2c/m5mols/m5mols.h
+++ b/drivers/media/i2c/m5mols/m5mols.h
@@ -19,6 +19,13 @@
#include <media/v4l2-subdev.h>
#include "m5mols_reg.h"
+
+/* An amount of data transmitted in addition to the value
+ * determined by CAPP_JPEG_SIZE_MAX register.
+ */
+#define M5MOLS_JPEG_TAGS_SIZE 0x20000
+#define M5MOLS_MAIN_JPEG_SIZE_MAX (5 * SZ_1M)
+
extern int m5mols_debug;
enum m5mols_restype {
@@ -67,12 +74,14 @@ struct m5mols_exif {
/**
* struct m5mols_capture - Structure for the capture capability
* @exif: EXIF information
+ * @buf_size: internal JPEG frame buffer size, in bytes
* @main: size in bytes of the main image
* @thumb: size in bytes of the thumb image, if it was accompanied
* @total: total size in bytes of the produced image
*/
struct m5mols_capture {
struct m5mols_exif exif;
+ unsigned int buf_size;
u32 main;
u32 thumb;
u32 total;