Lines Matching refs:bpp
194 int bpp = 0; in gralloc_alloc() local
200 bpp = 4; in gralloc_alloc()
205 bpp = 3; in gralloc_alloc()
210 bpp = 2; in gralloc_alloc()
216 bpp = 2; in gralloc_alloc()
217 align = 16*bpp; in gralloc_alloc()
227 bpp = 1; in gralloc_alloc()
238 bpp = 1; // per-channel bpp in gralloc_alloc()
244 bpp = 1; // per-channel bpp in gralloc_alloc()
262 size_t yStride = (w*bpp + (align - 1)) & ~(align-1); in gralloc_alloc()
266 stride = yStride / bpp; in gralloc_alloc()
268 size_t bpr = (w*bpp + (align-1)) & ~(align-1); in gralloc_alloc()
270 stride = bpr / bpp; in gralloc_alloc()
749 int bpp = glUtilsPixelBitSize(cb->glFormat, cb->glType) >> 3; in gralloc_unlock() local
750 char *tmpBuf = new char[cb->lockedWidth * cb->lockedHeight * bpp]; in gralloc_unlock()
752 int dst_line_len = cb->lockedWidth * bpp; in gralloc_unlock()
753 int src_line_len = cb->width * bpp; in gralloc_unlock()
754 char *src = (char *)cpu_addr + cb->lockedTop*src_line_len + cb->lockedLeft*bpp; in gralloc_unlock()