Ignore:
Timestamp:
11/19/08 00:15:12 (5 years ago)
Author:
phyrephox
Message:

tadaa! major pimping of an already cool feature!
you can now SAVE and LOAD edge overlays! this was written by PlasmaHH (shy guy, only in irc :D)
Yes, you read it right:

  • save an edge overlay: create an overlay (enable overlay and press half-press) -> go to overlay menu and press save
  • load an overlay (go to menu and choose an *.edg file)
  • create overlays from jpgs in playmode! (only works on cameras that have a "hardware" switch of play/recmode for now, because on for example s3is halfpressing the shutter activates rec mode!
  • free memory by using the item in the edge menu (also you should disable edge-overlay)

changes / enhancements to the mod by me:

  • together with the edge overlay the zoom setting is saved, so when you load the file after one year it zooms to the position your camera had when you shot it!
  • added the option so that an edge overlay is "locked", meaning the edgeoverlay you loaded or just created is not overwritten in the osd at half-press (this checkbox is overwritten on each camera startup... no big deal, but i dont like it like that right now)

This is a really great feature (for example for LONG-TERM TIMELAPSES, or stop-motion movies, or vertigo-effect, or stereography... the list is endless :D)

  • restructured the root menu (put imo the most often used items to the top, moved edge overlay from OSD menu to the root menu, moved remote params menu to the misc menu)

because of this new feature and all the new cams i upped the version to 0.8.0 already...
P.S: had to rewrite some of PlasmaHHs stuff (e.g. write -> fwrite), i hope i did everything correctly (it's working flawlessly on s3is and a620)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/edgeoverlay.h

    r515 r580  
    22#define EDGE_OVERLAY_H 
    33 
     4// margin in which around the center nothing is displayed. Good for not 
     5// interfering too much with the OSD 
    46#define MARGIN 30 
     7// stuff influencing the algorithm 
    58#define CALCYMARGIN 3 
    6 //#define EDGECOLOR 0x66 
    79#define NSTAGES 4 
     10// steps for up/down/left/right moving the overlay in ALT mode 
    811#define XINC 6 
    912#define YINC 2 
    10 #define XGRID1 120 
    11 #define XGRID2 240 
    12 #define YGRID1 80 
    13 #define YGRID2 160 
     13 
     14// if you change this, remember to change the mkdir in main too 
     15#define EDGE_SAVE_DIR "A/CHDK/EDGE" 
    1416 
    1517void edge_overlay(); 
     18void save_edge_overlay(void); 
     19void load_edge_overlay( const char* ); 
     20void free_memory_edge_overlay(void); 
    1621 
    1722#endif 
Note: See TracChangeset for help on using the changeset viewer.