diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-09-18 05:18:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-05 20:28:06 -0400 |
commit | ab7ef22419927910e563170db41f0a428d20b0a2 (patch) | |
tree | 2602b6202d14880c5c4726603703470cd015d0bd /drivers/media/i2c/m5mols/m5mols.h | |
parent | 14783d253625618744c200945c29769b3cbcc896 (diff) |
[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.h | 9 |
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 @@ | |||
19 | #include <media/v4l2-subdev.h> | 19 | #include <media/v4l2-subdev.h> |
20 | #include "m5mols_reg.h" | 20 | #include "m5mols_reg.h" |
21 | 21 | ||
22 | |||
23 | /* An amount of data transmitted in addition to the value | ||
24 | * determined by CAPP_JPEG_SIZE_MAX register. | ||
25 | */ | ||
26 | #define M5MOLS_JPEG_TAGS_SIZE 0x20000 | ||
27 | #define M5MOLS_MAIN_JPEG_SIZE_MAX (5 * SZ_1M) | ||
28 | |||
22 | extern int m5mols_debug; | 29 | extern int m5mols_debug; |
23 | 30 | ||
24 | enum m5mols_restype { | 31 | enum m5mols_restype { |
@@ -67,12 +74,14 @@ struct m5mols_exif { | |||
67 | /** | 74 | /** |
68 | * struct m5mols_capture - Structure for the capture capability | 75 | * struct m5mols_capture - Structure for the capture capability |
69 | * @exif: EXIF information | 76 | * @exif: EXIF information |
77 | * @buf_size: internal JPEG frame buffer size, in bytes | ||
70 | * @main: size in bytes of the main image | 78 | * @main: size in bytes of the main image |
71 | * @thumb: size in bytes of the thumb image, if it was accompanied | 79 | * @thumb: size in bytes of the thumb image, if it was accompanied |
72 | * @total: total size in bytes of the produced image | 80 | * @total: total size in bytes of the produced image |
73 | */ | 81 | */ |
74 | struct m5mols_capture { | 82 | struct m5mols_capture { |
75 | struct m5mols_exif exif; | 83 | struct m5mols_exif exif; |
84 | unsigned int buf_size; | ||
76 | u32 main; | 85 | u32 main; |
77 | u32 thumb; | 86 | u32 thumb; |
78 | u32 total; | 87 | u32 total; |