什么叫Frame Buffer Pitch
答案:2 悬赏:80 手机版
解决时间 2021-12-31 08:18
- 提问者网友:轮囘Li巡影
- 2021-12-30 16:26
什么叫Frame Buffer Pitch
最佳答案
- 五星知识达人网友:低音帝王
- 2021-12-30 16:50
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
与单点宽度和每行像素总数相关,是它们的乘。
就是你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
全部回答
- 1楼网友:白昼之月
- 2021-12-30 16:59
搜一下:什么叫Frame Buffer Pitch
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯