merge with master
[framework/osp/image-core.git] / src / inc / FMedia_ImageUtil.h
index f4bf486..e9bd8a8 100644 (file)
@@ -135,6 +135,26 @@ public:
        static int ToFfmpegPixelFormat(MediaPixelFormat pixelFmt);
 
        static MediaPixelFormat ToMediaPixelFormatFromFfmpeg(int pixelFormat);
+
+       static byte* CropN(const byte *srcBuf,
+                                               MediaPixelFormat pixelFormat,
+                                               int srcWidth, int srcHeight,
+                                               int dstX, int dstY, int dstWidth, int dstHeight);
+
+       static byte* RotateN(const byte *srcBuf,
+                                                MediaPixelFormat pixelFormat,
+                                                int srcWidth, int srcHeight,
+                                                ImageRotationType rotate,
+                                                int &dstWidth, int &dstHeight);
+
+       static byte* FlipN(const byte* srcBuf,
+                                          MediaPixelFormat pixelFormat, int width, int height,
+                                          ImageFlipType flip);
+
+       static result GetResizedDimension(int srcWidth, int srcHeight,
+                                                                         float dstWidth, float dstHeight,
+                                                                         float &outWidth, float &outHeight);
+
 private:
        _ImageUtil();