root/platform/ixus30_sd200/wrappers.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. lens_get_focus_pos
  2. lens_get_focus_pos_from_lens
  3. lens_get_target_distance
  4. DoMFLock
  5. UnlockMF

   1 #include "keyboard.h"
   2 #include "conf.h"
   3 #include "platform.h"
   4 #include "../generic/wrappers.c"
   5 
   6 extern int rec_mode_active(void);
   7 
   8 long lens_get_focus_pos()
   9 {
  10 //    static long v=65535;
  11 //    return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run|| shooting_get_common_focus_mode())?v=_GetFocusLensSubjectDistance():v;
  12     if (rec_mode_active())
  13         return _GetFocusLensSubjectDistance();
  14     else
  15         return 65535;
  16 }
  17 
  18 long lens_get_focus_pos_from_lens()
  19 {
  20 //    static long v=CAMERA_MAX_DIST;
  21 //    return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run  || shooting_get_common_focus_mode())?v=_GetFocusLensSubjectDistanceFromLens():v;
  22     if (rec_mode_active())
  23         return _GetFocusLensSubjectDistanceFromLens();
  24     else
  25         return CAMERA_MAX_DIST;
  26 }
  27 
  28 
  29 long lens_get_target_distance()
  30 {
  31 //    static long v=65535;
  32 //    return (kbd_is_key_pressed(KEY_SHOOT_HALF) || camera_info.state.state_kbd_script_run|| shooting_get_common_focus_mode())?v=_GetCurrentTargetDistance():v;
  33     if (rec_mode_active())
  34         return _GetCurrentTargetDistance();
  35     else
  36         return 65535;
  37 }
  38 
  39  
  40  //--------------------------------------------------
  41  // DoMFLock : use _MFOn/_MFOff  or  _PT_MFOn/_PT_MFOff  or _SS_MFOn/_SS_MFOff if defined in stubs_entry.S
  42  //            otherwise use PostLogicalEventForNotPowerType(levent_id_for_name(PressSW1andMF),0); (see sx500hs for an example)
  43  
  44 int DoMFLock(void)
  45 {
  46   return(0);
  47  
  48 }
  49  
  50 int UnlockMF(void)
  51 {
  52   return(0);
  53  
  54 }

/* [<][>][^][v][top][bottom][index][help] */