File::Remove(mmsDataPath);
status = MSG_RESPONSE_FAIL;
}
- ImageBuffer* pImageBuffer = new (std::nothrow) ImageBuffer();
- r = pImageBuffer->Construct(__pSelectFilePath);
- ImageBuffer* pOriginalImageBuffer = new (std::nothrow) ImageBuffer();
- r = pOriginalImageBuffer->Construct(__pOriginalFilePath);
- if (pOriginalImageBuffer && pImageBuffer)
- {
- ExifOrientation exifOrientation = pOriginalImageBuffer->GetExifOrientation();
- AppLog("ExifOrientation = % d", exifOrientation);
- if (exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_LEFT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_LEFT_TOP)
- {
- AppLog("Image rotated 90 degree");
- pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_90);
- r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
- }
- else if(exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_RIGHT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_RIGHT_TOP)
- {
- AppLog("Image rotated 270 degree");
- pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_270);
- r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
- }
- delete pImageBuffer;
- delete pOriginalImageBuffer;
- }
+// ImageBuffer* pImageBuffer = new (std::nothrow) ImageBuffer();
+// r = pImageBuffer->Construct(__pSelectFilePath);
+// ImageBuffer* pOriginalImageBuffer = new (std::nothrow) ImageBuffer();
+// r = pOriginalImageBuffer->Construct(__pOriginalFilePath);
+//
+// if (pOriginalImageBuffer && pImageBuffer)
+// {
+// ExifOrientation exifOrientation = pOriginalImageBuffer->GetExifOrientation();
+// AppLog("ExifOrientation = % d", exifOrientation);
+// if (exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_LEFT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_LEFT_TOP)
+// {
+// AppLog("Image rotated 90 degree");
+// pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_90);
+// r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
+// }
+// else if(exifOrientation == (ExifOrientation)EXIF_ORIENTATION_TOP_RIGHT || exifOrientation == (ExifOrientation)EXIF_ORIENTATION_RIGHT_TOP)
+// {
+// AppLog("Image rotated 270 degree");
+// pImageBuffer = pImageBuffer->RotateN(IMAGE_ROTATION_270);
+// r = pImageBuffer->EncodeToFile(__pSelectFilePath, IMG_FORMAT_JPG, true, 70);
+// }
+// delete pImageBuffer;
+// delete pOriginalImageBuffer;
+// }
+
// Send event to main thread from worker thread.
ArrayList* pArgList = new ArrayList();
pArgList->Construct();