Home | History | Annotate | Download | only in gui

Lines Matching full:nativebuffer

70 status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) {
73 if (!nativeBuffer) return BAD_VALUE;
169 nativeBuffer->data =
171 nativeBuffer->width = mSlots[buf].mGraphicBuffer->getWidth();
172 nativeBuffer->height = mSlots[buf].mGraphicBuffer->getHeight();
173 nativeBuffer->format = mSlots[buf].mGraphicBuffer->getPixelFormat();
174 nativeBuffer->stride = (ycbcr.y != NULL) ?
178 nativeBuffer->crop = b.mCrop;
179 nativeBuffer->transform = b.mTransform;
180 nativeBuffer->scalingMode = b.mScalingMode;
181 nativeBuffer->timestamp = b.mTimestamp;
182 nativeBuffer->frameNumber = b.mFrameNumber;
184 nativeBuffer->dataCb = reinterpret_cast<uint8_t*>(ycbcr.cb);
185 nativeBuffer->dataCr = reinterpret_cast<uint8_t*>(ycbcr.cr);
186 nativeBuffer->chromaStride = ycbcr.cstride;
187 nativeBuffer->chromaStep = ycbcr.chroma_step;
194 status_t CpuConsumer::unlockBuffer(const LockedBuffer &nativeBuffer) {
199 void *bufPtr = reinterpret_cast<void *>(nativeBuffer.data);