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

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

  • 175 Replies
  • 65686 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Advertisements
* PhyrePhoX slaps himself with a trout, big time
i should organize my workflow better. all the time i was compiling into the wrong folder *yuck*

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
gazillionst milestone
« Reply #71 on: 12 / February / 2008, 21:03:07 »
I'll be damned, it's 3 o'clock in the morning and i finally got it to work. you may ask yourselves what the hell is taking me so long to implement such a small feature - well, it's a) my noobness b) my lacking of skills in C b) lacking of talent for organization d) complexness of such a huge project like CHDK and e) hey, i do this for fun, unless you pay me :D

What it does:
When taking RAW Pictures is enabled, in Record Mode you now see how much RAW pictures you can shoot until the sdcard is full. My function takes the size of the jpgs into account as well, so this works somewhat exactly (as exactly as the built-in canon counter is).
When the disk is full, or at least it is highly unlikely that there is enough space left for 1 raw picture (+ corresponding jpg) there will be shown a warning (RAW:DISK FULL!) in customizable colors (default: red on dark transparent). the warning is blinking and alternating between the normal OSD color scheme and the newly introduced warning colors. it blinks with a speed of about half a second. If you don't want to see it blinking just set the warning colors to ones you use in the OSD Text already.
The reason for this Warning is as follows: Canon didnt actually plan to write SD onto the card, so the built-in counter for example calculates that there is enough space for 3 jpegs on card left (not enough for even one RAW). Thus you won't see the "DISK IS FULL" message. Subsequently it is very likely that you dont notice that your disk is full. Hence the warning.

Introduced new Colors in "Visual Settings Menu": OSD Warning & OSD Warning Background. Can & will be useful for other functions, like reminders or something.

I see this function as finished.
todo:

new icon/OSD Item Remaining Diskspace (maybe also with a neat icon like the battery, showing the percentage graphically) in both shooting and reviewing mode, thus reviving battery icon.
codecleanup
get it into trunk
get a beer or two.

much later i will come up with a function that will save your cameras energy/batteries by automatically shutting down the camera when run in scriptmode AND the disk is full.

regards, PhoX
« Last Edit: 13 / February / 2008, 12:42:10 by PhyrePhoX »

Hi  PhoX,
I can assist you with the function that shut down the camera from script. I got that from, (surprise..) Ewavr, how was kind to help me with that. I am testing now to include in the cameras, my idea was to to shutdown camera via remote button. It is working nice on my s3!

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
any suggestions regarding a filespace icon? i will use the battery icon as a blueprint.

fingalo - nice! my plan was to include the option in the script menu, where you also enable remote (usb) and script autostart.
by the way, why do you want to shutdown the cam via remote?
maybe we even can introduce a new command to be used in script ala "if disk full do shutdown"
« Last Edit: 13 / February / 2008, 16:34:10 by PhyrePhoX »


Deleted
« Last Edit: 22 / April / 2008, 11:08:04 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

Remote shutdown, just a nice feature. With simple timing in script (and by my thumb) I can
turn on cam (first press on remote button)
take a picture (short press)
take picture with flash (if it is up) not so short press
turn off camera (long press)
now without touching the camera, via remote button (or my radio remote).

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
wait a second, you can turn it ON? how can you turn the cam on, just by using usb-remote? wow, didnt know thats possible.

barney: will see what i can do, for now it just looks like a battery, dont know why, i must be really bad at drawing :D

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Heureka
« Reply #77 on: 13 / February / 2008, 22:05:28 »
DL deleted

alright, as of now this thread no longer is a feature request, as i'm done with the requested feature (i'm not saying there will be no more new features i'd like to request and need help for :D) so i guess this can somehow be moved \o/

Working features:
Remaining RAW value (directly incorporated into the existing RAW icon) - tells you exactly how much RAWs (+ corresponding jpegs) you are able to shoot until disk is full. When disk is almost full (jpeg can be written, RAW possibly not) a warning will be shown, blinking in red (or any other color, customizable with the newly introduced conf.osd_color_warn via Visual Settings - to disable blinking, just choose same color as OSD text).By the way i also changed the low battery icon default warning color (red) to this new warningcolor variable (which is red too as of default, but can be changed via menu).

Two new Icons, namely Free Space Icon and Free Space text. The color of the free space icon can be customized, so you cannot confuse it with the batteryicon (as of now it looks exactly the same, shape-wise). It will show remaing free diskspace vs. disksize, so you roughly get an idea how much space is left. however if you want to see a detailed view you can enable the free space text icon, which comes in two flavours: Free Space Percent and Free Space Megabyte, i guess y'all know what that means.By the way, you can disable or enable both icon AND text). The default position of the freespace icon is right next to battery, with the same color (white), with the text beneath it. you would want either change it's color or position to distinct it from battery.
The remaining Filespace icons will be shown in playback and record mode, the remaining raw value won't. filespace icons will turn red (read: turn the color you set in visual setting menu) if less than 15 MB left, though they will not blink. the settings of the remaining filespace icons can be found in "OSD Parameters -> Battery + Filespace -> scroll down. Maybe later they will have it's own menu, but i think it's okay the way it is. The remaining raw feature can't be turned off, as it isn't such a disturbing thing at all. of course it is turned off if you decide not to show the OSD at all.
now with the remaining free space text, go shoot a movie it's funny seeing all that megabytes drain with every second. this way you can directly compare the different movie compression & fps settings.

As an extra candy i added the changes jucifer made to trunk 296 from thread 1/3EV-selectable tv override -mod for trunk 296 (read for additional information) for y'all to play with. the attached archives with the bins and firs all have these features in them.
i will attach two patchsets, one with and one without jucifers adjustments.

if you really want to read the patchset prepare for doom, as my code is ugly as hell and maybe not the best, but thanks to guys like whim or the devs here i hope that can be looked after and then finally get into trunk... at least i hope so.

Base for my codechanges: Latest revision (299) from official CHDK Trunk.

Please test my new features (the stuff jucifer added should not interfere with it) and let me if it doesnt work or theres something unclear or a wish, whatever.
 
Changes:


Patchset and Compiled Firmwares attached.
todo: another icon. then move on to the next project.

download for binaries: zSHARE - chdk_299_phox_raw_filespace_misc.zip

edit: added the comment about the freespace text in combination to movie recording
« Last Edit: 19 / February / 2008, 17:43:10 by PhyrePhoX »


Re: Calculation of remaining shots with RAW - done :D
« Reply #78 on: 14 / February / 2008, 01:35:03 »
Deleted
« Last Edit: 22 / April / 2008, 11:08:31 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: Calculation of remaining shots with RAW - done :D
« Reply #79 on: 14 / February / 2008, 03:23:06 »
The md stuff is in there,i used jucifers latest patchset :)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal