Lines Matching refs:nh
1350 native_handle_t *nh = mNativeHandle[i]; in allocate() local
1351 if (!nh) { in allocate()
1357 updateNativeHandle(nh, 0, mMemInfo[i].fd, (int)mMemInfo[i].size); in allocate()
1412 native_handle_t *nh = mNativeHandle[i]; in allocateMore() local
1413 if (!nh) { in allocateMore()
1419 MetaBufferUtil::setFdAt(nh, 0, -1); in allocateMore()
1420 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_OFFSET, 0); in allocateMore()
1421 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_SIZE, 0); in allocateMore()
1422 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_USAGE, mUsage); in allocateMore()
1423 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_TIMESTAMP, 0); in allocateMore()
1424 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_FORMAT, mFormat); in allocateMore()
1425 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_BUFIDX, i); in allocateMore()
1426 MetaBufferUtil::setIntAt(nh, 0, VIDEO_META_EVENT, 0); in allocateMore()
1429 updateNativeHandle(nh, 0, mMemInfo[i].fd, (int)mMemInfo[i].size); in allocateMore()
1486 native_handle_t *nh = mNativeHandle[i]; in allocateMeta() local
1488 MetaBufferUtil::setFdAt(nh, j, -1); in allocateMeta()
1489 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_OFFSET, 0); in allocateMeta()
1490 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_SIZE, 0); in allocateMeta()
1491 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_USAGE, mUsage); in allocateMeta()
1492 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_TIMESTAMP, 0); in allocateMeta()
1493 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_FORMAT, mFormat); in allocateMeta()
1494 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_BUFIDX, i); in allocateMeta()
1495 MetaBufferUtil::setIntAt(nh, j, VIDEO_META_EVENT, 0); in allocateMeta()
1522 native_handle_t *nh = mNativeHandle[i]; in deallocateMeta() local
1523 if (NULL != nh) { in deallocateMeta()
1524 if (native_handle_delete(nh)) { in deallocateMeta()
1633 int32_t QCameraVideoMemory::updateNativeHandle(native_handle_t *nh, in updateNativeHandle() argument
1637 MetaBufferUtil::setFdAt(nh, batch_idx, fd); in updateNativeHandle()
1638 MetaBufferUtil::setIntAt(nh, batch_idx, VIDEO_META_SIZE, size); in updateNativeHandle()
1639 MetaBufferUtil::setIntAt(nh, batch_idx, VIDEO_META_TIMESTAMP, ts); in updateNativeHandle()
1745 native_handle_t *nh = NULL; in getMatchBufIndex() local
1749 nh = (native_handle_t *)packet->pHandle; in getMatchBufIndex()
1750 int mBufIndex = MetaBufferUtil::getIntAt(nh, 0, VIDEO_META_BUFIDX); in getMatchBufIndex()
1844 native_handle_t *nh = NULL; in needPerfEvent() local
1849 nh = (native_handle_t *)packet->pHandle; in needPerfEvent()
1851 isPerf = (MetaBufferUtil::getIntAt(nh, 0, VIDEO_META_EVENT) == in needPerfEvent()
1857 nh = (native_handle_t *)packet->meta_handle; in needPerfEvent()
1861 isPerf = (MetaBufferUtil::getIntAt(nh, 0, VIDEO_META_EVENT) == in needPerfEvent()