Lines Matching refs:nativeBuffer
58 status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) { in lockNextBuffer() argument
61 if (!nativeBuffer) return BAD_VALUE; in lockNextBuffer()
134 nativeBuffer->data = in lockNextBuffer()
136 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth(); in lockNextBuffer()
137 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight(); in lockNextBuffer()
138 nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat(); in lockNextBuffer()
139 nativeBuffer->stride = (ycbcr.y != NULL) ? in lockNextBuffer()
143 nativeBuffer->crop = b.mCrop; in lockNextBuffer()
144 nativeBuffer->transform = b.mTransform; in lockNextBuffer()
145 nativeBuffer->scalingMode = b.mScalingMode; in lockNextBuffer()
146 nativeBuffer->timestamp = b.mTimestamp; in lockNextBuffer()
147 nativeBuffer->frameNumber = b.mFrameNumber; in lockNextBuffer()
149 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockNextBuffer()
150 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockNextBuffer()
151 nativeBuffer->chromaStride = ycbcr.cstride; in lockNextBuffer()
152 nativeBuffer->chromaStep = ycbcr.chroma_step; in lockNextBuffer()
159 status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) { in unlockBuffer() argument
164 void *bufPtr = reinterpret_cast<void *>(nativeBuffer.data); in unlockBuffer()