Home
last modified time | relevance | path

Searched refs:planes (Results 1 – 13 of 13) sorted by relevance

/drivers/hdf_core/framework/model/camera/buffer_manager/src/
Dcamera_buffer.c30 queue->memOps->syncForUser(buffer->planes[plane].memPriv); in CameraBufferSyncForUser()
43 if ((queue->memOps->mmapFree != NULL) && (buffer->planes[plane].memPriv != NULL)) { in CameraBufferFreeMmapPlanes()
44 queue->memOps->mmapFree(buffer->planes[plane].memPriv); in CameraBufferFreeMmapPlanes()
45 buffer->planes[plane].memPriv = NULL; in CameraBufferFreeMmapPlanes()
56 if ((queue->memOps->freeUserPtr != NULL) && (buffer->planes[plane].memPriv != NULL)) { in CameraBufferFreeUserPtrPlanes()
57 queue->memOps->freeUserPtr(buffer->planes[plane].memPriv); in CameraBufferFreeUserPtrPlanes()
58 buffer->planes[plane].memPriv = NULL; in CameraBufferFreeUserPtrPlanes()
59 buffer->planes[plane].memory.userPtr = 0; in CameraBufferFreeUserPtrPlanes()
60 buffer->planes[plane].length = 0; in CameraBufferFreeUserPtrPlanes()
89 CameraBufferFreeDmaPlane(buffer, &buffer->planes[planeId]); in CameraBufferFreeDmaPlanes()
[all …]
Dcamera_buffer_manager.c63 if (buffer->planes[planeCnt].memory.offset == off) { in BufferQueueFindPlaneByOffset()
77 if (planeId >= buffer->numPlanes || buffer->planes[planeId].memPriv == NULL) { in CameraBufferGetPlaneVaddr()
82 return queue->memOps->getVaddr(buffer->planes[planeId].memPriv); in CameraBufferGetPlaneVaddr()
Dbuffer_queue.c181 buffer->planes[planeId].length = planeSizes[planeId]; in BufferQueueAllocBuffers()
182 buffer->planes[planeId].minLength = planeSizes[planeId]; in BufferQueueAllocBuffers()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
Dcamera_buffer.cpp113 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].memory.offset)) { in CameraQueryMemory()
117 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].length)) { in CameraQueryMemory()
127 if (!HdfSbufReadUint32(respData, &userBuffer.planes[0].length)) { in CameraQueryMemory()
140 struct UserCameraPlane planes[planeCount_] = {}; in CameraAllocBuffer() local
145 buf.planes = planes; in CameraAllocBuffer()
158 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
159 offArray_[bufferId] = buf.planes[0].memory.offset; in CameraAllocBuffer()
160 … mmapArray_[bufferId] = mmap(NULL, buf.planes[0].length, PROT_READ|PROT_WRITE, MAP_SHARED, in CameraAllocBuffer()
170 lengthArray_[bufferId] = buf.planes[0].length; in CameraAllocBuffer()
262 struct UserCameraPlane planes[planeCount_] = {}; in CameraReleaseBuffers() local
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
Dv4l2_buffer.cpp70 struct v4l2_plane planes[1] = {}; in V4L2QueueBuffer() local
77 buf.m.planes = planes; in V4L2QueueBuffer()
134 buf.m.planes[0].length = frameSpec->buffer_->GetSize(); in SetInqueueBuffer()
135 buf.m.planes[0].m.userptr = (unsigned long)frameSpec->buffer_->GetVirAddress(); in SetInqueueBuffer()
148 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
149 buf.m.planes[0].m.mem_offset = adapterBufferMap_[buf.index].offset; in SetMmapInqueueBuffer()
163 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetDmaInqueueBuffer()
164 buf.m.planes[0].m.fd = adapterBufferMap_[buf.index].dmafd; in SetDmaInqueueBuffer()
175 struct v4l2_plane planes[1] = {}; in V4L2DequeueBuffer() local
181 buf.m.planes = planes; in V4L2DequeueBuffer()
[all …]
/drivers/hdf_core/adapter/khdf/linux/model/camera/include/
Dsg_dma.h23 if (planeId >= buffer->numPlanes || buffer->planes[planeId].memPriv == NULL) { in DmaSgPlaneDesc()
28 return (struct sg_table *)queue->memOps->getCookie(buffer->planes[planeId].memPriv); in DmaSgPlaneDesc()
Dcontig_dma.h23 if (planeId >= buffer->numPlanes || buffer->planes[planeId].memPriv == NULL) { in ContigDmaGetAddr()
28 addr = queue->memOps->getCookie(buffer->planes[planeId].memPriv); in ContigDmaGetAddr()
/drivers/peripheral/display/hal/default/
Ddisplay_gralloc.c59 const PlaneLayoutInfo *planes; member
127 if ((fmtInfo != NULL) && (fmtInfo->planes != NULL)) { in AdjustStrideFromFormat()
128 uint32_t sum = fmtInfo->planes->radio[0]; in AdjustStrideFromFormat()
129 for (uint32_t i = 1; (i < fmtInfo->planes->numPlanes) && (i < MAX_PLANES); i++) { in AdjustStrideFromFormat()
130 sum += fmtInfo->planes->radio[i]; in AdjustStrideFromFormat()
133 width = DIV_ROUND_UP((width * sum), fmtInfo->planes->radio[0]); in AdjustStrideFromFormat()
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/
Ddrm_device.cpp217 drmModePlanePtr p = drmModeGetPlane(GetDrmFd(), planeRes->planes[i]); in FindAllPlane()
268 std::vector<std::shared_ptr<DrmPlane>> planes; in GetDrmPlane() local
272 planes.push_back(plane); in GetDrmPlane()
275 DISPLAY_LOGD("the planes count %{public}zd", planes.size()); in GetDrmPlane()
276 return planes; in GetDrmPlane()
/drivers/hdf_core/framework/model/camera/device_impl/src/
Dcamera_stream.c600 userBuffer.planes = userPlane; in CameraQueryMemory()
609 if (!HdfSbufWriteUint32(comDev->rspData, userBuffer.planes[0].memory.offset)) { in CameraQueryMemory()
613 if (!HdfSbufWriteUint32(comDev->rspData, userBuffer.planes[0].length)) { in CameraQueryMemory()
623 if (!HdfSbufWriteUint32(comDev->rspData, userBuffer.planes[0].length)) { in CameraQueryMemory()
664 userBuffer.planes = userPlane; in CameraStreamQueue()
665 isFailed |= !HdfSbufReadUint32(comDev->reqData, &userBuffer.planes[0].length); in CameraStreamQueue()
667 isFailed |= !HdfSbufReadUint64(comDev->reqData, &userBuffer.planes[0].memory.userPtr); in CameraStreamQueue()
669 isFailed |= !HdfSbufReadUint32(comDev->reqData, &userBuffer.planes[0].memory.offset); in CameraStreamQueue()
671 isFailed |= !HdfSbufReadUint32(comDev->reqData, &userBuffer.planes[0].memory.fd); in CameraStreamQueue()
713 userBuffer.planes = userPlane; in CameraStreamDeQueue()
/drivers/hdf_core/framework/model/camera/buffer_manager/include/
Dcamera_buffer.h52 struct BufferPlane planes[MAX_PLANES]; member
/drivers/peripheral/display/test/unittest/lite/
Dloadbmp_test.h68 uint16_t planes; member
/drivers/hdf_core/framework/include/camera/
Dcamera_product.h218 struct UserCameraPlane *planes; member