Lines Matching refs:format
129 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
135 if (format <= HAL_PIXEL_FORMAT_sRGB_X_8888) {
148 switch(format)
182 switch (format)
246 width, height, format, 0,raster_mode, padding_threshold,
364 bool isMacroTileEnabled(int format, int usage)
372 // check the format
373 switch(format)
397 unsigned int getSize(int format, int width, int height, const int alignedw,
401 switch (format) {
430 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
431 format");
447 ALOGE("width is odd for the YUV422_SP format");
458 ALOGE("%s: Buffers with format HAL_PIXEL_FORMAT_BLOB \
498 ALOGE("unrecognized pixel format: 0x%x", format);
504 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
511 format,
516 size = getSize(format, width, height, alignedw, alignedh);
522 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
526 int tileEnabled = isMacroTileEnabled(format, usage);
530 format,
535 size = getSize(format, width, height, alignedw, alignedh);
541 void getBufferAttributes(int width, int height, int format, int usage,
544 tileEnabled = isMacroTileEnabled(format, usage);
548 format,
552 size = getSize(format, width, height, alignedw, alignedh);
563 switch (hnd->format) {
610 ALOGD("%s: Invalid format passed: 0x%x", __FUNCTION__,
611 hnd->format);
620 // Allocate buffer from width, height and format into a
623 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage)
632 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw,
646 data.allocType, 0, format,