[OMAPZOOM][PATCH 3/7] OMAP3ISP: Preview: Dynamic update of Color effects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 7489c709a46cbc2f0c4fe4f6ed716597b930a0fe Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@xxxxxx>
Date: Tue, 6 Jan 2009 14:17:35 -0600
Subject: [PATCH] OMAP3ISP: Preview: Dynamic update of Color effects

This patch allows to update color effects instantly when streaming is off.

Signed-off-by: Sergio Aguirre <saaguirre@xxxxxx>
---
 drivers/media/video/isp/isppreview.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/isp/isppreview.c b/drivers/media/video/isp/isppreview.c
index 4bd2ed5..3c214c3 100755
--- a/drivers/media/video/isp/isppreview.c
+++ b/drivers/media/video/isp/isppreview.c
@@ -1457,7 +1457,15 @@ EXPORT_SYMBOL(isppreview_get_brightness_range);
 void isppreview_set_color(u8 *mode)
 {
 	ispprev_obj.color = *mode;
-	update_color_matrix = 1;
+	spin_lock(&ispprev_obj.ispprev_lock);
+	if (ispprev_obj.stream_on == 0) {
+		isppreview_config_rgb_to_ycbcr(
+			flr_prev_csc[ispprev_obj.color]);
+		update_color_matrix = 0;
+	} else
+		update_color_matrix = 1;
+
+	spin_unlock(&ispprev_obj.ispprev_lock);
 }
 EXPORT_SYMBOL(isppreview_set_color);
 
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux