PowerShot SX210 IS - Porting Thread - page 23 - General Discussion and Assistance - CHDK Forum
supplierdeeply

PowerShot SX210 IS - Porting Thread

  • 589 Replies
  • 301806 Views
*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #220 on: 13 / September / 2010, 12:49:46 »
Advertisements
Thanks reyalp,

The prop and modes was solved removing exceptions in the raw menu. and leaving the original line from raw.c

Then I narrowed the fail down to
-get_target_file_num() -> get_file_counter() -> PARAM_FILE_COUNTER     
   -> looks like that its  0x02 ( works, but the filenumber is not the same as the JPG ????)

-and if you select to save in the same folder as jpgs


Here is the first raw example saved with chdk dng mode.http://www.zshare.net/download/8036424855257a31/

It's a bit blury due to 1/10 exp hand movement, If anyone wants to go for the CAM_COLORMATRIX will be welcome.
« Last Edit: 13 / September / 2010, 16:10:23 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #221 on: 13 / September / 2010, 16:23:59 »
Raw works (almost)

Changing the

Code: [Select]
#define PARAM_FILE_COUNTER      0x02
-It dosnt work if you select to save in the same folder as jpgs

also now I'm unable to find the value for PARAM_EXPOSURE_COUNTER

Re: PowerShot SX210 IS - Porting Thread
« Reply #222 on: 13 / September / 2010, 17:50:27 »
I've been watching with interest up to this point.  I can test bioses, but I'm not really in a position to be developing.

Two things about that raw I'll point out for those watching...

1. Is the time/date stamp on the file suppose to be Dec 31, 1999 11:00pm?  The data within the raw seems right.

2. Oddly enough Lightroom doesn't accept it, but iPhoto does via Apple's built-in raw support.

*

Offline pixeldoc2000

  • ****
  • 356
  • IXUS900Ti 1.00C, IXUS300HS 1.00D
    • pixel::doc homebase
Re: PowerShot SX210 IS - Porting Thread
« Reply #223 on: 13 / September / 2010, 19:29:52 »
with more testing, only fixes the refresh on review mode, on shot mode the chdk menu disappers quickly,
I think this is related to feather osd (chdk ui disappears on feather redraw). I already had this issus with my SD900 port, but on SD900 there was a canon menu options to disable feather osd...
Maybe this can be fixed by disable feather processing while in ALT mode?

Does your jogdail work at chdk and is disabled in ALT mode for canon firmware? Looks like you modified boot.c only (didn't do copy & past from ida). looks like you missed some line (maybe not important).

On SD4000 disable task_JogDial does work but feather is still active (because it's an other task).
« Last Edit: 13 / September / 2010, 20:05:33 by pixeldoc2000 »


*

Offline pixeldoc2000

  • ****
  • 356
  • IXUS900Ti 1.00C, IXUS300HS 1.00D
    • pixel::doc homebase
Re: PowerShot SX210 IS - Porting Thread
« Reply #224 on: 13 / September / 2010, 20:43:33 »
with more testing, only fixes the refresh on review mode, on shot mode the chdk menu disappers quickly,
I think this is related to feather osd (chdk ui disappears on feather redraw). I already had this issus with my SD900 port, but on SD900 there was a canon menu options to disable feather osd...
Maybe this can be fixed by disable feather processing while in ALT mode?
Override key + feather bits with KEY_MASKx does fix menu issus in rec mode!

SD4000 kbd.c
Code: (c) [Select]
#define KEYS_MASK0 (0x0000090F)
// override key and feather bits to avoid feather osd messing up chdk display in ALT mode
#define KEYS_MASK1 (0x00000FF0)   // 0xF0 (keys) + 0xF00 (feather)
#define KEYS_MASK2 (0x00000000)
//static long alt_mode_key_mask = 0x00000000;   // we use two Keys, no need to override
« Last Edit: 13 / September / 2010, 20:53:36 by pixeldoc2000 »

Re: PowerShot SX210 IS - Porting Thread
« Reply #225 on: 14 / September / 2010, 08:05:53 »
If the osd works good and the raw is supported? It is possible to create a new trunk in the autobuild server for the SX210IS port?

Thank you

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #226 on: 14 / September / 2010, 09:44:53 »
pixeldoc :
how do you find feather bits?

mouring :-I dont know yet why file date is wrong

rraauurr:
Here you have sources and binaries (not in the trunk)
http://es.drop.io/sx210is_platformv01
Sourcesx210isASM1989-v.08.zip
sx210isCHDKbeta004.zip

->Status
-redraw almost ok, need to find feather bits
-raw works but
  -no color profile yet ( someone could do it???)
  -run first the bad pixel script and save dng
  -IMPORTANT: unchek all the exceptions in raw menu (I dont  know why fails if anyone is cheched
  -DONT SAVE in JPG Directory
  -file date is wrong
-Most of the script works
-NO Overrides yet
-Others not tested Feel free to test (at your own risk) and please report  >:(

Programming things to be solved
-remove function only works with files not with directories
-Some of the cammera modes id's not found yet
-in main.c dont know if CF_EFL  vale and fl_tbl[]  is right
-No vbatt numbers yet
-more bugs maybe

Priority
-Overrides
« Last Edit: 14 / September / 2010, 10:56:52 by asm1989 »

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #227 on: 14 / September / 2010, 10:59:43 »
PARAM_FILE_COUNTER  

well in order to save raws with the correct image number I find that

Code: [Select]
#define PARAM_FILE_COUNTER       0x02
but the number I get is 22 bellow

so I have to modify this

Code: [Select]
long get_target_file_num() {
long n;
n = get_file_next_counter();
                //Filenumber is wrong
                //n = (n>>4)&0x3FFF;
                n+=22;
return n;
}


Re: PowerShot SX210 IS - Porting Thread
« Reply #228 on: 14 / September / 2010, 13:23:50 »
Ok, the file date problem only happened with first raw file taken. The next raw files stores date correctly.

Maybe is an inicialization problem?

How can i make the color profile?

*

Offline asm1989

  • *****
  • 527
  • SX720, SX260, SX210 & SX200
Re: PowerShot SX210 IS - Porting Thread
« Reply #229 on: 14 / September / 2010, 13:37:20 »
thanks rraauur will look into it

Quote
How can i make the color profile?

we need to find the correct colormatrix
This is the one from the sx200:
Code: [Select]
  #define CAM_COLORMATRIX1                               \
      14134, 1000000, -5576, 1000000, -1527, 1000000, \
     -1991,  1000000, 10719,  1000000, 1273,   1000000, \
      -1158,   1000000, 1929,   1000000, 3581,  1000000

look at http://chdk.setepontos.com/index.php/topic,390.0.html


 

Related Topics