Lines Matching refs:mLockedBuffer
36 mReader(reader), mFormat(format), mUsage(usage), mBuffer(buffer), mLockedBuffer(nullptr),
71 mLockedBuffer = nullptr;
187 if (mLockedBuffer != nullptr) {
204 mLockedBuffer = std::move(lockedBuffer);
220 if (mLockedBuffer == nullptr) {
241 if (mLockedBuffer == nullptr) {
258 int32_t fmt = mLockedBuffer->flexFormat;
261 *pixelStride = (planeIdx == 0) ? 1 : mLockedBuffer->chromaStep;
301 if (mLockedBuffer == nullptr) {
318 int32_t fmt = mLockedBuffer->flexFormat;
321 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride
322 : mLockedBuffer->chromaStride;
325 *rowStride = mLockedBuffer->width;
328 if (mLockedBuffer->stride % 16) {
329 ALOGE("Stride %d is not 16 pixel aligned!", mLockedBuffer->stride);
332 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride
333 : ALIGN(mLockedBuffer->stride / 2, 16);
338 *rowStride = mLockedBuffer->stride;
341 if (mLockedBuffer->stride % 16) {
343 mLockedBuffer->stride);
346 *rowStride = mLockedBuffer->stride;
353 if (mLockedBuffer->stride % 16) {
355 mLockedBuffer->stride);
358 *rowStride = mLockedBuffer->stride * 2;
361 *rowStride = mLockedBuffer->stride * 2;
365 *rowStride = mLockedBuffer->stride * 4;
369 *rowStride = mLockedBuffer->stride * 3;
384 if (mLockedBuffer == nullptr) {
389 uint32_t width = mLockedBuffer->width;
390 uint8_t* jpegBuffer = mLockedBuffer->data;
418 if (mLockedBuffer == nullptr) {
441 int32_t fmt = mLockedBuffer->flexFormat;
445 pData = (planeIdx == 0) ? mLockedBuffer->data
446 : (planeIdx == 1) ? mLockedBuffer->dataCb
447 : mLockedBuffer->dataCr;
450 dataSize = mLockedBuffer->stride * (mLockedBuffer->height - 1) +
451 mLockedBuffer->width;
454 mLockedBuffer->chromaStride *
455 (mLockedBuffer->height / 2 - 1) +
456 mLockedBuffer->chromaStep * (mLockedBuffer->width / 2 - 1) +
462 cr = mLockedBuffer->data +
463 (mLockedBuffer->stride * mLockedBuffer->height);
466 ySize = mLockedBuffer->width * (mLockedBuffer->height - 1) +
467 mLockedBuffer->width;
468 cSize = mLockedBuffer->width * (mLockedBuffer->height / 2 - 1) +
469 mLockedBuffer->width - 1;
470 pData = (planeIdx == 0) ? mLockedBuffer->data
476 if (mLockedBuffer->stride % 16) {
478 mLockedBuffer->stride);
482 ySize = mLockedBuffer->stride * mLockedBuffer->height;
483 cStride = ALIGN(mLockedBuffer->stride / 2, 16);
484 cr = mLockedBuffer->data + ySize;
485 cSize = cStride * mLockedBuffer
488 pData = (planeIdx == 0) ? mLockedBuffer->data
495 pData = mLockedBuffer->data;
496 dataSize = mLockedBuffer->stride * mLockedBuffer->height;
501 pData = mLockedBuffer->data;
503 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
507 if (mLockedBuffer->height != 1) {
509 mLockedBuffer->height);
513 pData = mLockedBuffer->data;
519 pData = mLockedBuffer->data;
521 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
525 if (mLockedBuffer->height != 1) {
527 mLockedBuffer->height);
530 pData = mLockedBuffer->data;
531 dataSize = mLockedBuffer->width;
535 if (mLockedBuffer->width % 4) {
536 ALOGE("Width is not multiple of 4 %d", mLockedBuffer->width);
539 if (mLockedBuffer->height % 2) {
540 ALOGE("Height is not multiple of 2 %d", mLockedBuffer->height);
543 if (mLockedBuffer->stride < (mLockedBuffer->width * 10 / 8)) {
545 mLockedBuffer->stride, mLockedBuffer->width * 10 / 8);
548 pData = mLockedBuffer->data;
549 dataSize = mLockedBuffer->stride * mLockedBuffer->height;
553 if (mLockedBuffer->width % 4) {
554 ALOGE("Width is not multiple of 4 %d", mLockedBuffer->width);
557 if (mLockedBuffer->height % 2) {
558 ALOGE("Height is not multiple of 2 %d", mLockedBuffer->height);
561 if (mLockedBuffer->stride < (mLockedBuffer->width * 12 / 8)) {
563 mLockedBuffer->stride, mLockedBuffer->width * 12 / 8);
566 pData = mLockedBuffer->data;
567 dataSize = mLockedBuffer->stride * mLockedBuffer->height;
573 pData = mLockedBuffer->data;
575 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
580 pData = mLockedBuffer->data;
582 mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;
587 pData = mLockedBuffer->data;
588 dataSize = mLockedBuffer->stride * mLockedBuffer->height * bytesPerPixel;