diff options
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; |