Home
last modified time | relevance | path

Searched refs:__halfmt_plane_bpp (Results 1 – 1 of 1) sorted by relevance

/hardware/google/graphics/common/libacryl/
Dacrylic_formats.cpp148 } __halfmt_plane_bpp[] = { variable
192 for (size_t i = 0; i < ARRSIZE(__halfmt_plane_bpp); i++) { in halfmt_plane_length()
193 if (__halfmt_plane_bpp[i].fmt == fmt) { in halfmt_plane_length()
194 LOGASSERT(plane < __halfmt_plane_bpp[i].bufcnt, in halfmt_plane_length()
196 __halfmt_plane_bpp[i].bufcnt, plane); in halfmt_plane_length()
197 if (plane < __halfmt_plane_bpp[i].bufcnt) in halfmt_plane_length()
198 return (__halfmt_plane_bpp[i].bpp[plane] * width * height) / 8; in halfmt_plane_length()
209 for (size_t i = 0 ; i < ARRSIZE(__halfmt_plane_bpp); i++) { in halfmt_bpp()
210 if (__halfmt_plane_bpp[i].fmt == fmt) in halfmt_bpp()
211 … return __halfmt_plane_bpp[i].bpp[0] + __halfmt_plane_bpp[i].bpp[1] + __halfmt_plane_bpp[i].bpp[2]; in halfmt_bpp()
[all …]