Lines Matching refs:width
129 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format,
132 aligned_w = width;
136 aligned_w = ALIGN(width, 32);
161 // the function below computes aligned width and aligned height
164 LINK_adreno_compute_aligned_width_and_height(width,
171 aligned_w = LINK_adreno_compute_padding(width, bpp,
187 aligned_w = ALIGN(width, 32);
190 aligned_w = ALIGN(width, 128);
198 aligned_w = ALIGN(width, 16);
202 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12, width);
208 aligned_w = ALIGN(width, 64);
246 width, height, format, 0,raster_mode, padding_threshold,
397 unsigned int getSize(int format, int width, int height, const int alignedw,
418 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
428 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
444 if(width & 1) {
445 ALOGE("width is odd for the YUV422_SP format");
452 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height);
460 size = width;
502 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
507 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
514 size = getSize(format, width, height, alignedw, alignedh);
520 unsigned int getBufferSizeAndDimensions(int width, int height, int format,
526 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
533 size = getSize(format, width, height, alignedw, alignedh);
539 void getBufferAttributes(int width, int height, int format, int usage,
544 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
550 size = getSize(format, width, height, alignedw, alignedh);
559 // Get the chroma offsets from the handle width/height. We take advantage
560 // of the fact the width _is_ the stride
567 ystride = cstride = hnd->width;
581 ystride = cstride = hnd->width;
592 ystride = hnd->width;
593 cstride = ALIGN(hnd->width/2, 16);
618 // Allocate buffer from width, height and format into a