Example #1
0
//-------------------------------------------------------------------
void gui_osd_draw_raw_info(int is_osd_edit) 
{
    if (is_osd_edit ||
        (conf.save_raw && conf.show_raw_state && 
         !camera_info.state.mode_video && !camera_info.state.is_shutter_half_press && 
         camera_info.state.mode_rec_or_review
        )
       )
    {
        static int b;
        if (is_raw_enabled() || is_osd_edit)
        { 
            int raw_count = GetRawCount();
            twoColors col = user_color(((raw_count > conf.remaining_raw_treshold) || (b <= 6)) ? conf.osd_color : conf.osd_color_warn);
            if (conf.show_remaining_raw || is_osd_edit) 
            {
                sprintf(osd_buf, "%s:%3d", (conf.dng_raw)?"DNG":"RAW", raw_count);
                draw_osd_string(conf.mode_raw_pos, 0, 0, osd_buf, col, conf.mode_raw_scale);
            }
            else
                draw_osd_string(conf.mode_raw_pos, 0, 0, (conf.dng_raw)?"DNG":"RAW", col, conf.mode_raw_scale);
            if (++b > 12) b = 0;
        }   
        else if (conf.raw_exceptions_warn)
        {
            gui_print_osd_state_string_chr((conf.dng_raw)?"DNG Disabled":"RAW Disabled",""); 
        }
    }
}
Example #2
0
static int luaCB_get_raw_count( lua_State* L )
{
    lua_pushnumber( L, GetRawCount() );
    return 1;
}