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.cpp147 } __halfmt_plane_bpp[] = { variable
204 for (size_t i = 0; i < ARRSIZE(__halfmt_plane_bpp); i++) { in halfmt_plane_length()
205 if (__halfmt_plane_bpp[i].fmt == fmt) { in halfmt_plane_length()
206 LOGASSERT(plane < __halfmt_plane_bpp[i].bufcnt, in halfmt_plane_length()
208 __halfmt_plane_bpp[i].bufcnt, plane); in halfmt_plane_length()
209 if (plane < __halfmt_plane_bpp[i].bufcnt) in halfmt_plane_length()
210 return (__halfmt_plane_bpp[i].bpp[plane] * width * height) / 8; in halfmt_plane_length()
221 for (size_t i = 0 ; i < ARRSIZE(__halfmt_plane_bpp); i++) { in halfmt_bpp()
222 if (__halfmt_plane_bpp[i].fmt == fmt) in halfmt_bpp()
223 … return __halfmt_plane_bpp[i].bpp[0] + __halfmt_plane_bpp[i].bpp[1] + __halfmt_plane_bpp[i].bpp[2]; in halfmt_bpp()
[all …]