atomisp: Update MACC tables to prevent colors from clipping
authorrepo sync <timo.gerasimow@intel.com>
Thu, 3 May 2012 05:45:13 +0000 (08:45 +0300)
committerbuildbot <buildbot@intel.com>
Wed, 23 May 2012 02:58:03 +0000 (19:58 -0700)
BZ: 27172

Update skin whitening, green enhancement and sky enhancement tables to prevent colors from clipping.

Change-Id: Ibef0d59bf4e97ece9a6e01de65685d4659f3979a
Signed-off-by: repo sync <timo.gerasimow@intel.com>
Reviewed-on: http://android.intel.com:8080/47160
Reviewed-by: Finnila, Tapio <tapio.finnila@intel.com>
Reviewed-by: Wada, Yoshio <yoshio.wada@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Minato, Takehiro <takehiro.minato@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/atomisp/include/atomisp/atomisp_tables.h

index e79e32c..e7f8ea6 100644 (file)
@@ -50,10 +50,10 @@ static struct sh_css_macc_table skin_low_macc_table = {
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
-       7129, 0, 0, 7129,
-       6684, 0, 0, 6684,
-       6684, 0, 0, 6684,
-       7129, 0, 0, 7129,
+       7168, 0, 2048, 8192,
+       5120, -1024, 2048, 8192,
+       8192, 2048, -1024, 5120,
+       8192, 2048, 0, 7168,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
@@ -71,10 +71,10 @@ static struct sh_css_macc_table skin_medium_macc_table = {
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
-       5792, 0, 0, 5792,
-       4456, 0, 0, 4456,
-       4456, 0, 0, 4456,
-       5792, 0, 0, 5792,
+       5120, 0, 6144, 8192,
+       3072, -1024, 2048, 6144,
+       6144, 2048, -1024, 3072,
+       8192, 6144, 0, 5120,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
@@ -92,10 +92,10 @@ static struct sh_css_macc_table skin_high_macc_table = {
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
-       4456, 0, 0, 4456,
-       2228, 0, 0, 2228,
-       2228, 0, 0, 2228,
-       4456, 0, 0, 4456,
+       4096, 0, 8192, 8192,
+       0, -2048, 4096, 6144,
+       6144, 4096, -2048, 0,
+       8192, 8192, 0, 4096,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
@@ -110,6 +110,7 @@ static struct sh_css_macc_table skin_high_macc_table = {
 /*Blue enhencement image effect table*/
 static struct sh_css_macc_table blue_macc_table = {
        .data = {
+       9728, -3072, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
@@ -121,11 +122,10 @@ static struct sh_css_macc_table blue_macc_table = {
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
-       8192, 0, 0, 8192,
-       8192, 0, 0, 8192,
-       11059, 0, 0, 11059,
-       11059, 0, 0, 11059,
-       11059, 0, 0, 11059
+       9728, 0, -3072, 8192,
+       12800, 1536, -3072, 8192,
+       11264, 0, 0, 11264,
+       9728, -3072, 0, 11264
        }
 };
 
@@ -139,11 +139,11 @@ static struct sh_css_macc_table green_macc_table = {
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
-       8192, 0, 0, 8192,
-       11059, 0, 0, 11059,
-       11059, 0, 0, 11059,
-       11059, 0, 0, 11059,
-       8192, 0, 0, 8192,
+       10240, 4096, 0, 8192,
+       10240, 4096, 0, 12288,
+       12288, 0, 0, 12288,
+       14336, -2048, 4096, 8192,
+       10240, 0, 4096, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,
        8192, 0, 0, 8192,