Home
last modified time | relevance | path

Searched refs:private_handle_t (Results 1 – 25 of 31) sorted by relevance

12

/device/linaro/hikey/gralloc/
Dgralloc_module.cpp64 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
71 private_handle_t *hnd = (private_handle_t *)handle; in gralloc_register_buffer()
97 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in gralloc_register_buffer()
101 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in gralloc_register_buffer()
113 hnd->lockState &= ~(private_handle_t::LOCK_STATE_UNREGISTERED); in gralloc_register_buffer()
133 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) in gralloc_register_buffer()
180 hnd->lockState &= ~(private_handle_t::LOCK_STATE_UNREGISTERED); in gralloc_register_buffer()
195 static void unmap_buffer(private_handle_t *hnd) in unmap_buffer()
197 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in unmap_buffer()
207 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) in unmap_buffer()
[all …]
Dgralloc_priv.h100 struct private_handle_t;
106 private_handle_t *framebuffer;
131 struct private_handle_t : public native_handle struct
134 struct private_handle_t
203private_handle_t(int flags, int usage, int size, void *base, int lock_state, ump_secure_id secure_… in private_handle_t() argument
232 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
237 private_handle_t(int flags, int usage, int size, void *base, int lock_state): in private_handle_t() argument
263 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
268private_handle_t(int flags, int usage, int size, void *base, int lock_state, int fb_file, int fb_o… in private_handle_t() function
299 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()
[all …]
Dalloc_device.cpp146private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_ION, usage, size, c… in gralloc_alloc_buffer()
220private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_UMP, usage, size, c… in gralloc_alloc_buffer()
221 private_handle_t::LOCK_STATE_MAPPED, ump_id, ump_mem_handle); in gralloc_alloc_buffer()
310private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, usage, size… in gralloc_alloc_framebuffer_locked()
473 private_handle_t *hnd = (private_handle_t *)*pHandle; in alloc_device_alloc()
507 if (private_handle_t::validate(handle) < 0) in alloc_device_free()
512 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(handle); in alloc_device_free()
514 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in alloc_device_free()
532 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) in alloc_device_free()
547 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) in alloc_device_free()
Dframebuffer_device.cpp69 if (private_handle_t::validate(buffer) < 0) in fb_post()
74 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(buffer); in fb_post()
83 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) in fb_post()
385 …module->framebuffer = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, 0, fbSize, va… in init_frame_buffer_locked()
/device/moto/shamu/camera/QCamera/HAL2/core/src/
DQCameraStream_Preview.cpp61 mPreviewMemory.private_buffer_handle[i] = (struct private_handle_t *)buffers[i]; in registerStreamBuffers()
214 struct private_handle_t *private_handle = mPreviewMemory.private_buffer_handle[0]; in prepareStream()
218 if (private_handle->flags & private_handle_t::PRIV_FLAGS_VIDEO_ENCODER) in prepareStream()
220 else if (private_handle->flags & private_handle_t::PRIV_FLAGS_CAMERA_WRITE) in prepareStream()
DQCameraHWI.cpp435 struct private_handle_t *private_handle = in register_stream_buffers()
436 (struct private_handle_t *)buffers[0]; in register_stream_buffers()
/device/moto/shamu/camera/QCamera2/HAL3/
DQCamera3Mem.h132 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCamera3Channel.h163 int32_t initialize(struct private_handle_t *priv_handle);
DQCamera3Mem.cpp681 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
/device/huawei/angler/camera/QCamera2/HAL3/
DQCamera3Mem.h151 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCamera3Channel.h260 int32_t initialize(struct private_handle_t *priv_handle);
DQCamera3Mem.cpp770 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
/device/lge/bullhead/camera/QCamera2/HAL3/
DQCamera3Mem.h151 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCamera3Channel.h260 int32_t initialize(struct private_handle_t *priv_handle);
DQCamera3Mem.cpp770 mPrivateHandle[idx] = (struct private_handle_t *)(*mBufferHandle[idx]); in registerBuffer()
/device/moto/shamu/camera/QCamera2/HAL/
DQCameraMem.h227 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCameraMem.cpp1121 nh->data[3] = private_handle_t::PRIV_FLAGS_ITU_R_709; in allocate()
1480 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate()
/device/moto/shamu/camera/QCamera/HAL2/core/inc/
DQCameraStream.h70 struct private_handle_t *private_buffer_handle[MM_CAMERA_MAX_NUM_FRAMES];
/device/huawei/angler/camera/QCamera2/HAL/
DQCameraMem.h246 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCameraMem.cpp1266 nh->data[3] = private_handle_t::PRIV_FLAGS_ITU_R_709; in allocate()
1695 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate()
/device/lge/bullhead/camera/QCamera2/HAL/
DQCameraMem.h246 struct private_handle_t *mPrivateHandle[MM_CAMERA_MAX_NUM_FRAMES];
DQCameraMem.cpp1266 nh->data[3] = private_handle_t::PRIV_FLAGS_ITU_R_709; in allocate()
1695 (struct private_handle_t *)(*mBufferHandle[cnt]); in allocate()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQualcommUsbCamera.cpp893 (struct private_handle_t *) (*camHal->previewMem.buffer_handle[cnt]); in initDisplayBuffers()
1778 struct private_handle_t *private_buffer_handle = NULL; in get_buf_from_display()
1815 private_buffer_handle = (struct private_handle_t *)(*buffer_handle); in get_buf_from_display()
/device/moto/shamu/camera/QCamera/HAL/core/inc/
DQCameraHWI.h155 struct private_handle_t *private_buffer_handle[MM_CAMERA_MAX_NUM_FRAMES];
/device/moto/shamu/camera/QCamera/HAL/core/src/
DQCameraHWI_Preview.cpp153 (struct private_handle_t *)(*mHalCamCtrl->mPreviewMemory.buffer_handle[cnt]); in getBufferFromSurface()

12