Changeset 31153 for trunk/psModules/src/camera/pmFPA_JPEG.c
- Timestamp:
- Apr 4, 2011, 1:04:41 PM (15 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/camera/pmFPA_JPEG.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:ignore
-
old new 28 28 ChangeLog 29 29 psmodules-*.tar.* 30 a.out.dSYM
-
- Property svn:ignore
-
trunk/psModules/src/camera/pmFPA_JPEG.c
r29544 r31153 35 35 #include "pmFPAfile.h" 36 36 #include "pmFPA_JPEG.h" 37 38 37 39 38 bool pmFPAviewWriteJPEG(const pmFPAview *view, pmFPAfile *file, const pmConfig *config) … … 227 226 char *userOptions = psMetadataLookupStr(&status, options, "OPTIONS"); // Mode for scaling image 228 227 if (userOptions) { 229 // just use strstr for now230 if (str casestr(userOptions, "+SB")) {228 // just use strstr : strcasestr is non-standard an not always available. replace with our own? 229 if (strstr(userOptions, "+SB")) { 231 230 jpegOptions->showScale = PS_JPEG_SHOWSCALE_BOTTOM; 232 231 } 233 if (str casestr(userOptions, "-X")) {232 if (strstr(userOptions, "-X")) { 234 233 jpegOptions->xFlip = true; 235 234 } 236 if (strcasestr(userOptions, "-Y")) { 235 if (strstr(userOptions, "-Y")) { 236 jpegOptions->yFlip = true; 237 } 238 // lowercase versions 239 if (strstr(userOptions, "+sb")) { 240 jpegOptions->showScale = PS_JPEG_SHOWSCALE_BOTTOM; 241 } 242 if (strstr(userOptions, "-x")) { 243 jpegOptions->xFlip = true; 244 } 245 if (strstr(userOptions, "-y")) { 237 246 jpegOptions->yFlip = true; 238 247 }
Note:
See TracChangeset
for help on using the changeset viewer.
