summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Balster <christian.balster@gmail.com>2015-01-08 15:48:23 +0100
committerforkbomb <keepcalm444@gmail.com>2015-11-25 08:13:09 +1100
commit652fcac72314d08d90361398739bc179970a4a97 (patch)
tree255c25a224a6a4e27c8018e44d114c7ef6f16cd7
parent158fe54d9eafec1a0473656dd89b54e0e53f869b (diff)
downloaddevice_samsung_i9300-652fcac72314d08d90361398739bc179970a4a97.zip
device_samsung_i9300-652fcac72314d08d90361398739bc179970a4a97.tar.gz
device_samsung_i9300-652fcac72314d08d90361398739bc179970a4a97.tar.bz2
i9300: include samsung specific camera parameters
Change-Id: Ie8f657544212a70a2ce0c7fb61d050d87f6247f6
-rw-r--r--include/camera/CameraParametersExtra.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/include/camera/CameraParametersExtra.h b/include/camera/CameraParametersExtra.h
new file mode 100644
index 0000000..3542b59
--- /dev/null
+++ b/include/camera/CameraParametersExtra.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2014 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+ #ifndef ANDROID_CAMERA_PARAMETERS_EXTRA_H
+ #define ANDROID_CAMERA_PARAMETERS_EXTRA_H
+
+// parameters adopted from omnirom 4.4
+#define CAMERA_PARAMETERS_EXTRA_C \
+const char CameraParameters::KEY_SUPPORTED_ISO_MODES[] = "iso-values"; \
+const char CameraParameters::KEY_ISO_MODE[] = "iso"; \
+const char CameraParameters::KEY_ANTI_SHAKE_MODE[] = "anti-shake"; \
+const char CameraParameters::KEY_METERING[] = "metering"; \
+const char CameraParameters::KEY_WDR[] = "wdr"; \
+const char CameraParameters::KEY_WEATHER[] = "weather"; \
+const char CameraParameters::KEY_CITYID[] = "contextualtag-cityid"; \
+const char CameraParameters::EFFECT_CARTOONIZE[] = "cartoonize"; \
+const char CameraParameters::EFFECT_POINT_RED_YELLOW[] = "point-red-yellow"; \
+const char CameraParameters::EFFECT_POINT_GREEN[] = "point-green"; \
+const char CameraParameters::EFFECT_POINT_BLUE[] = "point-blue"; \
+const char CameraParameters::EFFECT_VINTAGE_COLD[] = "vintage-cold"; \
+const char CameraParameters::EFFECT_VINTAGE_WARM[] = "vintage-warm"; \
+const char CameraParameters::EFFECT_WASHED[] = "washed"; \
+int CameraParameters::getInt64(const char *key) const { return -1; };
+
+#define CAMERA_PARAMETERS_EXTRA_H \
+ int getInt64(const char *key) const; \
+ static const char KEY_SUPPORTED_ISO_MODES[]; \
+ static const char KEY_ISO_MODE[]; \
+ static const char KEY_ANTI_SHAKE_MODE[]; \
+ static const char KEY_METERING[]; \
+ static const char KEY_WDR[]; \
+ static const char KEY_WEATHER[]; \
+ static const char KEY_CITYID[]; \
+ static const char EFFECT_CARTOONIZE[]; \
+ static const char EFFECT_POINT_RED_YELLOW[]; \
+ static const char EFFECT_POINT_GREEN[]; \
+ static const char EFFECT_POINT_BLUE[]; \
+ static const char EFFECT_VINTAGE_COLD[]; \
+ static const char EFFECT_VINTAGE_WARM[]; \
+ static const char EFFECT_WASHED[];
+
+#endif