|
|
@@ -16,6 +16,19 @@ const uint32_t orientation_value[4] = {
|
|
|
CameraSuiteOrientation270,
|
|
|
};
|
|
|
|
|
|
+// Possible dithering types for the camera.
|
|
|
+const char* const dither_text[28] = {
|
|
|
+ "Floyd-Steinberg",
|
|
|
+ "Stucki",
|
|
|
+ "Jarvis-Judice-Ninke",
|
|
|
+};
|
|
|
+
|
|
|
+const uint32_t dither_value[4] = {
|
|
|
+ CameraSuiteDitherFloydSteinberg,
|
|
|
+ CameraSuiteDitherStucki,
|
|
|
+ CameraSuiteDitherJarvisJudiceNinke,
|
|
|
+};
|
|
|
+
|
|
|
const char* const haptic_text[2] = {
|
|
|
"OFF",
|
|
|
"ON",
|
|
|
@@ -54,6 +67,14 @@ static void camera_suite_scene_settings_set_camera_orientation(VariableItem* ite
|
|
|
app->orientation = orientation_value[index];
|
|
|
}
|
|
|
|
|
|
+static void camera_suite_scene_settings_set_camera_dither(VariableItem* item) {
|
|
|
+ CameraSuite* app = variable_item_get_context(item);
|
|
|
+ uint8_t index = variable_item_get_current_value_index(item);
|
|
|
+
|
|
|
+ variable_item_set_current_value_text(item, dither_text[index]);
|
|
|
+ app->dither = dither_value[index];
|
|
|
+}
|
|
|
+
|
|
|
static void camera_suite_scene_settings_set_haptic(VariableItem* item) {
|
|
|
CameraSuite* app = variable_item_get_context(item);
|
|
|
uint8_t index = variable_item_get_current_value_index(item);
|
|
|
@@ -97,6 +118,17 @@ void camera_suite_scene_settings_on_enter(void* context) {
|
|
|
variable_item_set_current_value_index(item, value_index);
|
|
|
variable_item_set_current_value_text(item, orientation_text[value_index]);
|
|
|
|
|
|
+ // Camera Dither Type
|
|
|
+ item = variable_item_list_add(
|
|
|
+ app->variable_item_list,
|
|
|
+ "Dithering Type:",
|
|
|
+ 3,
|
|
|
+ camera_suite_scene_settings_set_camera_dither,
|
|
|
+ app);
|
|
|
+ value_index = value_index_uint32(app->dither, dither_value, 3);
|
|
|
+ variable_item_set_current_value_index(item, value_index);
|
|
|
+ variable_item_set_current_value_text(item, dither_text[value_index]);
|
|
|
+
|
|
|
// Haptic FX ON/OFF
|
|
|
item = variable_item_list_add(
|
|
|
app->variable_item_list, "Haptic FX:", 2, camera_suite_scene_settings_set_haptic, app);
|