Lines Matching refs:mLockedBuffer

36         mReader(reader), mFormat(format), mUsage(usage), mBuffer(buffer), mLockedBuffer(nullptr),  in AImage()
71 mLockedBuffer = nullptr; in close()
186 if (mLockedBuffer != nullptr) { in lockImage()
203 mLockedBuffer = std::move(lockedBuffer); in lockImage()
219 if (mLockedBuffer == nullptr) { in unlockImageIfLocked()
240 if (mLockedBuffer == nullptr) { in getPlanePixelStride()
257 int32_t fmt = mLockedBuffer->flexFormat; in getPlanePixelStride()
260 *pixelStride = (planeIdx == 0) ? 1 : mLockedBuffer->chromaStep; in getPlanePixelStride()
300 if (mLockedBuffer == nullptr) { in getPlaneRowStride()
317 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneRowStride()
320 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride()
321 : mLockedBuffer->chromaStride; in getPlaneRowStride()
324 *rowStride = mLockedBuffer->width; in getPlaneRowStride()
327 if (mLockedBuffer->stride % 16) { in getPlaneRowStride()
328 ALOGE("Stride %d is not 16 pixel aligned!", mLockedBuffer->stride); in getPlaneRowStride()
331 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride()
332 : ALIGN(mLockedBuffer->stride / 2, 16); in getPlaneRowStride()
337 *rowStride = mLockedBuffer->stride; in getPlaneRowStride()
340 if (mLockedBuffer->stride % 16) { in getPlaneRowStride()
342 mLockedBuffer->stride); in getPlaneRowStride()
345 *rowStride = mLockedBuffer->stride; in getPlaneRowStride()
352 if (mLockedBuffer->stride % 16) { in getPlaneRowStride()
354 mLockedBuffer->stride); in getPlaneRowStride()
357 *rowStride = mLockedBuffer->stride * 2; in getPlaneRowStride()
360 *rowStride = mLockedBuffer->stride * 2; in getPlaneRowStride()
364 *rowStride = mLockedBuffer->stride * 4; in getPlaneRowStride()
368 *rowStride = mLockedBuffer->stride * 3; in getPlaneRowStride()
383 if (mLockedBuffer == nullptr) { in getJpegSize()
388 uint32_t width = mLockedBuffer->width; in getJpegSize()
389 uint8_t* jpegBuffer = mLockedBuffer->data; in getJpegSize()
417 if (mLockedBuffer == nullptr) { in getPlaneData()
440 int32_t fmt = mLockedBuffer->flexFormat; in getPlaneData()
444 pData = (planeIdx == 0) ? mLockedBuffer->data in getPlaneData()
445 : (planeIdx == 1) ? mLockedBuffer->dataCb in getPlaneData()
446 : mLockedBuffer->dataCr; in getPlaneData()
449 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) + in getPlaneData()
450 mLockedBuffer->width; in getPlaneData()
453 mLockedBuffer->chromaStride * in getPlaneData()
454 (mLockedBuffer->height / 2 - 1) + in getPlaneData()
455 mLockedBuffer->chromaStep * (mLockedBuffer->width / 2 - 1) + in getPlaneData()
461 cr = mLockedBuffer->data + in getPlaneData()
462 (mLockedBuffer->stride * mLockedBuffer->height); in getPlaneData()
465 ySize = mLockedBuffer->width * (mLockedBuffer->height - 1) + in getPlaneData()
466 mLockedBuffer->width; in getPlaneData()
467 cSize = mLockedBuffer->width * (mLockedBuffer->height / 2 - 1) + in getPlaneData()
468 mLockedBuffer->width - 1; in getPlaneData()
469 pData = (planeIdx == 0) ? mLockedBuffer->data in getPlaneData()
475 if (mLockedBuffer->stride % 16) { in getPlaneData()
477 mLockedBuffer->stride); in getPlaneData()
481 ySize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData()
482 cStride = ALIGN(mLockedBuffer->stride / 2, 16); in getPlaneData()
483 cr = mLockedBuffer->data + ySize; in getPlaneData()
484 cSize = cStride * mLockedBuffer->height / 2; in getPlaneData()
487 pData = (planeIdx == 0) ? mLockedBuffer->data in getPlaneData()
494 pData = mLockedBuffer->data; in getPlaneData()
495 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData()
500 pData = mLockedBuffer->data; in getPlaneData()
502 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
506 if (mLockedBuffer->height != 1) { in getPlaneData()
508 mLockedBuffer->height); in getPlaneData()
512 pData = mLockedBuffer->data; in getPlaneData()
518 pData = mLockedBuffer->data; in getPlaneData()
520 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
524 if (mLockedBuffer->height != 1) { in getPlaneData()
526 mLockedBuffer->height); in getPlaneData()
529 pData = mLockedBuffer->data; in getPlaneData()
530 dataSize = mLockedBuffer->width; in getPlaneData()
534 if (mLockedBuffer->width % 4) { in getPlaneData()
535 ALOGE("Width is not multiple of 4 %d", mLockedBuffer->width); in getPlaneData()
538 if (mLockedBuffer->height % 2) { in getPlaneData()
539 ALOGE("Height is not multiple of 2 %d", mLockedBuffer->height); in getPlaneData()
542 if (mLockedBuffer->stride < (mLockedBuffer->width * 10 / 8)) { in getPlaneData()
544 mLockedBuffer->stride, mLockedBuffer->width * 10 / 8); in getPlaneData()
547 pData = mLockedBuffer->data; in getPlaneData()
548 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData()
552 if (mLockedBuffer->width % 4) { in getPlaneData()
553 ALOGE("Width is not multiple of 4 %d", mLockedBuffer->width); in getPlaneData()
556 if (mLockedBuffer->height % 2) { in getPlaneData()
557 ALOGE("Height is not multiple of 2 %d", mLockedBuffer->height); in getPlaneData()
560 if (mLockedBuffer->stride < (mLockedBuffer->width * 12 / 8)) { in getPlaneData()
562 mLockedBuffer->stride, mLockedBuffer->width * 12 / 8); in getPlaneData()
565 pData = mLockedBuffer->data; in getPlaneData()
566 dataSize = mLockedBuffer->stride * mLockedBuffer->height; in getPlaneData()
572 pData = mLockedBuffer->data; in getPlaneData()
574 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
579 pData = mLockedBuffer->data; in getPlaneData()
581 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()
586 pData = mLockedBuffer->data; in getPlaneData()
587 dataSize = mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel; in getPlaneData()