Lines Matching refs:buf
213 ANativeWindowBuffer *buf;
215 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd);
217 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0);
234 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst));
244 buf->stride, buf->height,
256 size_t dst_y_size = buf->stride * buf->height;
257 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
258 size_t dst_c_size = dst_c_stride * buf->height / 2;
266 dst_y += buf->stride;
289 size_t dst_y_size = buf->stride * buf->height;
290 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
291 size_t dst_c_size = dst_c_stride * buf->height / 2;
299 dst_y += buf->stride;
323 dstPtr += buf->stride * 3;
333 dstPtr = (uint8_t*)dst + buf->stride * 4 * y;
352 dstPtr += buf->stride * 4;
359 CHECK_EQ(0, mapper.unlock(buf->handle));
378 if ((err = mNativeWindow->queueBuffer(mNativeWindow.get(), buf, -1)) != 0) {
381 mRenderTracker.onFrameQueued(mediaTimeUs, (GraphicBuffer *)buf, Fence::NO_FENCE);
384 buf = NULL;