Lines Matching refs:width

117     uint32_t width = buffer->width;  in Image_getBlobSize()  local
121 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
125 uint8_t* header = blobBuffer + (width - sizeof(struct camera3_jpeg_blob_v2)); in Image_getBlobSize()
147 __FUNCTION__, width); in Image_getBlobSize()
148 size = width; in Image_getBlobSize()
180 if (buffer->width % 2 != 0) { in getLockedImageInfo()
181 ALOGE("YCbCr_420_888: width (%d) should be a multiple of 2", buffer->width); in getLockedImageInfo()
190 if (buffer->width <= 0) { in getLockedImageInfo()
191 ALOGE("YCbCr_420_888: width (%d) should be a > 0", buffer->width); in getLockedImageInfo()
210 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
215 buffer->chromaStep * (buffer->width / 2 - 1) + 1; in getLockedImageInfo()
221 if (buffer->width % 2 != 0) { in getLockedImageInfo()
222 ALOGE("YCrCb_420_SP: width (%d) should be a multiple of 2", buffer->width); in getLockedImageInfo()
231 if (buffer->width <= 0) { in getLockedImageInfo()
232 ALOGE("YCrCb_420_SP: width (%d) should be a > 0", buffer->width); in getLockedImageInfo()
244 ySize = buffer->width * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
245 cSize = buffer->width * (buffer->height / 2 - 1) + buffer->width - 1; in getLockedImageInfo()
256 rStride = buffer->width; in getLockedImageInfo()
260 if (buffer->width % 2 != 0) { in getLockedImageInfo()
261 ALOGE("YV12: width (%d) should be a multiple of 2", buffer->width); in getLockedImageInfo()
270 if (buffer->width <= 0) { in getLockedImageInfo()
271 ALOGE("YV12: width (%d) should be a > 0", buffer->width); in getLockedImageInfo()
306 if (buffer->width <= 0) { in getLockedImageInfo()
307 ALOGE("YCBCR_P010: width (%d) should be a > 0", buffer->width); in getLockedImageInfo()
327 dataSize = buffer->stride * (buffer->height - 1) + buffer->width * 2; in getLockedImageInfo()
332 buffer->chromaStep * (buffer->width / 2); in getLockedImageInfo()
371 LOG_ALWAYS_FATAL_IF(buffer->height != buffer->width, in getLockedImageInfo()
399 dataSize = buffer->width; in getLockedImageInfo()
406 LOG_ALWAYS_FATAL_IF(buffer->width % 4, in getLockedImageInfo()
407 "Width is not multiple of 4 %d", buffer->width); in getLockedImageInfo()
410 LOG_ALWAYS_FATAL_IF(buffer->stride < (buffer->width * 10 / 8), in getLockedImageInfo()
412 buffer->stride, buffer->width * 10 / 8); in getLockedImageInfo()
421 LOG_ALWAYS_FATAL_IF(buffer->width % 4, in getLockedImageInfo()
422 "Width is not multiple of 4 %d", buffer->width); in getLockedImageInfo()
425 LOG_ALWAYS_FATAL_IF(buffer->stride < (buffer->width * 12 / 8), in getLockedImageInfo()
427 buffer->stride, buffer->width * 12 / 8); in getLockedImageInfo()
534 outputImage->width = buffer->getWidth(); in extractP010Gralloc4PlaneLayout()
592 outputImage->width = buffer->getWidth(); in lockImageFromBuffer()