什么叫Frame Buffer Pitch

Pitch”也就是液晶屏每一行与下一行之间的步进量
与单点宽度和每行像素总数相关,是它们的乘。
就是你frame buffer中,用来表示一个点的像素值的变量,是几字节的。
和你的fb格式直接相关。
比如如果是ARGB8888的,那么一个点是由四个字节组成的,pitch就是4*pixels_per_line
如果是ARGB4444,那么就是2*pixels_per_line
一般有1,2,4三种,现在大多数都是4了。

也就是 
4*pixels_per_line

Buffers in video ram generally have a stride (also called pitch) associated with them. The stride is the width of the buffer in bytes.  For example, if you have a 1024x768 pixel buffer at 16 bits/pixel (2 bytes/pixel), your stride would be:
1024 pixels * 2 bytes/pixel = 2048 bytes
At 32 bits/pixel (4 bytes/pixel), your stride would be:
1024 pixels * 4 bytes/pixel = 4096 bytes
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值