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,
186 aligned_w = ALIGN(width, 32);
189 aligned_w = ALIGN(width, 16);
192 aligned_w = ALIGN(width * 10 /8, 16);
195 aligned_w = ALIGN(width, 128);
203 aligned_w = ALIGN(width, 16);
207 aligned_w = VENUS_Y_STRIDE(COLOR_FMT_NV12, width);
214 aligned_w = ALIGN(width, 64);
252 width, height, format, 0,raster_mode, padding_threshold,
398 size_t getSize(int format, int width, int height, const int alignedw,
422 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
432 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
448 if(width & 1) {
449 ALOGE("width is odd for the YUV422_SP format");
456 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height);
465 size = width;
507 size_t getBufferSizeAndDimensions(int width, int height, int format,
512 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
519 size = getSize(format, width, height, alignedw, alignedh);
525 size_t getBufferSizeAndDimensions(int width, int height, int format, int usage,
531 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
538 size = getSize(format, width, height, alignedw, alignedh);
544 void getBufferAttributes(int width, int height, int format, int usage,
549 AdrenoMemInfo::getInstance().getAlignedWidthAndHeight(width,
555 size = getSize(format, width, height, alignedw, alignedh);
564 // Get the chroma offsets from the handle width/height. We take advantage
565 // of the fact the width _is_ the stride
572 ystride = cstride = hnd->width;
587 ystride = cstride = hnd->width;
598 ystride = hnd->width;
599 cstride = ALIGN(hnd->width/2, 16);
624 // Allocate buffer from width, height and format into a