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();