Lines Matching refs:nativeBuffer
89 status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) { in lockNextBuffer() argument
92 if (!nativeBuffer) return BAD_VALUE; in lockNextBuffer()
180 nativeBuffer->data = in lockNextBuffer()
182 nativeBuffer->width = mSlots[slot].mGraphicBuffer->getWidth(); in lockNextBuffer()
183 nativeBuffer->height = mSlots[slot].mGraphicBuffer->getHeight(); in lockNextBuffer()
184 nativeBuffer->format = format; in lockNextBuffer()
185 nativeBuffer->flexFormat = flexFormat; in lockNextBuffer()
186 nativeBuffer->stride = (ycbcr.y != NULL) ? in lockNextBuffer()
190 nativeBuffer->crop = b.mCrop; in lockNextBuffer()
191 nativeBuffer->transform = b.mTransform; in lockNextBuffer()
192 nativeBuffer->scalingMode = b.mScalingMode; in lockNextBuffer()
193 nativeBuffer->timestamp = b.mTimestamp; in lockNextBuffer()
194 nativeBuffer->dataSpace = b.mDataSpace; in lockNextBuffer()
195 nativeBuffer->frameNumber = b.mFrameNumber; in lockNextBuffer()
197 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb); in lockNextBuffer()
198 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr); in lockNextBuffer()
199 nativeBuffer->chromaStride = static_cast<uint32_t>(ycbcr.cstride); in lockNextBuffer()
200 nativeBuffer->chromaStep = static_cast<uint32_t>(ycbcr.chroma_step); in lockNextBuffer()
207 status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) { in unlockBuffer() argument
211 void *bufPtr = reinterpret_cast<void *>(nativeBuffer.data); in unlockBuffer()