Change-Id: I6f2dc3e2f19f7fe7ad1654d48ca84207aff595ae
Signed-off-by: Himanshu <himanshu.t@samsung.com>
- if (pContentDirectoryPathList != null)
- {
- delete pContentDirectoryPathList;
- }
- if (pAllAlbumInfo != null)
- {
- delete pAllAlbumInfo;
- }
- if (pCameraAlbumInfo != null)
- {
- delete pCameraAlbumInfo;
- }
- if (pDownloadAlbumInfo != null)
- {
- delete pDownloadAlbumInfo;
- }
- if (pNoNameAlbumInfo != null)
- {
- delete pNoNameAlbumInfo;
- }
+ delete pContentDirectoryPathList;
+ delete pAllAlbumInfo;
+ delete pCameraAlbumInfo;
+ delete pDownloadAlbumInfo;
+ delete pNoNameAlbumInfo;
}
delete pEnum;
delete pArgs;
}
delete pEnum;
delete pArgs;
if (r == E_SUCCESS)
{
imageFormat = img.GetImageFormat(filePath);
if (r == E_SUCCESS)
{
imageFormat = img.GetImageFormat(filePath);
- r = rotateBuffer.Construct(filePath);
- if (r == E_SUCCESS)
- {
- if (rotateMode == ROTATE_MODE_RIGHT)
+ r = rotateBuffer.Construct(filePath);
+ if (r == E_SUCCESS)
- pRotatedBuffer = rotateBuffer.RotateN(IMAGE_ROTATION_90);
+ if (rotateMode == ROTATE_MODE_RIGHT)
+ {
+ pRotatedBuffer = rotateBuffer.RotateN(IMAGE_ROTATION_90);
+ }
+ else
+ {
+ pRotatedBuffer = rotateBuffer.RotateN(IMAGE_ROTATION_270);
+ }
+
+ if (pRotatedBuffer != null)
- pRotatedBuffer = rotateBuffer.RotateN(IMAGE_ROTATION_270);
+ r = pRotatedBuffer->EncodeToFile(filePath, imageFormat, true, 100);
+ delete pRotatedBuffer;
+ ContentManager::ScanFile(filePath);
- if (pRotatedBuffer != null)
- {
- r = pRotatedBuffer->EncodeToFile(filePath, imageFormat, true, 100);
- delete pRotatedBuffer;
- ContentManager::ScanFile(filePath);
- }