Lines Matching full:nativebuffer
70 status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) {
73 if (!nativeBuffer) return BAD_VALUE;
148 nativeBuffer->data =
150 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth();
151 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight();
152 nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat();
153 nativeBuffer->stride = (ycbcr.y != NULL) ?
157 nativeBuffer->crop = b.mCrop;
158 nativeBuffer->transform = b.mTransform;
159 nativeBuffer->scalingMode = b.mScalingMode;
160 nativeBuffer->timestamp = b.mTimestamp;
161 nativeBuffer->frameNumber = b.mFrameNumber;
163 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb);
164 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr);
165 nativeBuffer->chromaStride = ycbcr.cstride;
166 nativeBuffer->chromaStep = ycbcr.chroma_step;
173 status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) {
178 void *bufPtr = reinterpret_cast<void *>(nativeBuffer.data);