Changeset 1326
- Timestamp:
- 09/10/11 03:01:22 (22 months ago)
- Location:
- trunk
- Files:
-
- 47 added
- 6 edited
-
Makefile (modified) (5 diffs)
-
core/dng.c (modified) (6 diffs)
-
core/gui.c (modified) (1 diff)
-
core/kbd.c (modified) (1 diff)
-
include/propset4.h (modified) (1 diff)
-
loader/sx230hs (added)
-
loader/sx230hs/Makefile (added)
-
loader/sx230hs/TurnOnLEDCode.txt (added)
-
loader/sx230hs/blobs.S (added)
-
loader/sx230hs/entry.S (added)
-
loader/sx230hs/main.c (added)
-
loader/sx230hs/resetcode (added)
-
loader/sx230hs/resetcode/Makefile (added)
-
loader/sx230hs/resetcode/entry.S (added)
-
loader/sx230hs/resetcode/main.c (added)
-
makefile.inc (modified) (1 diff)
-
platform/sx230hs (added)
-
platform/sx230hs/Makefile (added)
-
platform/sx230hs/kbd.c (added)
-
platform/sx230hs/lib.c (added)
-
platform/sx230hs/main.c (added)
-
platform/sx230hs/notes.txt (added)
-
platform/sx230hs/platform_camera.h (added)
-
platform/sx230hs/shooting.c (added)
-
platform/sx230hs/sub (added)
-
platform/sx230hs/sub/100c (added)
-
platform/sx230hs/sub/100c/Makefile (added)
-
platform/sx230hs/sub/100c/boot.c (added)
-
platform/sx230hs/sub/100c/capt_seq.c (added)
-
platform/sx230hs/sub/100c/kbd.c (added)
-
platform/sx230hs/sub/100c/lib.c (added)
-
platform/sx230hs/sub/100c/makefile.inc (added)
-
platform/sx230hs/sub/100c/movie_rec.c (added)
-
platform/sx230hs/sub/100c/stubs_asm.h (added)
-
platform/sx230hs/sub/100c/stubs_auto.S (added)
-
platform/sx230hs/sub/100c/stubs_entry.S (added)
-
platform/sx230hs/sub/100c/stubs_entry_2.S (added)
-
platform/sx230hs/sub/100c/stubs_min.S (added)
-
platform/sx230hs/sub/101a (added)
-
platform/sx230hs/sub/101a/Makefile (added)
-
platform/sx230hs/sub/101a/boot.c (added)
-
platform/sx230hs/sub/101a/capt_seq.c (added)
-
platform/sx230hs/sub/101a/kbd.c (added)
-
platform/sx230hs/sub/101a/lib.c (added)
-
platform/sx230hs/sub/101a/makefile.inc (added)
-
platform/sx230hs/sub/101a/movie_rec.c (added)
-
platform/sx230hs/sub/101a/stubs_asm.h (added)
-
platform/sx230hs/sub/101a/stubs_auto.S (added)
-
platform/sx230hs/sub/101a/stubs_entry.S (added)
-
platform/sx230hs/sub/101a/stubs_entry_2.S (added)
-
platform/sx230hs/sub/101a/stubs_min.S (added)
-
platform/sx230hs/sub/Makefile (added)
-
platform/sx230hs/wrappers.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r1325 r1326 242 242 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101a NO_INC_BUILD=1 firzipsub 243 243 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101b NO_INC_BUILD=1 firzipsub 244 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub 245 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=101a NO_INC_BUILD=1 firzipsub 244 246 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 firzipsub 245 247 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100d NO_INC_BUILD=1 firzipsub … … 346 348 mv $(topdir)bin/$(VER)-sx220hs-101a-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx220hs-101a-$(BUILD_NUMBER)_BETA.zip 347 349 mv $(topdir)bin/$(VER)-sx220hs-101b-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx220hs-101b-$(BUILD_NUMBER)_BETA.zip 350 mv $(topdir)bin/$(VER)-sx230hs-100c-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx230hs-100c-$(BUILD_NUMBER)_BETA.zip 351 mv $(topdir)bin/$(VER)-sx230hs-101a-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx230hs-101a-$(BUILD_NUMBER)_BETA.zip 348 352 mv $(topdir)bin/$(VER)-sx130is-101c-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx130is-101c-$(BUILD_NUMBER)_BETA.zip 349 353 mv $(topdir)bin/$(VER)-sx130is-101d-$(BUILD_NUMBER).zip $(topdir)bin/$(VER)-sx130is-101d-$(BUILD_NUMBER)_BETA.zip … … 453 457 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101a NO_INC_BUILD=1 firzipsubcomplete 454 458 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101b NO_INC_BUILD=1 firzipsubcomplete 459 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete 460 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=101a NO_INC_BUILD=1 firzipsubcomplete 455 461 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 firzipsubcomplete 456 462 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100d NO_INC_BUILD=1 firzipsubcomplete … … 617 623 mv $(topdir)bin/sx220hs-101b-$(BUILD_NUMBER)-full.zip $(topdir)bin/sx220hs-101b-$(BUILD_NUMBER)-full_BETA.zip 618 624 mv $(topdir)bin/sx220hs-101b-$(BUILD_NUMBER).zip $(topdir)bin/sx220hs-101b-$(BUILD_NUMBER)_BETA.zip 625 mv $(topdir)bin/sx230hs-100c-$(BUILD_NUMBER)-full.zip $(topdir)bin/sx230hs-100c-$(BUILD_NUMBER)-full_BETA.zip 626 mv $(topdir)bin/sx230hs-100c-$(BUILD_NUMBER).zip $(topdir)bin/sx230hs-100c-$(BUILD_NUMBER)_BETA.zip 627 mv $(topdir)bin/sx230hs-101a-$(BUILD_NUMBER)-full.zip $(topdir)bin/sx230hs-101a-$(BUILD_NUMBER)-full_BETA.zip 628 mv $(topdir)bin/sx230hs-101a-$(BUILD_NUMBER).zip $(topdir)bin/sx230hs-101a-$(BUILD_NUMBER)_BETA.zip 619 629 mv $(topdir)bin/sx130is-101c-$(BUILD_NUMBER)-full.zip $(topdir)bin/sx130is-101c-$(BUILD_NUMBER)-full_BETA.zip 620 630 mv $(topdir)bin/sx130is-101c-$(BUILD_NUMBER).zip $(topdir)bin/sx130is-101c-$(BUILD_NUMBER)_BETA.zip … … 723 733 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101a NO_INC_BUILD=1 clean 724 734 $(MAKE) -s --no-print-directory PLATFORM=sx220hs PLATFORMSUB=101b NO_INC_BUILD=1 clean 735 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=100c NO_INC_BUILD=1 clean 736 $(MAKE) -s --no-print-directory PLATFORM=sx230hs PLATFORMSUB=101a NO_INC_BUILD=1 clean 725 737 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100c NO_INC_BUILD=1 clean 726 738 $(MAKE) -s --no-print-directory PLATFORM=ixus90_sd790 PLATFORMSUB=100d NO_INC_BUILD=1 clean -
trunk/core/dng.c
r1317 r1326 51 51 {0x8298, T_ASCII, 1, 0}, // Copyright 52 52 {0x8769, T_LONG, 1, 0}, //EXIF_IFD offset 53 #if defined(OPT_GPS) 54 {0x8825, T_LONG, 1, 0}, //GPS_IFD offset 55 #endif 53 56 {0x9216, T_BYTE, 4, 0x00000001}, // TIFF/EPStandardID: 1.0.0.0 54 57 {0xC612, T_BYTE, 4, 0x00000101}, //DNGVersion: 1.1.0.0 … … 111 114 112 115 116 #if defined(OPT_GPS) 117 struct dir_entry GPS_IFD[]={ 118 // {0x0000, T_BYTE, 4, 0x00000302}, //GPSVersionID: 2 3 0 0 119 {0x0001, T_ASCII, 2, 0}, //North or South Latitude "N\0" or "S\0" 120 {0x0002, T_RATIONAL, 3, 0}, //Latitude 121 {0x0003, T_ASCII, 2, 0}, //East or West Latitude "E\0" or "W\0" 122 {0x0004, T_RATIONAL, 3, 0}, //Longitude 123 {0x0005, T_ASCII, 2, 0}, //AltitudeRef 124 {0x0006, T_RATIONAL, 3, 0}, //Altitude 125 {0x0007, T_RATIONAL, 3, 0}, //TimeStamp 126 {0x0009, T_ASCII, 2, 0}, //Status 127 // {0x000A, T_ASCII, 1, 0}, //MeasureMode 128 {0x0012, T_ASCII, 8, 0}, //MapDatum 7 + 1 pad byte 129 {0x001D, T_ASCII, 12, 0}, //DateStamp 11 + 1 pad byte 130 {0} 131 }; 132 #endif 133 134 113 135 int get_type_size(int type){ 114 136 switch(type){ … … 129 151 } 130 152 153 #if defined(OPT_GPS) 154 struct {struct dir_entry* entry; int count;} IFD_LIST[]={{IFD0,0}, {IFD1,0}, {EXIF_IFD,0}, {GPS_IFD, 0}}; 155 #else 131 156 struct {struct dir_entry* entry; int count;} IFD_LIST[]={{IFD0,0}, {IFD1,0}, {EXIF_IFD,0}}; 157 #endif 132 158 133 159 #define IFDs (sizeof(IFD_LIST)/sizeof(IFD_LIST[0])) … … 150 176 151 177 // filling EXIF fields 178 179 #if defined(OPT_GPS) 180 typedef struct { 181 int latitudeRef; 182 int latitude[6]; 183 int longitudeRef; 184 int longitude[6]; 185 int heightRef; 186 int height[2]; 187 int timeStamp[6]; 188 short status; 189 char mapDatum[7]; 190 char dateStamp[11]; 191 char unknown2[260]; 192 } tGPS; 193 tGPS gps; 194 195 get_property_case(PROPCASE_GPS, &gps, sizeof(tGPS)); 196 #endif 152 197 153 198 for (j=0;j<IFDs;j++) { … … 169 214 case 0x9201: IFD_LIST[j].entry[i].offset=(int)get_shutter_speed_for_exif(exif_data->tv); break; // ShutterSpeedValue 170 215 case 0x9202: IFD_LIST[j].entry[i].offset=(int)get_aperture_for_exif(exif_data->av); break; // ApertureValue 216 #if defined(OPT_GPS) 217 case 0x0001: IFD_LIST[j].entry[i].offset=gps.latitudeRef; break; 218 case 0x0002: IFD_LIST[j].entry[i].offset=(int)&(gps.latitude); break; 219 case 0x0003: IFD_LIST[j].entry[i].offset=gps.longitudeRef; break; 220 case 0x0004: IFD_LIST[j].entry[i].offset=(int)&(gps.longitude); break; 221 case 0x0005: IFD_LIST[j].entry[i].offset=gps.heightRef; break; 222 case 0x0006: IFD_LIST[j].entry[i].offset=(int)&(gps.height); break; 223 case 0x0007: IFD_LIST[j].entry[i].offset=(int)&(gps.timeStamp); break; 224 case 0x0009: IFD_LIST[j].entry[i].offset=(int)gps.status; break; 225 case 0x0012: IFD_LIST[j].entry[i].offset=(int)&(gps.mapDatum); break; 226 case 0x001D: IFD_LIST[j].entry[i].offset=(int)&(gps.dateStamp); break; 227 #endif 171 228 } 172 229 } … … 204 261 for(i=0; IFD_LIST[j].entry[i].tag; i++) { 205 262 if (IFD_LIST[j].entry[i].tag==0x8769) IFD_LIST[j].entry[i].offset=TIFF_HDR_SIZE+(IFD_LIST[0].count+IFD_LIST[1].count)*12+6+6; // EXIF IFD offset 263 #if defined(OPT_GPS) 264 if (IFD_LIST[j].entry[i].tag==0x8825) IFD_LIST[j].entry[i].offset=TIFF_HDR_SIZE+(IFD_LIST[0].count+IFD_LIST[1].count+IFD_LIST[2].count)*12+6+6+6; // GPS IFD offset 265 #endif 206 266 if (IFD_LIST[j].entry[i].tag==0x14A) IFD_LIST[j].entry[i].offset=TIFF_HDR_SIZE+IFD_LIST[0].count*12+6; // SubIFDs offset 207 267 if (IFD_LIST[j].entry[i].tag==0x111) { -
trunk/core/gui.c
r1312 r1326 1365 1365 static const char* names[]={ "Print", "Display"}; 1366 1366 static const int keys[] = {KEY_PRINT, KEY_DISPLAY}; 1367 #elif defined(CAMERA_sx220hs) 1367 #elif defined(CAMERA_sx220hs) || defined(CAMERA_sx230hs) 1368 1368 static const char* names[]={ "Disp+Set", "Display", "Playback", "Video"}; 1369 1369 static const int keys[] = {KEY_PRINT, KEY_DISPLAY, KEY_PLAYBACK, KEY_VIDEO}; -
trunk/core/kbd.c
r1308 r1326 103 103 #endif 104 104 105 #if defined(CAMERA_sx200is) || defined(CAMERA_sx130is) || defined(CAMERA_sx220hs) 105 #if defined(CAMERA_sx200is) || defined(CAMERA_sx130is) || defined(CAMERA_sx220hs) || defined(CAMERA_sx230hs) 106 106 #define ZSTEP_TABLE_SIZE 7 107 107 static int nTxtbl[]={0,16,32,62,78,102,125}; -
trunk/include/propset4.h
r1324 r1326 57 57 #define PROPCASE_ASPECT_RATIO 300 58 58 59 #define PROPCASE_GPS 359 //for sx230hs 60 59 61 #endif -
trunk/makefile.inc
r1325 r1326 376 376 #PLATFORM=sx220hs 377 377 #PLATFORMSUB=101b 378 379 #PLATFORM=sx230hs 380 #PLATFORMSUB=100c 381 382 #PLATFORM=sx230hs 383 #PLATFORMSUB=101a 384 378 385 379 386 MEMISOSIZE="(&_end-&_start)"
Note: See TracChangeset
for help on using the changeset viewer.