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 Pitch
最新推荐文章于 2023-11-22 01:14:34 发布