Remaining RAW+JPG shots + filespace icon/text- done :D - page 3 - General Discussion and Assistance - CHDK Forum supplierdeeply

Remaining RAW+JPG shots + filespace icon/text- done :D

  • 175 Replies
  • 68096 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #20 on: 08 / February / 2008, 17:23:32 »
Advertisements
hm, ASM is too complicated for me :D i guess i have to depend on the real gurus like you :)
anyways, i used your supplied address to compile a version for the s3is, maybe someone (barney?:D) can test it.
« Last Edit: 19 / February / 2008, 17:34:46 by PhyrePhoX »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #21 on: 08 / February / 2008, 17:31:18 »
hm, ASM is too complicated for me :D

Complicated?
R4=0x6BC28;
<skip>
R0=R4;
sprintf(R0,R1,....


*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #22 on: 08 / February / 2008, 17:33:39 »
extern char* camera_jpeg_count_str;
and in every platform/xxx/sub/yyy/stubs_min.S:
DEF(camera_jpeg_count_str, variable address).

There is the error here. If you look to other variables, which use similar way of declaration, you will see that they do not have any (*) in their types.
You declared camera_jpeg_count_str as char*. It's the same as the variable on a target address contains a pointer to a char. So, you just declared the variable of char** type and assigned the address to it.
I suspect that the correct declaration is 'char[]'.
CHDK Developer.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #23 on: 08 / February / 2008, 17:46:20 »
Kudos to you :)
i think i still want to use lib.c, as it only requires to change one file instead of two. next step would be to understand asm a little better and then add the addresses for the other firmwares. loading them into IDA properly will take hours alone :D
so if you have IDA, time, knowledge of asm and want to see YOUR camera having this nifty feature, tell me your address, you readers of the chdk forum ;)

edit: well, not your address as in where you live, but the address of the string the canon-remaining-pictures-value resides in ;)
« Last Edit: 08 / February / 2008, 17:48:44 by phyrephox »


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #24 on: 08 / February / 2008, 18:03:45 »
There is the error here.
I suspect that the correct declaration is 'char[]'.

You are right. So, my new vote in this poll: "I used the code off of GrAnd's branch but my edits are causing errors!" ;)

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #25 on: 08 / February / 2008, 18:20:58 »
A460 1.00D 0x10F70  :haha
A560 1.00A 0x10B80
A570 all f/w 0x10F28
A610 all f/w 0x80A90
A620 1.00F  0x7F6F8
A630 1.00C 0x70EA0
A640 1.00B 0x71200
A650 1.00D 0x5CB38
A700 1.00B 0x78688
A710 1.00A 0x7BD98
A720 1.00C 0x580CC
G7 - all f/w 0x82F88
IXUS70 all f/w 0x12298
IXUS700 all f/w 0x75BB8
IXUS800 all f/w 0x79248
S2IS 1.00E 1.00F 0x63518, but 1.00G 0x63538
S3IS 1.00A 0x6BC28
« Last Edit: 08 / February / 2008, 18:40:07 by ewavr »

Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #26 on: 08 / February / 2008, 18:41:08 »
Deleted
« Last Edit: 22 / April / 2008, 11:05:14 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #27 on: 08 / February / 2008, 18:52:07 »
don't tease the gods, test the builds ;)

(please :D)

ewavr i suspect these are the addresses, right?
will wait for barney to verify that my code works, then i will implement those new adresses to the lib.c's. way to go :)

btw will this function have any (noticable) effect on energydrainage? i mean, i'm polling freediskspace at a rate of 1/30s (wild guess here) does that mean theres i/o being executed?
« Last Edit: 08 / February / 2008, 18:54:51 by phyrephox »


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #28 on: 08 / February / 2008, 19:00:46 »
ewavr i suspect these are the addresses, right?
Of course.
btw will this function have any (noticable) effect on energydrainage? i mean, i'm polling freediskspace at a rate of 1/30s (wild guess here) does that mean theres i/o being executed?
I think that good OS keep free clusters count in RAM.

*

Offline whim

  • ******
  • 2046
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Correct Calculation of remaining shots (when RAW enabled) - partly solved
« Reply #29 on: 09 / February / 2008, 10:54:10 »
Quote
don't tease the gods, test the builds

tested:  * chdk_a620_raw_size.rar (196.63 KB - downloaded 1 times.)

replay mode: shows "1426M" (non <alt> mode)
shoot mode:  shows "120"     (non <alt> mode)

<alt> mode not tested, no usefull script loaded

JPEG setting: max resolution - lowest compression

that boils down to 1426/120 = almost 11.9 M for a JPEG/RAW pair.

suggestions for improvement: show only when raw actually activated

result: success  :)

P.S. What was actually changed in this build ? gui_bat.c, or lib.c too ?

wim

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal