SX200is Porting - page 44 - DryOS Development - CHDK Forum

SX200is Porting

  • 1105 Replies
  • 575959 Views
*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: SX200is Porting
« Reply #430 on: 24 / September / 2009, 06:28:59 »
Advertisements
@ADamb

have you see this ? (also in gui.c)
Quote
void gui_draw_osd() {
    unsigned int m, n = 0, mode_photo, mode_video;
    coord x;
#if CAM_SWIVEL_SCREEN
    static int flashlight = 0;
#endif
    static int pressed = 0;
    static int half_disp_press_old=0;
    int half_disp_press;
    int need_restore = 0;
    m = mode_get();

// uncomment if you want debug values always on top
//   gui_draw_debug_vals_osd();


note this is from vanilla trunk 803 @line 2643

hth,

wim

*

Offline ADamb

  • **
  • 65
  • sx200is
Re: SX200is Porting
« Reply #431 on: 24 / September / 2009, 07:03:08 »
// uncomment if you want debug values always on top
//   gui_draw_debug_vals_osd();

This is not helping, I'm talking about gui_compare_props (the last one in gui.c),
which should show changes in PROPS for 15 seconds...

Solved by redirection to file:
Code: [Select]
void gui_compare_props(int arg)
{
  #define NUM_PROPS 512
  static int initialized = 0;
  static int props[NUM_PROPS] = { };
  char buf[64];
  int i;
  int p;
  int fd;
  static int cnt=1;
  static char fn[32];
  if( initialized )
  { // we have previous data set! do a comparison
    mkdir("A/LOG");
    sprintf(fn,"A/LOG/PROP_LOG.txt");
    fd = open(fn, O_WRONLY|O_CREAT|O_APPEND, 0777);
    if (fd)
    {
      for( i = 0; i < NUM_PROPS; ++i )
      {
        p = shooting_get_prop(i);
        if( props[i] != p )
        {
          sprintf(buf,"%4d is %8d was %8d\n",i,p,props[i]);
          write(fd,buf,strlen(buf));
        }
        props[i] = p;
      }
      sprintf(buf,"%s","A/LOG/PROP_LOG.txt");
      draw_string(16,16,buf,MAKE_COLOR(COLOR_BLACK,COLOR_YELLOW));
      write(fd, "\n", 1);
      close(fd);
    }
  }
  else
  {
  // no previous data was set so we save the data initially
    for( i = 0; i < NUM_PROPS; ++i )
    {
      props[i] = shooting_get_prop(i);
    }
  }
  initialized = 1;
}
« Last Edit: 24 / September / 2009, 14:26:31 by ADamb »
SX200 IS-100C

*

Offline ihar

  • **
  • 55
Re: SX200is Porting
« Reply #432 on: 24 / September / 2009, 09:07:35 »
Excuse, but these lines have brought?
http://chdk.setepontos.com/index.php/topic,3994.msg40219.html#msg40219

Apropos optical zoom
Ihar

*

Offline OldGit

  • ****
  • 303
Re: SX200is Porting
« Reply #433 on: 24 / September / 2009, 09:17:13 »
Excuse, but these lines have brought?
Apropos optical zoom
@ihar,
we have not changed any code recently, as @reyalp is checking the code for publication.
Once we get the port published we can fix, test and patch the remaining bugs.
If you keep a record of any fixes you have, I will also do the same, we can apply them later.

One thing, what difference does it make what key is used, the sx200 DOES have a zoom lever, I'm confused
OldGit
SX200 IS-100C

*

Offline ihar

  • **
  • 55
Re: SX200is Porting
« Reply #434 on: 24 / September / 2009, 09:32:35 »
to OldGit.
change this line for change lever button to eraze button.

Ihar

*

Offline OldGit

  • ****
  • 303
Re: SX200is Porting
« Reply #435 on: 24 / September / 2009, 09:40:45 »
@ihar,
I understand you are changing the button from zoom_out to erase, but I am asking what this will do for the optical zoom function.
The only difference I can find is the button used, it does not fix the optical zoom.
Or am I missing something ?.
OldGit
SX200 IS-100C

*

Offline ihar

  • **
  • 55
Re: SX200is Porting
« Reply #436 on: 24 / September / 2009, 09:53:21 »
OldGit,
It changes only the button. Simply if we start to remove with increase> 1 to press but zoom_out it is not so good, when there is a possibility to press eraze and to approach further.

Ihar

*

Offline OldGit

  • ****
  • 303
Re: SX200is Porting
« Reply #437 on: 24 / September / 2009, 09:59:13 »
@ihar,
not sure I understand but I will look at it, thanks
OldGit
SX200 IS-100C

*

Offline ihar

  • **
  • 55
Re: SX200is Porting
« Reply #438 on: 24 / September / 2009, 10:22:31 »
OldGit,
i now edit autofokus for zoom in movie_record.
problem with makeAfscan address and another additions addreses

Ihar

Re: SX200is Porting
« Reply #439 on: 25 / September / 2009, 00:55:23 »
Good Morning

When is the Port Ready for the Trunk?
What points open zo have a clean the Source for Porting?

So we have one Source, to Fix the Rest.

Smartkiller
SX200 IS Firm. 100c
SX1 IS Firm. 201a

 

Related Topics


SimplePortal © 2008-2014, SimplePortal