Home
last modified time | relevance | path

Searched refs:private_handle (Results 1 – 9 of 9) sorted by relevance

/hardware/google/gchips/gralloc4/src/hidl_common/
DMapper.cpp197 auto private_handle = private_handle_t::dynamicCast(bufferHandle); in lockBuffer() local
198 if (private_handle->cpu_write != 0 && (cpuUsage & BufferUsage::CPU_WRITE_MASK)) in lockBuffer()
247 auto private_handle = private_handle_t::dynamicCast(bufferHandle); in unlockBuffer() local
249 if (!private_handle->cpu_write && !private_handle->cpu_read) in unlockBuffer()
296 auto *private_handle = static_cast<private_handle_t *>(bufferHandle); in importBuffer() local
297 private_handle->attr_base = mmap(nullptr, private_handle->attr_size, PROT_READ | PROT_WRITE, in importBuffer()
298 MAP_SHARED, private_handle->get_share_attr_fd(), 0); in importBuffer()
299 if (private_handle->attr_base == MAP_FAILED) in importBuffer()
336 auto *private_handle = static_cast<private_handle_t *>(bufferHandle); in freeBuffer() local
337 int ret = munmap(private_handle->attr_base, private_handle->attr_size); in freeBuffer()
[all …]
/hardware/google/gchips/gralloc3/src/
Dgralloc_vendor_interface.cpp146 private_handle_t *private_handle = const_cast<private_handle_t *>( in createNativeHandle() local
149 private_handle->offset = private_handle->plane_info[0].offset = descriptor.planes[0].offset; in createNativeHandle()
151 int err = gralloc_buffer_attr_allocate(private_handle); in createNativeHandle()
154 mali_gralloc_ion_free(private_handle); in createNativeHandle()
/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/
DREADME.txt4 So vendor modules that need to allocate/map buffers or look into a gralloc buffer's private_handle
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/inc/
Domx_vdec.h880 void set_histogram_metadata(private_handle_t *private_handle);
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_v4l2.cpp9034 private_handle_t *private_handle = NULL; in fill_buffer_done() local
9040 private_handle = native_buffer[buf_index].privatehandle; in fill_buffer_done()
9041 if (private_handle) { in fill_buffer_done()
9044 setMetaData(private_handle, UPDATE_BUFFER_GEOMETRY, (void*)&dim); in fill_buffer_done()
11310 private_handle_t *private_handle = NULL; in set_colorspace_in_handle() local
11314 private_handle = native_buffer[buf_index].privatehandle; in set_colorspace_in_handle()
11316 if (private_handle) { in set_colorspace_in_handle()
11317 setMetaData(private_handle, UPDATE_COLOR_SPACE, (void*)&color_space); in set_colorspace_in_handle()
11439 private_handle_t *private_handle = NULL; in set_colormetadata_in_handle() local
11443 private_handle = native_buffer[buf_index].privatehandle; in set_colormetadata_in_handle()
[all …]
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_v4l2.cpp7983 void omx_vdec::set_histogram_metadata(private_handle_t *private_handle) in set_histogram_metadata() argument
7985 if (m_hist_metadata.stat_len != VIDEO_HISTOGRAM_STATS_SIZE || !private_handle) in set_histogram_metadata()
7993 if (setMetaData(private_handle, SET_VIDEO_HISTOGRAM_STATS, (void*)&m_hist_metadata)) in set_histogram_metadata()
8011 private_handle_t *private_handle = NULL; in handle_extradata() local
8025 private_handle = (private_handle_t *)native_buffer[buf_index].privatehandle; in handle_extradata()
8090 setMetaData(private_handle, PP_PARAM_INTERLACED, (void*)&enable); in handle_extradata()
8238 setMetaData(private_handle, COLOR_METADATA, (void*)&color_mdata); in handle_extradata()
8240 set_histogram_metadata(private_handle); in handle_extradata()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp7159 private_handle_t *private_handle = NULL; in fill_buffer_done() local
7163 private_handle = native_buffer[buf_index].privatehandle; in fill_buffer_done()
7164 if (private_handle) { in fill_buffer_done()
7167 setMetaData(private_handle, UPDATE_BUFFER_GEOMETRY, (void*)&dim); in fill_buffer_done()
Domx_vdec_msm8974.cpp7465 private_handle_t *private_handle = NULL; in fill_buffer_done() local
7471 private_handle = native_buffer[buf_index].privatehandle; in fill_buffer_done()
7472 if (private_handle) { in fill_buffer_done()
7475 setMetaData(private_handle, UPDATE_BUFFER_GEOMETRY, (void*)&dim); in fill_buffer_done()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Domx_vdec_hevc_swvdec.cpp7373 private_handle_t *private_handle = NULL; in fill_buffer_done() local
7377 private_handle = native_buffer[buf_index].privatehandle; in fill_buffer_done()
7378 if (private_handle) { in fill_buffer_done()
7381 setMetaData(private_handle, UPDATE_BUFFER_GEOMETRY, (void*)&dim); in fill_buffer_done()