diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-07-01 19:11:54 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-07-01 19:11:54 +0200 |
commit | 3bb9a149456e64a9a17bfcfc8b17112c511c9802 (patch) | |
tree | e7abbea66a0aef6a77394956f26a290253fae52c /camera/smdk4210_camera.h | |
parent | 27bca80f9f0e6e32f50b0acc3c1fe9bdd328790c (diff) | |
download | device_samsung_galaxys2-common-3bb9a149456e64a9a17bfcfc8b17112c511c9802.zip device_samsung_galaxys2-common-3bb9a149456e64a9a17bfcfc8b17112c511c9802.tar.gz device_samsung_galaxys2-common-3bb9a149456e64a9a17bfcfc8b17112c511c9802.tar.bz2 |
camera: Aligned buffer size calculation
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'camera/smdk4210_camera.h')
-rw-r--r-- | camera/smdk4210_camera.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camera/smdk4210_camera.h b/camera/smdk4210_camera.h index e6cf911..d20c1cd 100644 --- a/camera/smdk4210_camera.h +++ b/camera/smdk4210_camera.h @@ -42,6 +42,8 @@ #define SMDK4210_CAMERA_CALLBACK_DEFINED(cb) \ (smdk4210_camera->callbacks.cb != NULL) +#define SMDK4210_CAMERA_ALIGN(value) ((value + (0x10000 - 1)) & ~(0x10000 - 1)) + /* * Structures */ @@ -230,7 +232,6 @@ struct smdk4210_camera { int preview_width; int preview_height; int preview_format; - float preview_format_bpp; int preview_fps; int picture_width; int picture_height; @@ -286,6 +287,8 @@ enum m5mo_af_status { * Camera */ +int smdk4210_camera_buffer_length(int width, int height, int format); + int smdk4210_camera_params_init(struct smdk4210_camera *smdk4210_camera, int id); int smdk4210_camera_params_apply(struct smdk4210_camera *smdk4210_camera); |