root/platform/ixus175_elph180/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. DoMFLock
  4. UnlockMF

   1 #include "../generic/wrappers.c"
   2 
   3 // Big copy paste, but should be generic
   4 // We do have the SS_MFOn/Off stubs
   5 
   6 long lens_get_focus_pos()
   7 {
   8     return _GetFocusLensSubjectDistance();
   9 }
  10 
  11 long lens_get_focus_pos_from_lens()
  12 {
  13     return _GetFocusLensSubjectDistanceFromLens();
  14 }
  15 
  16  //--------------------------------------------------
  17  // DoMFLock : use _MFOn/_MFOff  or  _PT_MFOn/_PT_MFOff  or _SS_MFOn/_SS_MFOff if defined in stubs_entry.S
  18  //            otherwise use PostLogicalEventForNotPowerType(levent_id_for_name(PressSW1andMF),0); (see sx500hs for an example)
  19 
  20 int DoMFLock(void)
  21 {
  22   if (!camera_info.state.mode_play) {
  23      _SS_MFOn();
  24      return(1);
  25   }
  26   return(0);
  27 }
  28 
  29 int UnlockMF(void)
  30 {
  31   if (!camera_info.state.mode_play) {
  32      _SS_MFOff();
  33      return(1);
  34   }
  35   return(0);
  36 }
  37 

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