/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_stream.c | 2695 buf_planes->plane_info.num_planes = 2; in mm_stream_calc_offset_preview() 2708 buf_planes->plane_info.mp[0].offset = 0; in mm_stream_calc_offset_preview() 2709 buf_planes->plane_info.mp[0].len = (uint32_t)(stride * scanline); in mm_stream_calc_offset_preview() 2710 buf_planes->plane_info.mp[0].offset_x = 0; in mm_stream_calc_offset_preview() 2711 buf_planes->plane_info.mp[0].offset_y = 0; in mm_stream_calc_offset_preview() 2712 buf_planes->plane_info.mp[0].stride = stride; in mm_stream_calc_offset_preview() 2713 buf_planes->plane_info.mp[0].scanline = scanline; in mm_stream_calc_offset_preview() 2714 buf_planes->plane_info.mp[0].width = dim->width; in mm_stream_calc_offset_preview() 2715 buf_planes->plane_info.mp[0].height = dim->height; in mm_stream_calc_offset_preview() 2719 buf_planes->plane_info.mp[1].offset = 0; in mm_stream_calc_offset_preview() [all …]
|
/hardware/qcom/sm7250/display/gralloc/ |
D | gr_utils.cpp | 473 PlaneLayoutInfo *plane_info) { in GetYuvUbwcSPPlaneInfo() argument 505 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYuvUbwcSPPlaneInfo() 506 plane_info[0].offset = (uint32_t)yOffset; in GetYuvUbwcSPPlaneInfo() 507 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo() 508 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYuvUbwcSPPlaneInfo() 509 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYuvUbwcSPPlaneInfo() 510 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYuvUbwcSPPlaneInfo() 512 plane_info[1].component = (PlaneComponent)(PLANE_COMPONENT_Cb | PLANE_COMPONENT_Cr); in GetYuvUbwcSPPlaneInfo() 513 plane_info[1].offset = (uint32_t)cOffset; in GetYuvUbwcSPPlaneInfo() 514 plane_info[1].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo() [all …]
|
D | QtiMapperExtensions.cpp | 349 hidl_vec<PlaneLayout> plane_info; in getFormatLayout() local 358 hidl_cb(err, size, plane_info); in getFormatLayout() 373 hidl_cb(err, size, plane_info); in getFormatLayout() 378 plane_info.resize(plane_count); in getFormatLayout() 380 plane_info[i].component = plane_layout[i].component; in getFormatLayout() 381 plane_info[i].h_subsampling = plane_layout[i].h_subsampling; in getFormatLayout() 382 plane_info[i].v_subsampling = plane_layout[i].v_subsampling; in getFormatLayout() 383 plane_info[i].offset = plane_layout[i].offset; in getFormatLayout() 384 plane_info[i].pixel_increment = plane_layout[i].step; in getFormatLayout() 385 plane_info[i].stride = plane_layout[i].stride; in getFormatLayout() [all …]
|
D | gr_utils.h | 188 int32_t flags, int *plane_count, PlaneLayoutInfo plane_info[8]); 190 int32_t flags, int *plane_count, PlaneLayoutInfo *plane_info); 193 void CopyPlaneLayoutInfotoAndroidYcbcr(uint64_t base, int plane_count, PlaneLayoutInfo *plane_info, 204 uint32_t bpp, PlaneLayoutInfo *plane_info); 206 PlaneLayoutInfo *plane_info); 208 PlaneLayoutInfo plane_info[8]);
|
D | gr_camera_info.cpp | 289 PlaneLayoutInfo *plane_info) { in GetCameraFormatPlaneInfo() argument 307 plane_info[i].component = plane_type[i]; in GetCameraFormatPlaneInfo() 314 plane_info[i].h_subsampling = (uint32_t)h_subsampling; in GetCameraFormatPlaneInfo() 322 plane_info[i].v_subsampling = (uint32_t)v_subsampling; in GetCameraFormatPlaneInfo() 330 plane_info[i].offset = (uint32_t)offset; in GetCameraFormatPlaneInfo() 338 plane_info[i].step = (int32_t)pixel_increment; in GetCameraFormatPlaneInfo() 346 plane_info[i].stride = (int32_t)stride_pixel; in GetCameraFormatPlaneInfo() 354 plane_info[i].stride_bytes = (int32_t)stride_bytes; in GetCameraFormatPlaneInfo() 362 plane_info[i].scanlines = (int32_t)scanlines; in GetCameraFormatPlaneInfo() 370 plane_info[i].size = (uint32_t)plane_size; in GetCameraFormatPlaneInfo()
|
D | gr_buf_mgr.cpp | 689 std::vector<PlaneLayout> plane_info; in getFormatLayout() local 704 plane_info.resize(plane_count); in getFormatLayout() 707 grallocToStandardPlaneLayoutComponentType(plane_layout[i].component, &plane_info[i].components, in getFormatLayout() 709 plane_info[i].horizontalSubsampling = (1ull << plane_layout[i].h_subsampling); in getFormatLayout() 710 plane_info[i].verticalSubsampling = (1ull << plane_layout[i].v_subsampling); in getFormatLayout() 711 plane_info[i].offsetInBytes = static_cast<int64_t>(plane_layout[i].offset); in getFormatLayout() 712 plane_info[i].sampleIncrementInBits = static_cast<int64_t>(plane_layout[i].step * 8); in getFormatLayout() 713 plane_info[i].strideInBytes = static_cast<int64_t>(plane_layout[i].stride_bytes); in getFormatLayout() 714 plane_info[i].totalSizeInBytes = static_cast<int64_t>(plane_layout[i].size); in getFormatLayout() 715 plane_info[i].widthInSamples = handle->unaligned_width >> plane_layout[i].h_subsampling; in getFormatLayout() [all …]
|
D | gr_camera_info.h | 160 PlaneLayoutInfo *plane_info);
|
/hardware/qcom/sm8150/display/gralloc/ |
D | gr_utils.cpp | 397 PlaneLayoutInfo *plane_info) { in GetYuvUbwcSPPlaneInfo() argument 428 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYuvUbwcSPPlaneInfo() 429 plane_info[0].offset = (uint32_t)yOffset; in GetYuvUbwcSPPlaneInfo() 430 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo() 431 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYuvUbwcSPPlaneInfo() 432 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYuvUbwcSPPlaneInfo() 433 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYuvUbwcSPPlaneInfo() 435 plane_info[1].component = (PlaneComponent)(PLANE_COMPONENT_Cb | PLANE_COMPONENT_Cr); in GetYuvUbwcSPPlaneInfo() 436 plane_info[1].offset = (uint32_t)cOffset; in GetYuvUbwcSPPlaneInfo() 437 plane_info[1].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo() [all …]
|
D | QtiMapperExtensions.cpp | 348 hidl_vec<PlaneLayout> plane_info; in getFormatLayout() local 368 hidl_cb(err, size, plane_info); in getFormatLayout() 373 plane_info.resize(plane_count); in getFormatLayout() 375 plane_info[i].component = plane_layout[i].component; in getFormatLayout() 376 plane_info[i].h_subsampling = plane_layout[i].h_subsampling; in getFormatLayout() 377 plane_info[i].v_subsampling = plane_layout[i].v_subsampling; in getFormatLayout() 378 plane_info[i].offset = plane_layout[i].offset; in getFormatLayout() 379 plane_info[i].pixel_increment = plane_layout[i].step; in getFormatLayout() 380 plane_info[i].stride = plane_layout[i].stride; in getFormatLayout() 381 plane_info[i].stride_bytes = plane_layout[i].stride_bytes; in getFormatLayout() [all …]
|
D | gr_utils.h | 174 int32_t flags, int *plane_count, PlaneLayoutInfo plane_info[8]); 176 int32_t flags, int *plane_count, PlaneLayoutInfo *plane_info); 179 void CopyPlaneLayoutInfotoAndroidYcbcr(uint64_t base, int plane_count, PlaneLayoutInfo *plane_info, 189 uint32_t bpp, PlaneLayoutInfo *plane_info); 191 PlaneLayoutInfo *plane_info); 193 PlaneLayoutInfo plane_info[8]);
|
D | gr_buf_mgr.cpp | 704 std::vector<PlaneLayout> plane_info; in getFormatLayout() local 719 plane_info.resize(plane_count); in getFormatLayout() 722 grallocToStandardPlaneLayoutComponentType(plane_layout[i].component, &plane_info[i].components, in getFormatLayout() 724 plane_info[i].horizontalSubsampling = (1ull << plane_layout[i].h_subsampling); in getFormatLayout() 725 plane_info[i].verticalSubsampling = (1ull << plane_layout[i].v_subsampling); in getFormatLayout() 726 plane_info[i].offsetInBytes = static_cast<int64_t>(plane_layout[i].offset); in getFormatLayout() 727 plane_info[i].sampleIncrementInBits = static_cast<int64_t>(plane_layout[i].step * 8); in getFormatLayout() 728 plane_info[i].strideInBytes = static_cast<int64_t>(plane_layout[i].stride_bytes); in getFormatLayout() 729 plane_info[i].totalSizeInBytes = static_cast<int64_t>(plane_layout[i].size); in getFormatLayout() 730 plane_info[i].widthInSamples = handle->unaligned_width >> plane_layout[i].h_subsampling; in getFormatLayout() [all …]
|
/hardware/google/gchips/gralloc4/src/core/ |
D | mali_gralloc_bufferdescriptor.h | 58 plane_info_t plane_info[MAX_PLANES]; member 75 memset(plane_info, 0, sizeof(plane_info_t) * MAX_PLANES); in buffer_descriptor_t() 107 …plane_info[0].offset, plane_info[0].fd_idx, plane_info[0].size, plane_info[0].byte_stride, plane_i… in dump() 108 …plane_info[1].offset, plane_info[1].fd_idx, plane_info[1].size, plane_info[1].byte_stride, plane_i… in dump() 109 …plane_info[2].offset, plane_info[2].fd_idx, plane_info[2].size, plane_info[2].byte_stride, plane_i… in dump()
|
D | mali_gralloc_bufferallocation.cpp | 555 static void align_plane_stride(plane_info_t *plane_info, uint8_t plane, const format_info_t format,… in align_plane_stride() argument 557 …plane_info[plane].byte_stride = GRALLOC_ALIGN(plane_info[plane].byte_stride * format.tile_size, st… in align_plane_stride() 558 plane_info[plane].alloc_width = plane_info[plane].byte_stride * 8 / format.bpp[plane]; in align_plane_stride() 592 plane_info_t plane_info[MAX_PLANES]) in calc_allocation_size() 600 plane_info[0].offset = 0; in calc_allocation_size() 605 plane_info[plane].alloc_width = width; in calc_allocation_size() 606 plane_info[plane].alloc_height = height; in calc_allocation_size() 607 get_pixel_w_h(&plane_info[plane].alloc_width, in calc_allocation_size() 608 &plane_info[plane].alloc_height, in calc_allocation_size() 614 plane_info[plane].alloc_width, plane_info[plane].alloc_height); in calc_allocation_size() [all …]
|
/hardware/google/gchips/gralloc4/src/ |
D | mali_gralloc_buffer.h | 74 typedef struct plane_info { struct 230 plane_info_t plane_info[MAX_PLANES] DEFAULT_INITIALIZER({}); member 283 memcpy(plane_info, _plane_info, sizeof(plane_info_t) * MAX_PLANES); in private_handle_t() 343 return (plane_info[1].byte_stride != 0); in is_multi_plane() 415 …plane_info[0].size, plane_info[0].byte_stride, plane_info[0].alloc_width, plane_info[0].alloc_heig… in dump() 416 …plane_info[1].size, plane_info[1].byte_stride, plane_info[1].alloc_width, plane_info[1].alloc_heig… in dump() 417 …plane_info[2].size, plane_info[2].byte_stride, plane_info[2].alloc_width, plane_info[2].alloc_heig… in dump()
|
D | mali_gralloc_buffer4.h | 74 typedef struct plane_info { struct 230 plane_info_t plane_info[MAX_PLANES] DEFAULT_INITIALIZER({}); member 283 memcpy(plane_info, _plane_info, sizeof(plane_info_t) * MAX_PLANES); in private_handle_t() 343 return (plane_info[1].byte_stride != 0); in is_multi_plane() 415 …plane_info[0].size, plane_info[0].byte_stride, plane_info[0].alloc_width, plane_info[0].alloc_heig… in dump() 416 …plane_info[1].size, plane_info[1].byte_stride, plane_info[1].alloc_width, plane_info[1].alloc_heig… in dump() 417 …plane_info[2].size, plane_info[2].byte_stride, plane_info[2].alloc_width, plane_info[2].alloc_heig… in dump()
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/ |
D | formatsgenerator.py | 133 for plane_info in plane_infos: 136 if plane_info['widthDivisor'] != 1: 137 width_divisor += '/{}'.format(plane_info['widthDivisor']) 138 if plane_info['heightDivisor'] != 1: 139 height_divisor += '/{}'.format(plane_info['heightDivisor']) 141 … plane_format_table.append('^| {} ^| ename:{} ^| {} ^| {}'.format(plane_info['index'], 142 … plane_info['compatible'],
|
/hardware/google/gchips/gralloc4/src/hidl_common/ |
D | MapperMetadata.cpp | 102 return hnd->is_multi_plane() ? (hnd->plane_info[2].offset == 0 ? 2 : 3) : 1; in get_num_planes() 308 int64_t plane_size = handle->plane_info[plane_index].size; in get_plane_layouts() 310 int64_t offset = handle->plane_info[plane_index].offset; in get_plane_layouts() 325 … .strideInBytes = static_cast<int64_t>(handle->plane_info[plane_index].byte_stride), in get_plane_layouts() 326 … .widthInSamples = static_cast<int64_t>(handle->plane_info[plane_index].alloc_width), in get_plane_layouts() 327 … .heightInSamples = static_cast<int64_t>(handle->plane_info[plane_index].alloc_height), in get_plane_layouts() 344 plane_size = handle->plane_info[plane_index + 1].offset; in get_plane_layouts() 349 plane_size = layer_size - handle->plane_info[plane_index].offset; in get_plane_layouts() 352 if (handle->fd_count > 1 && handle->plane_info[plane_index].fd_idx == plane_index) in get_plane_layouts() 354 plane_size = handle->plane_info[plane_index].size; in get_plane_layouts() [all …]
|
D | Mapper.cpp | 415 if (gralloc_buffer->plane_info[i].byte_stride != grallocDescriptor.plane_info[i].byte_stride) in validateBufferSize() 418 … gralloc_buffer->plane_info[i].byte_stride, grallocDescriptor.plane_info[i].byte_stride, i); in validateBufferSize() 422 if (gralloc_buffer->plane_info[i].alloc_width != grallocDescriptor.plane_info[i].alloc_width) in validateBufferSize() 425 … gralloc_buffer->plane_info[i].alloc_width, grallocDescriptor.plane_info[i].alloc_width, i); in validateBufferSize() 429 if (gralloc_buffer->plane_info[i].alloc_height != grallocDescriptor.plane_info[i].alloc_height) in validateBufferSize() 432 … gralloc_buffer->plane_info[i].alloc_height, grallocDescriptor.plane_info[i].alloc_height, i); in validateBufferSize()
|
D | SharedMetadata.cpp | 59 crop.left > crop.right || crop.right > hnd->plane_info[0].alloc_width || in set_crop_rect() 60 crop.top > crop.bottom || crop.bottom > hnd->plane_info[0].alloc_height || in set_crop_rect()
|
/hardware/google/gchips/gralloc4/src/allocator/ |
D | mali_gralloc_ion.cpp | 385 bufDescriptor->layer_count, bufDescriptor->plane_info); in mali_gralloc_ion_allocate() 453 const plane_info_t *plane_info = bufDescriptor->plane_info; in mali_gralloc_ion_allocate() local 454 assert(plane_info); in mali_gralloc_ion_allocate() 465 for (int i = 0; i < MAX_PLANES && (i == 0 || plane_info[i].byte_stride != 0); i++) in mali_gralloc_ion_allocate() 467 init_afbc(cpu_ptr + plane_info[i].offset, in mali_gralloc_ion_allocate() 471 plane_info[i].alloc_width, in mali_gralloc_ion_allocate() 472 plane_info[i].alloc_height); in mali_gralloc_ion_allocate()
|
/hardware/google/gchips/libvendorgraphicbuffer/gralloc5/ |
D | vendor_graphicbuffer_meta.cpp | 223 GRALLOC_META_GETTER(uint32_t, stride_in_bytes, plane_info[0].byte_stride); 224 GRALLOC_META_GETTER(uint32_t, vstride, plane_info[0].alloc_height); 354 offsets[0] = gralloc_hnd->plane_info[0].offset; in init() 355 offsets[1] = gralloc_hnd->plane_info[1].offset; in init() 356 offsets[2] = gralloc_hnd->plane_info[2].offset; in init() 377 vstride = gralloc_hnd->plane_info[0].alloc_height; in init()
|
/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/ |
D | vendor_graphicbuffer_meta.cpp | 186 GRALLOC_META_GETTER(uint32_t, stride_in_bytes, plane_info[0].byte_stride); 187 GRALLOC_META_GETTER(uint32_t, vstride, plane_info[0].alloc_height); 345 offsets[0] = gralloc_hnd->plane_info[0].offset; in init() 346 offsets[1] = gralloc_hnd->plane_info[1].offset; in init() 347 offsets[2] = gralloc_hnd->plane_info[2].offset; in init() 367 vstride = gralloc_hnd->plane_info[0].alloc_height; in init()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/ |
D | mm_qcamera_rdi.c | 186 rdi_len = buf_planes->plane_info.mp[0].len; in mm_app_add_rdi_stream() 188 buf_planes->plane_info.mp[0].stride, buf_planes->plane_info.mp[0].scanline, in mm_app_add_rdi_stream() 189 buf_planes->plane_info.mp[0].len, buf_planes->plane_info.frame_len); in mm_app_add_rdi_stream()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCamera2HWICallbacks.cpp | 487 main_stream->getFrameOffset(config.input_buf_planes.plane_info); in capture_channel_cb_routine() 1033 yStride = streamInfo->buf_planes.plane_info.mp[0].stride; in sendPreviewCallback() 1034 yScanline = streamInfo->buf_planes.plane_info.mp[0].scanline; in sendPreviewCallback() 1035 uStride = streamInfo->buf_planes.plane_info.mp[1].stride; in sendPreviewCallback() 1036 uScanline = streamInfo->buf_planes.plane_info.mp[1].scanline; in sendPreviewCallback() 1037 vStride = streamInfo->buf_planes.plane_info.mp[2].stride; in sendPreviewCallback() 1038 vScanline = streamInfo->buf_planes.plane_info.mp[2].scanline; in sendPreviewCallback() 1044 yStride = streamInfo->buf_planes.plane_info.mp[0].stride; in sendPreviewCallback() 1045 yScanline = streamInfo->buf_planes.plane_info.mp[0].scanline; in sendPreviewCallback() 1046 uvStride = streamInfo->buf_planes.plane_info.mp[1].stride; in sendPreviewCallback() [all …]
|
/hardware/google/gchips/gralloc4/src/stable-c/ |
D | GrallocMapper.cpp | 155 .right = static_cast<int32_t>(hnd->plane_info[plane_index].alloc_width), in getStandardMetadataHelper() 156 .bottom = static_cast<int32_t>(hnd->plane_info[plane_index].alloc_height)}; in getStandardMetadataHelper()
|