BufferQueueProducer requestBuffer

BufferQueueProducer::requestBuffer

返回刚才dequeue的slot对应的mGraphicBuffer

status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) {
    Mutex::Autolock lock(mCore->mMutex);
    mSlots[slot].mRequestBufferCalled = true;
    *buf = mSlots[slot].mGraphicBuffer;
    return NO_ERROR;
}

典型用法

camera3OutputStream::getBufferLocked典型用法

赞(3)
未经允许不得转载:极客笔记 » BufferQueueProducer requestBuffer
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址