您的位置:首页 > 其它

V4L2中两个关于图像占用空间大小的结构体项的理解

2009-04-19 20:07 459 查看
1.struct v4l2_pix_format 中的sizeimage
其说明为:
Size in bytes of the buffer to hold a complete image, set by the driver.
Usually this is bytesperline times height. When the image consists of variable
length compressed data this is the maximum number of bytes required to hold
an image.
表示的是当前采集参数下,图像数据需要的最大字节数。

2.struct v4l2_buffer 中的bytesused
其说明为:
The number of bytes occupied by the data in the buffer.It depends on the
negotiated data format and may change with each buffer for compressed variable
size data like JPEG images. Drivers must set this field when type refers to an
input stream, applications when an output stream.
表示的是当前,图像数据实际占用的字节数。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: