Home | History | Annotate | Download | only in libgralloc

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)
251 width, height, format, 0,raster_mode, padding_threshold,
364 bool isMacroTileEnabled(int format, int usage)
372 // check the format
373 switch(format)
397 size_t getSize(int format, int width, int height, const int alignedw,
401 switch (format) {
433 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
434 ALOGE("w or h is odd for the YV12 format");
450 ALOGE("width is odd for the YUV422_SP format");
461 ALOGE("%s: Buffers with format HAL_PIXEL_FORMAT_BLOB \
501 ALOGE("unrecognized pixel format: 0x%x", format);
507 size_t getBufferSizeAndDimensions(int width, int height, int format,
514 format,
519 size = getSize(format, width, height, alignedw, alignedh);
525 size_t getBufferSizeAndDimensions(int width, int height, int format, int usage,
529 int tileEnabled = isMacroTileEnabled(format, usage);
533 format,
538 size = getSize(format, width, height, alignedw, alignedh);
544 void getBufferAttributes(int width, int height, int format, int usage,
547 tileEnabled = isMacroTileEnabled(format, usage);
551 format,
555 size = getSize(format, width, height, alignedw, alignedh);
566 switch (hnd->format) {
614 ALOGD("%s: Invalid format passed: 0x%x", __FUNCTION__,
615 hnd->format);
624 // Allocate buffer from width, height and format into a
627 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage)
636 data.size = getBufferSizeAndDimensions(w, h, format, usage, alignedw,
650 data.allocType, 0, format,