如何在Android?中将argb转换为nv21 (yuv420sp)
720 * 1280询问是否应该转到以下参数api以更改图像大小的颜色格式。
argb image data size is 3,686,400.
(width : 720
height : 1280
bitPerPixel : 32
bytePerPexel: 4) Api下降了https://code.google.com/p/libyuv/
int ARGBToNV21 (const uint8 * src_argb, int src_stride_argb,
uint8 * dst_y, int dst_stride_y,
uint8 * dst_vu, int dst_stride_vu,
int width, int height); 参数的含义是什么?int src_stride_argb?int dst_stride_y?int int dst_stride_vu?
请帮我举一个简单的例子。
发布于 2014-11-03 07:47:21
dst_stride_argb平面的一行中的字节数。
通常情况下,这与dst_width是一样的,为了更高的效率,建议将其对齐为16个字节。
如果使用90或270的旋转,则影响步幅。调用方应根据轮转分配缓冲区。
dst_stride_y平面的一行中的字节数。
如果使用90或270的旋转,则影响步幅。
(取自argb.h,并作了一些修改)
https://stackoverflow.com/questions/26709372
复制相似问题