Lines Matching refs:format
129 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument
135 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) { in getAlignedWidthAndHeight()
148 switch(format) in getAlignedWidthAndHeight()
182 switch (format) in getAlignedWidthAndHeight()
246 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
359 bool isMacroTileEnabled(int format, int usage) in isMacroTileEnabled() argument
368 switch(format) in isMacroTileEnabled()
392 size_t getSize(int format, int width, int height, const int alignedw, in getSize() argument
396 switch (format) { in getSize()
425 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
493 ALOGE("unrecognized pixel format: 0x%x", format); in getSize()
499 size_t getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
506 format, in getBufferSizeAndDimensions()
511 size = getSize(format, width, height, alignedw, alignedh); in getBufferSizeAndDimensions()
517 size_t getBufferSizeAndDimensions(int width, int height, int format, int usage, in getBufferSizeAndDimensions() argument
521 int tileEnabled = isMacroTileEnabled(format, usage); in getBufferSizeAndDimensions()
525 format, in getBufferSizeAndDimensions()
530 size = getSize(format, width, height, alignedw, alignedh); in getBufferSizeAndDimensions()
536 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
539 tileEnabled = isMacroTileEnabled(format, usage); in getBufferAttributes()
543 format, in getBufferAttributes()
547 size = getSize(format, width, height, alignedw, alignedh); in getBufferAttributes()
555 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) in alloc_buffer() argument
564 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw, in alloc_buffer()
578 data.allocType, 0, format, in alloc_buffer()