static MENU_UPDATE_FUNC(lv_rec_menu_update) { /* get resolutions and stuff */ lv_rec_save_data_t temp_data; memset(&temp_data, 0x00, sizeof(lv_rec_save_data_t)); /* menu options */ temp_data.options.frameSkip = lv_rec_frame_skip; temp_data.options.rawMode = lv_rec_raw_mode; temp_data.options.singleFile = lv_rec_single_file; temp_data.options.linesToSkip = lv_rec_line_skip; lv_rec_update_preset(&temp_data); MENU_SET_VALUE( "%dx%d", temp_data.width, temp_data.finalHeight ); if(lv_rec_raw_mode) { MENU_SET_HELP( "RAW MODE: Saving %d bytes per frame", temp_data.bytesPerLine * temp_data.finalHeight ); } else { MENU_SET_HELP( "YUV422 MODE: Saving %d bytes per frame", temp_data.bytesPerLine * temp_data.finalHeight ); } }
static MENU_UPDATE_FUNC(config_save_update) { if (config_deleted) { MENU_SET_RINFO("Undo"); } MENU_SET_HELP("%s", get_config_dir()); }
static MENU_UPDATE_FUNC(delete_config_update) { if (config_deleted) { MENU_SET_RINFO("Restart"); MENU_SET_WARNING(MENU_WARN_NOT_WORKING, "Restart your camera to complete the process."); } MENU_SET_HELP("Only the current preset: %s", get_config_dir()); }
static MENU_UPDATE_FUNC(config_preset_update) { int preset_changed = (config_new_preset_index != config_preset_index); char* current_preset_name = get_config_preset_name(); MENU_SET_RINFO(current_preset_name); if (config_new_preset_index == 1) /* startup shooting mode */ { char current_mode_name[9]; snprintf(current_mode_name, sizeof(current_mode_name), "%s", (char*) get_shootmode_name(shooting_mode_custom)); if (streq(config_selected_by_mode, current_mode_name)) { MENU_SET_HELP("Config preset is selected by startup mode (on the mode dial)."); } else { MENU_SET_RINFO("%s->%s", current_preset_name, current_mode_name); if (config_selected_by_mode[0]) { MENU_SET_HELP("Camera was started in %s; restart to load the config for %s.", config_selected_by_mode, current_mode_name); } else { MENU_SET_HELP("Restart to load the config for %s mode.", current_mode_name); } } } else if (config_new_preset_index == 2) /* startup key */ { MENU_SET_HELP("At startup, press&hold MENU/PLAY/"INFO_BTN_NAME" to select the cfg preset."); } else /* named preset */ { if (preset_changed) { MENU_SET_HELP("The new config preset will be used after you restart your camera."); MENU_SET_RINFO("Restart"); } } }
static MENU_UPDATE_FUNC(last_bv_upd) { if(last_bv != INT_MIN) { exposure expo = get_exposure(last_bv, 1); expo.av = AV2STR(expo.av); MENU_SET_VALUE("%s%d.%d BV", FMT_FIXEDPOINT1(last_bv)); MENU_SET_HELP("%s f/%d.%d %d ISO %s%d.%d EC", lens_format_shutter(TV2RAW(expo.tv)), expo.av / 10, expo.av % 10, raw2iso(SV2RAW(expo.sv)), FMT_FIXEDPOINT1S(expo.ec) ); } MENU_CUSTOM_DRAW(browse); }
static MENU_UPDATE_FUNC(mem_chk_abort_update) { MENU_SET_VALUE("%d err, %d thr, %s alloc", mem_chk_errors, mem_chk_threads, format_memory_size(mem_chk_allocated)); MENU_SET_HELP("%d errors, %d threads, %s total memory allocated", mem_chk_errors, mem_chk_threads, format_memory_size(mem_chk_allocated)); }