summaryrefslogtreecommitdiffstats
path: root/camera/exynos_camera.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-07-30 23:11:46 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-07-30 23:14:03 +0200
commit5099a80f5a8ac7a09588575563648acf35992792 (patch)
treea306fc78710193956643e1fa0e6558122bdbd87b /camera/exynos_camera.c
parent3b8230bbf25de7fb8695f37f35071a801d3a9557 (diff)
downloaddevice_samsung_galaxys2-common-5099a80f5a8ac7a09588575563648acf35992792.zip
device_samsung_galaxys2-common-5099a80f5a8ac7a09588575563648acf35992792.tar.gz
device_samsung_galaxys2-common-5099a80f5a8ac7a09588575563648acf35992792.tar.bz2
camera: Coding style (for loops, whitespaces and newlines)
Change-Id: Icc042027fa3bd37fc2815e7756a1743745be450e Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'camera/exynos_camera.c')
-rw-r--r--camera/exynos_camera.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/camera/exynos_camera.c b/camera/exynos_camera.c
index 6d9ad9c..504cf4c 100644
--- a/camera/exynos_camera.c
+++ b/camera/exynos_camera.c
@@ -1552,7 +1552,7 @@ void exynos_camera_picture_stop(struct exynos_camera *exynos_camera)
pthread_mutex_unlock(&exynos_camera->picture_mutex);
// Wait for the thread to end
- for (i=0 ; i < 10 ; i++) {
+ for (i = 0; i < 10; i++) {
if (!exynos_camera->picture_thread_running)
break;
@@ -1622,7 +1622,7 @@ thread_exit:
if (EXYNOS_CAMERA_MSG_ENABLED(CAMERA_MSG_FOCUS) && EXYNOS_CAMERA_CALLBACK_DEFINED(notify))
exynos_camera->callbacks.notify(CAMERA_MSG_FOCUS,
(int32_t) auto_focus_result, 0, exynos_camera->callbacks.user);
-
+
exynos_camera->auto_focus_thread_running = 0;
exynos_camera->auto_focus_enabled = 0;
@@ -1684,7 +1684,7 @@ void exynos_camera_auto_focus_stop(struct exynos_camera *exynos_camera)
pthread_mutex_unlock(&exynos_camera->auto_focus_mutex);
// Wait for the thread to end
- for (i=0 ; i < 10 ; i++) {
+ for (i = 0; i < 10; i++) {
if (!exynos_camera->auto_focus_thread_running)
break;
@@ -1926,7 +1926,7 @@ int exynos_camera_preview_start(struct exynos_camera *exynos_camera)
return -1;
}
- for (i=EXYNOS_CAMERA_MAX_BUFFERS_COUNT ; i >= EXYNOS_CAMERA_MIN_BUFFERS_COUNT ; i--) {
+ for (i = EXYNOS_CAMERA_MAX_BUFFERS_COUNT; i >= EXYNOS_CAMERA_MIN_BUFFERS_COUNT; i--) {
rc = exynos_v4l2_reqbufs_cap(exynos_camera, 0, i);
if (rc >= 0)
break;
@@ -1952,7 +1952,7 @@ int exynos_camera_preview_start(struct exynos_camera *exynos_camera)
}
frame_size = (int) ((float) width * (float) height * format_bpp);
- for (i=0 ; i < exynos_camera->preview_buffers_count ; i++) {
+ for (i = 0; i < exynos_camera->preview_buffers_count; i++) {
rc = exynos_v4l2_querybuf_cap(exynos_camera, 0, i);
if (rc < 0) {
ALOGE("%s: querybuf failed!", __func__);
@@ -1985,7 +1985,7 @@ int exynos_camera_preview_start(struct exynos_camera *exynos_camera)
return -1;
}
- for (i=0 ; i < exynos_camera->preview_buffers_count ; i++) {
+ for (i = 0; i < exynos_camera->preview_buffers_count; i++) {
rc = exynos_v4l2_qbuf_cap(exynos_camera, 0, i);
if (rc < 0) {
ALOGE("%s: qbuf failed!", __func__);
@@ -2064,7 +2064,7 @@ void exynos_camera_preview_stop(struct exynos_camera *exynos_camera)
pthread_mutex_lock(&exynos_camera->preview_mutex);
// Wait for the thread to end
- for (i=0 ; i < 10 ; i++) {
+ for (i = 0; i < 10; i++) {
if (!exynos_camera->preview_thread_running)
break;
@@ -2154,7 +2154,7 @@ int exynos_camera_recording_start(struct exynos_camera *exynos_camera)
goto error;
}
- for (i=EXYNOS_CAMERA_MAX_BUFFERS_COUNT ; i >= EXYNOS_CAMERA_MIN_BUFFERS_COUNT ; i--) {
+ for (i = EXYNOS_CAMERA_MAX_BUFFERS_COUNT; i >= EXYNOS_CAMERA_MIN_BUFFERS_COUNT; i--) {
rc = exynos_v4l2_reqbufs_cap(exynos_camera, 2, i);
if (rc >= 0)
break;
@@ -2168,7 +2168,7 @@ int exynos_camera_recording_start(struct exynos_camera *exynos_camera)
exynos_camera->recording_buffers_count = rc;
ALOGD("Found %d recording buffers available!", exynos_camera->recording_buffers_count);
- for (i=0 ; i < exynos_camera->recording_buffers_count ; i++) {
+ for (i = 0; i < exynos_camera->recording_buffers_count; i++) {
rc = exynos_v4l2_querybuf_cap(exynos_camera, 2, i);
if (rc < 0) {
ALOGE("%s: querybuf failed!", __func__);
@@ -2192,7 +2192,7 @@ int exynos_camera_recording_start(struct exynos_camera *exynos_camera)
goto error;
}
- for (i=0 ; i < exynos_camera->recording_buffers_count ; i++) {
+ for (i = 0; i < exynos_camera->recording_buffers_count; i++) {
rc = exynos_v4l2_qbuf_cap(exynos_camera, 2, i);
if (rc < 0) {
ALOGE("%s: qbuf failed!", __func__);