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()
251 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight()
364 bool isMacroTileEnabled(int format, int usage) in isMacroTileEnabled() argument
373 switch(format) in isMacroTileEnabled()
397 size_t getSize(int format, int width, int height, const int alignedw, in getSize() argument
401 switch (format) { in getSize()
433 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { in getSize()
501 ALOGE("unrecognized pixel format: 0x%x", format); in getSize()
507 size_t getBufferSizeAndDimensions(int width, int height, int format, in getBufferSizeAndDimensions() argument
514 format, in getBufferSizeAndDimensions()
519 size = getSize(format, width, height, alignedw, alignedh); in getBufferSizeAndDimensions()
525 size_t getBufferSizeAndDimensions(int width, int height, int format, int usage, in getBufferSizeAndDimensions() argument
529 int tileEnabled = isMacroTileEnabled(format, usage); in getBufferSizeAndDimensions()
533 format, in getBufferSizeAndDimensions()
538 size = getSize(format, width, height, alignedw, alignedh); in getBufferSizeAndDimensions()
544 void getBufferAttributes(int width, int height, int format, int usage, in getBufferAttributes() argument
547 tileEnabled = isMacroTileEnabled(format, usage); in getBufferAttributes()
551 format, in getBufferAttributes()
555 size = getSize(format, width, height, alignedw, alignedh); in getBufferAttributes()
566 switch (hnd->format) { in getYUVPlaneInfo()
615 hnd->format); in getYUVPlaneInfo()
627 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) in alloc_buffer() argument
636 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw, in alloc_buffer()
650 data.allocType, 0, format, in alloc_buffer()