Lines Matching refs:width
105 int AdrenoMemInfo::getStride(int width, int format)
107 int stride = ALIGN(width, 32);
125 // the function below expects the width to be a multiple of
126 // 32 pixels, hence we pass stride instead of width.
135 stride = ALIGN(width, 32);
138 stride = ALIGN(width, 128);
148 stride = ALIGN(width, 16);
151 stride = VENUS_Y_STRIDE(COLOR_FMT_NV12, width);
154 stride = width;
256 size_t getBufferSizeAndDimensions(int width, int height, int format,
261 alignedw = AdrenoMemInfo::getInstance().getStride(width, format);
280 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096);
291 alignedw = ALIGN(width, 16);
293 size = ALIGN( ALIGN(width, 128) * ALIGN(height, 32), 8192);
294 size += ALIGN( ALIGN(width, 128) * ALIGN(height/2, 32), 8192);
298 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) {
320 if(width & 1) {
321 ALOGE("width is odd for the YUV422_SP format");
329 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height);
339 alignedw = width;
340 size = width;
350 // Allocate buffer from width, height and format into a