*/
static Tizen::Base::ByteBuffer*
DecodeToBufferN(const Tizen::Base::String& filePath, MediaPixelFormat pixelFormat,
- int &width, int &height);
+ int &width, int &height, bool autoRotate = false);
/**
* Decodes a region of image data into the decoded byte buffer container without resizing. @n
*/
result Construct(const Tizen::Base::String& srcPath,
MediaPixelFormat pixelFormat = MEDIA_PIXEL_FORMAT_BGRA8888,
- ImageFormat imgFormat = IMG_FORMAT_NONE);
+ ImageFormat imgFormat = IMG_FORMAT_NONE,
+ bool autoRotate = false);
/**
* Initializes this instance of ImageDecode.
* @exception E_SUCCESS The method is successful.
* @remark
*/
- byte* DecodeN(int& outLength);
+ byte* DecodeN(int& outLength, ImageScalingMethod scalingMethod = IMAGE_SCALING_METHOD_FAST_BILINEAR);
/**
* Decodes image buffer.
int width;
int height;
} __outDim;
+ bool __autoRotate;
+ int __orientationInfo;
MediaPixelFormat __pixelFormat;
std::unique_ptr<Tizen::Base::ByteBuffer> __pSrcBuf;