/device/generic/goldfish/gralloc/ |
gralloc.cpp | 137 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local 149 hnd->base = vaddr; 150 hnd->offset = vaddr - intptr_t(m->framebuffer->base); 151 *pHandle = hnd; 182 private_handle_t* hnd = new private_handle_t(fd, size, 0); local 185 err = mapBuffer(module, hnd); 187 *pHandle = hnd; 258 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local 259 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { 264 int index = (hnd->base - m->framebuffer->base) / bufferSize [all...] |
gralloc_priv.h | 101 const private_handle_t* hnd = (const private_handle_t*)h; local 104 hnd->magic != sMagic)
|
/device/google/cuttlefish_common/guest/hals/gralloc/ |
gralloc.cpp | 133 const vsoc_buffer_handle_t* hnd = local 135 void* mapped = reference_buffer(hnd); 165 const vsoc_buffer_handle_t* hnd = local 167 formatToYcbcr(hnd->format, w, h, mapped, ycbcr); 204 vsoc_buffer_handle_t* hnd = new vsoc_buffer_handle_t(fd, local 211 reference_buffer(reinterpret_cast<const vsoc_buffer_handle_t*>(hnd)); 217 *pHandle = hnd;
|
/device/linaro/hikey/gralloc/ |
framebuffer_device.cpp | 74 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(buffer); local 83 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) 88 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base;
|
/device/linaro/hikey/gralloc960/ |
alloc_ion.cpp | 345 private_handle_t *hnd = new private_handle_t( private_handle_t::PRIV_FLAGS_USES_ION | priv_heap_flag, usage, size, cpu_ptr, local 348 if ( NULL != hnd ) 350 hnd->share_fd = shared_fd; 351 hnd->min_pgsz = min_pgsz; 352 *pHandle = hnd; 371 int alloc_backend_alloc_framebuffer(private_module_t* m, private_handle_t* hnd) 378 hnd->share_fd = fb_dma_buf.fd; 388 void alloc_backend_alloc_free(private_handle_t const* hnd, private_module_t* m) 391 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) 395 else if ( hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION [all...] |
framebuffer_device.cpp | 76 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local 85 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) 90 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base; 132 if ( hnd->byte_stride == (int)m->finfo.line_length ) 149 buffer_offset += hnd->byte_stride;
|
/hardware/libhardware/modules/gralloc/ |
framebuffer.cpp | 77 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local 81 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { 82 const size_t offset = hnd->base - m->framebuffer->base;
|
gralloc.cpp | 137 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local 149 hnd->base = vaddr; 150 hnd->offset = vaddr - intptr_t(m->framebuffer->base); 151 *pHandle = hnd; 182 private_handle_t* hnd = new private_handle_t(fd, size, 0); local 185 err = mapBuffer(module, hnd); 187 *pHandle = hnd; 258 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local 259 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { 264 int index = (hnd->base - m->framebuffer->base) / bufferSize [all...] |
gralloc_priv.h | 101 const private_handle_t* hnd = (const private_handle_t*)h; local 104 hnd->magic != sMagic)
|
/hardware/qcom/display/msm8084/libcopybit/ |
copybit.cpp | 149 private_handle_t* hnd = (private_handle_t*)rhs->handle; local 150 if(hnd == NULL){ 157 img->offset = (uint32_t)hnd->offset; 158 img->memory_id = hnd->fd;
|
software_converter.cpp | 38 private_handle_t* hnd = (private_handle_t*)src->handle; local 40 if(hnd == NULL || yv12_handle == NULL){ 60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); 61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); 182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 186 if (!hnd || !rhs) { 187 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs); 216 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); 228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, [all...] |
/hardware/qcom/display/msm8084/libgralloc/ |
gpu.cpp | 158 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 162 hnd->offset = data.offset; 163 hnd->base = (uintptr_t)(data.base) + data.offset; 164 hnd->gpuaddr = 0; 165 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); 167 *pHandle = hnd; 227 private_handle_t* hnd = new private_handle_t( local 242 hnd->base = vaddr; 243 hnd->offset = vaddr - uintptr_t(m->framebuffer->base); 244 *pHandle = hnd; 381 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 size_t size = hnd->size; 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 68 hnd->offset, hnd->fd); 71 handle, hnd->fd, strerror(errno)); 72 hnd->base = 0; 76 hnd->base = intptr_t(mappedAddress) + hnd->offset 214 private_handle_t* hnd = (private_handle_t*)handle; local 246 private_handle_t* hnd = (private_handle_t*)handle; local 258 private_handle_t* hnd = (private_handle_t*)handle; local 272 private_handle_t* hnd = (private_handle_t*)handle; local 318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 341 private_handle_t* hnd = va_arg(args, private_handle_t*); local 366 private_handle_t* hnd = va_arg(args, private_handle_t*); local 382 private_handle_t* hnd = va_arg(args, private_handle_t*); local 417 private_handle_t* hnd = va_arg(args, private_handle_t*); local 430 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_ad.cpp | 164 private_handle_t *hnd = (private_handle_t *)layer->handle; local 165 if(hnd && hnd->width <= qdutils::MAX_DISPLAY_DIM) { 174 const private_handle_t *hnd) { 200 if(isSecureBuffer(hnd)) { 201 if(!wb->setSecure(isSecureBuffer(hnd))) { 207 if(!wb->configureDpyInfo(hnd->width, hnd->height)) { 222 size = getBufferSizeAndDimensions(hnd->width, hnd->height [all...] |
hwc_dump_layers.cpp | 226 private_handle_t *hnd = (private_handle_t *)layer->handle; local 239 if (hnd) 240 getHalPixelFormatStr(hnd->format, pixFormatStr); 245 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1, 303 private_handle_t *hnd = (private_handle_t *)layer->handle; local 306 if (NULL == hnd) { 312 getHalPixelFormatStr(hnd->format, pixFormatStr) [all...] |
/hardware/qcom/display/msm8226/libcopybit/ |
copybit.cpp | 149 private_handle_t* hnd = (private_handle_t*)rhs->handle; local 150 if(hnd == NULL){ 157 img->offset = (uint32_t)hnd->offset; 158 img->memory_id = hnd->fd;
|
software_converter.cpp | 38 private_handle_t* hnd = (private_handle_t*)src->handle; local 40 if(hnd == NULL || yv12_handle == NULL){ 60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); 61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); 182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 186 if (!hnd || !rhs) { 187 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs); 216 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info); 228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, [all...] |
/hardware/qcom/display/msm8226/libgralloc/ |
gpu.cpp | 161 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 165 hnd->offset = data.offset; 166 hnd->base = (uint64_t)(data.base) + data.offset; 167 hnd->gpuaddr = 0; 168 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); 170 *pHandle = hnd; 230 private_handle_t* hnd = new private_handle_t( local 245 hnd->base = vaddr; 246 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); 247 *pHandle = hnd; 384 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
mapper.cpp | 61 private_handle_t* hnd = (private_handle_t*)handle; 63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && 64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { 65 unsigned int size = hnd->size; 66 IMemAlloc* memalloc = getAllocator(hnd->flags) ; 68 hnd->offset, hnd->fd); 71 handle, hnd->fd, strerror(errno)); 72 hnd->base = 0; 76 hnd->base = uint64_t(mappedAddress) + hnd->offset 214 private_handle_t* hnd = (private_handle_t*)handle; local 246 private_handle_t* hnd = (private_handle_t*)handle; local 258 private_handle_t* hnd = (private_handle_t*)handle; local 272 private_handle_t* hnd = (private_handle_t*)handle; local 318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local 341 private_handle_t* hnd = va_arg(args, private_handle_t*); local 366 private_handle_t* hnd = va_arg(args, private_handle_t*); local 382 private_handle_t* hnd = va_arg(args, private_handle_t*); local 417 private_handle_t* hnd = va_arg(args, private_handle_t*); local 430 private_handle_t* hnd = va_arg(args, private_handle_t*); local [all...] |
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_ad.cpp | 132 private_handle_t *hnd = (private_handle_t *)layer->handle; local 133 if(hnd && hnd->width <= qdutils::MAX_DISPLAY_DIM) { 153 const private_handle_t *hnd) { 175 if(isSecureBuffer(hnd)) { 176 if(!wb->setSecure(isSecureBuffer(hnd))) { 182 if(!wb->configureDpyInfo(hnd->width, hnd->height)) { 197 size = getBufferSizeAndDimensions(hnd->width, hnd->height [all...] |
hwc_dump_layers.cpp | 226 private_handle_t *hnd = (private_handle_t *)layer->handle; local 239 if (hnd) 240 getHalPixelFormatStr(hnd->format, pixFormatStr); 245 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1, 303 private_handle_t *hnd = (private_handle_t *)layer->handle; local 306 if (NULL == hnd) { 312 getHalPixelFormatStr(hnd->format, pixFormatStr) [all...] |
/hardware/qcom/display/msm8909/libcopybit/ |
copybit.cpp | 160 private_handle_t* hnd = (private_handle_t*)rhs->handle; local 161 if(hnd == NULL){ 168 img->offset = (uint32_t)hnd->offset; 169 img->memory_id = hnd->fd;
|
software_converter.cpp | 38 private_handle_t* hnd = (private_handle_t*)src->handle; local 40 if(hnd == NULL || yv12_handle == NULL){ 60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size); 61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size); 182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, 186 if (!hnd || !rhs) { 187 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs); 216 ret = copy_source_to_destination((uintptr_t) hnd->base, (uintptr_t) dst_hnd->base, info); 228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, [all...] |
/hardware/qcom/display/msm8909/libgralloc/ |
gpu.cpp | 163 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local 167 hnd->offset = data.offset; 168 hnd->base = (uint64_t)(data.base) + data.offset; 169 hnd->gpuaddr = 0; 171 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace); 172 *pHandle = hnd; 227 private_handle_t* hnd = new private_handle_t( local 242 hnd->base = vaddr; 243 hnd->offset = (unsigned int)(vaddr - m->framebuffer->base); 244 *pHandle = hnd; 405 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local [all...] |
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
hwc_buffer_allocator.cpp | 117 private_handle_t *hnd = nullptr; local 119 producer_usage, consumer_usage, &hnd); 121 if (hnd) { 122 alloc_buffer_info->fd = hnd->fd; 123 alloc_buffer_info->stride = UINT32(hnd->width); 124 alloc_buffer_info->aligned_width = UINT32(hnd->width); 125 alloc_buffer_info->aligned_height = UINT32(hnd->height); 126 alloc_buffer_info->size = hnd->size; 132 buffer_info->private_data = reinterpret_cast<void *>(hnd); 138 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data) local [all...] |