Changeset 30893
- Timestamp:
- Mar 13, 2011, 5:08:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psModules/src/camera/pmFPA_JPEG.c
r29544 r30893 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.
