Change-Id: Ic02e582ce0f2ccf545b18c329b2d32b9dfd276cc
Signed-off-by: Oleksandr Kaspruk <a.kaspruk@samsung.com>
Tizen::Media::ImageFormat imgFormat;
int imgWidth = 0, imgHeight = 0;
result r = Tizen::Media::ImageBuffer::GetImageInfo(filepath, imgFormat, imgWidth, imgHeight);
Tizen::Media::ImageFormat imgFormat;
int imgWidth = 0, imgHeight = 0;
result r = Tizen::Media::ImageBuffer::GetImageInfo(filepath, imgFormat, imgWidth, imgHeight);
+ SetLastResult(E_INVALID_ARG);
+ return -1;
- if ((imgWidth < __minSupportedSize || imgHeight < __minSupportedSize) || (imgWidth*imgHeight > __maxSupportedResolution))
+ if ((imgWidth < __minSupportedSize || imgHeight < __minSupportedSize) || (imgWidth * imgHeight > __maxSupportedResolution))
+ SetLastResult(E_INVALID_ARG);
+ return -1;
}
Tizen::Media::ImageBuffer imBuf;
r = imBuf.Construct(filepath, null, false);
}
Tizen::Media::ImageBuffer imBuf;
r = imBuf.Construct(filepath, null, false);
+ SetLastResult(E_INVALID_ARG);
- if ((width < __minSupportedSize || height < __minSupportedSize) || (width*height > __maxSupportedResolution))
+ if ((width < __minSupportedSize || height < __minSupportedSize) || (width * height > __maxSupportedResolution))
+ SetLastResult(E_INVALID_ARG);
+ return -1;
}
Tizen::Text::Utf8Encoding utf8;
}
Tizen::Text::Utf8Encoding utf8;