利用ffmpeg进行图像数据格式的转换以及图片的缩放应用中,主要用到了swscale.h文件中的三个函数,分别是: struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, con
ImageView.ScaleType 将图片边界缩放到所在view边界时的缩放选项. Options for scaling the bounds of an image to the bounds of this view. 不同选项含义 CENTER 居中,不缩放. Center the image in the view, but perform no scaling. CENTER_CROP 居中,如果图片宽或高比view小,就等比放大使得宽和高都大于等于view,计算时view大小减