/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/ |
H A D | loadbmp.c | 106 HI_U32 stride; in LoadBMP() local 155 stride = w * Bpp; in LoadBMP() 156 if (stride % 4) { /* 4 align */ in LoadBMP() 157 stride = (stride & 0xfffc) + 4; /* 4 align */ in LoadBMP() 161 pOrigBMPBuf = (HI_U8 *)malloc(h * stride); in LoadBMP() 172 if (fread(pOrigBMPBuf, 1, h * stride, pFile) != (h * stride)) { in LoadBMP() 183 if (pVideoLogo->stride == 0) { in LoadBMP() 184 pVideoLogo->stride in LoadBMP() 229 HI_U32 stride; LoadBMPEx() local 385 HI_U32 stride; LoadBMPCanvas() local [all...] |
/device/board/hisilicon/hispark_taurus/camera/pipeline_core/src/ |
H A D | ipp_algo_example.c | 51 printf("in buffer addr = %p, width = %u, height = %u, stride = %u, size = %u, id = %d\n", inBuffer[i]->addr, in Process() 52 inBuffer[i]->width, inBuffer[i]->height, inBuffer[i]->stride, inBuffer[i]->size, inBuffer[i]->id); in Process() 82 char *startBuffer1 = (char*)(inBuffer[0]->addr) + inBuffer[0]->stride * inBuffer[0]->height; in Process() 83 char *startBuffer2 = (char*)(inBuffer[1]->addr) + inBuffer[1]->stride * inBuffer[1]->height; in Process() 84 if (memcpy_s(startBuffer1, inBuffer[0]->size - inBuffer[0]->stride * inBuffer[0]->height, in Process() 85 startBuffer2, inBuffer[0]->stride * inBuffer[0]->height) != 0) { in Process()
|
/device/board/hihope/dayu210/camera/vdi_impl/v4l2/pipeline_core/src/ipp_algo_example/ |
H A D | ipp_algo_example.c | 50 printf("in buffer addr = %p, width = %u, height = %u, stride = %u, size = %u, id = %d\n", inBuffer[i]->addr, in Process() 51 inBuffer[i]->width, inBuffer[i]->height, inBuffer[i]->stride, inBuffer[i]->size, inBuffer[i]->id); in Process() 81 char *startBuffer1 = (char*)(inBuffer[0]->addr) + inBuffer[0]->stride * inBuffer[0]->height; in Process() 82 char *startBuffer2 = (char*)(inBuffer[1]->addr) + inBuffer[1]->stride * inBuffer[1]->height; in Process() 83 if (memcpy_s(startBuffer1, inBuffer[0]->size - inBuffer[0]->stride * inBuffer[0]->height, in Process() 84 startBuffer2, inBuffer[0]->stride * inBuffer[0]->height) != 0) { in Process()
|
/device/board/hihope/rk3568/camera/vdi_impl/v4l2/pipeline_core/src/ipp_algo_example/ |
H A D | ipp_algo_example.c | 50 printf("in buffer addr = %p, width = %u, height = %u, stride = %u, size = %u, id = %d\n", inBuffer[i]->addr, in Process() 51 inBuffer[i]->width, inBuffer[i]->height, inBuffer[i]->stride, inBuffer[i]->size, inBuffer[i]->id); in Process() 81 char *startBuffer1 = (char*)(inBuffer[0]->addr) + inBuffer[0]->stride * inBuffer[0]->height; in Process() 82 char *startBuffer2 = (char*)(inBuffer[1]->addr) + inBuffer[1]->stride * inBuffer[1]->height; in Process() 83 if (memcpy_s(startBuffer1, inBuffer[0]->size - inBuffer[0]->stride * inBuffer[0]->height, in Process() 84 startBuffer2, inBuffer[0]->stride * inBuffer[0]->height) != 0) { in Process()
|
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/rga3/ |
H A D | rga_dma_buf.c | 55 uint32_t stride = 0; in rga_buf_size_cal() local 68 stride = (w * 4 + 3) & (~3); in rga_buf_size_cal() 69 size_yrgb = stride * h; in rga_buf_size_cal() 77 stride = (w * 3 + 3) & (~3); in rga_buf_size_cal() 78 size_yrgb = stride * h; in rga_buf_size_cal() 94 stride = (w * 2 + 3) & (~3); in rga_buf_size_cal() 95 size_yrgb = stride * h; in rga_buf_size_cal() 105 stride = (w + 3) & (~3); in rga_buf_size_cal() 106 size_yrgb = stride * h; in rga_buf_size_cal() 107 size_uv = stride * in rga_buf_size_cal() [all...] |
/device/soc/rockchip/common/vendor/drivers/video/rockchip/rga2/ |
H A D | rga2_mmu_info.c | 664 uint32_t stride = 0;
in rga2_buf_size_cal() local 677 stride = (w * 0x4 + 0x3) & (~0x3);
in rga2_buf_size_cal() 678 size_yrgb = stride * h;
in rga2_buf_size_cal() 686 stride = (w * 0x3 + 0x3) & (~0x3);
in rga2_buf_size_cal() 687 size_yrgb = stride * h;
in rga2_buf_size_cal() 703 stride = (w * 0x2 + 0x3) & (~0x3);
in rga2_buf_size_cal() 704 size_yrgb = stride * h;
in rga2_buf_size_cal() 714 stride = (w + 0x3) & (~0x3);
in rga2_buf_size_cal() 715 size_yrgb = stride * h;
in rga2_buf_size_cal() 716 size_uv = stride * in rga2_buf_size_cal() 1245 uint32_t stride; rga2_mmu_info_color_palette_mode() local [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_OHOS.cpp | 64 OMX_U32 stride = 0; in Get_Video_HorAlign() local 68 stride = (((width * 10 / 8 + 255) & ~(255)) | (256)); in Get_Video_HorAlign() 71 stride = ((width + 255) & (~255)) | (256); in Get_Video_HorAlign() 75 stride = ((width + 255) & (~255)) | (256); in Get_Video_HorAlign() 78 stride = (width + 127) & (~127); in Get_Video_HorAlign() 82 stride = ((width * 10 / 8 + 15) & (~15)); // 10:byte alignment, 8:byte alignment, 15:byte alignment in Get_Video_HorAlign() 84 stride = ((width + 15) & (~15)); // 15:byte alignment in Get_Video_HorAlign() 96 stride = (((width * 10 / 8 + 255) & ~(255)) | (256)); in Get_Video_HorAlign() 99 stride = ((width + 255) & (~255)) | (256); in Get_Video_HorAlign() 104 return stride; in Get_Video_HorAlign() 109 OMX_U32 stride = 0;; Get_Video_HorAlign() local [all...] |
H A D | Rockchip_OSAL_RGA_Process.c | 115 Rga_Request.src.vir_w = plane->stride; in rga_copy() 210 Rga_Request.src.vir_w = plane->stride; in rga_crop_scale() 231 Rga_Request.dst.uv_addr = vpumem->phy_addr + plane->stride * orgin_h; in rga_crop_scale() 422 rga_set_rect(&src.rect, x, y, w, h, plane->stride, h, HAL_PIXEL_FORMAT_YCrCb_NV12); in rga_nv12_crop_scale() 424 rga_set_rect(&src.rect, 0, 0, orgin_w, orgin_h, plane->stride, orgin_h, HAL_PIXEL_FORMAT_YCrCb_NV12); in rga_nv12_crop_scale() 450 rga_set_info(&src, Width, Height, plane->stride, Height, plane->fd, in rga_rgb2nv12() 463 omx_trace(" plane->stride %lu", plane->stride); in rga_rgb2nv12() 464 rga_set_rect(&src.rect, 0, 0, Width, Height, plane->stride, Height, HAL_PIXEL_FORMAT_RGBA_8888); in rga_rgb2nv12() 489 rga_set_info(&dst, Width, Height, planes->stride, in rga_nv122rgb() [all...] |
/device/qemu/riscv32_virt/liteos_m/board/hardware/display/ |
H A D | display_gralloc.c | 105 int32_t stride; in InitBufferHandle() local 113 stride = ALIGN_UP(AdjustStrideFromFormat(info->format, info->width), WIDTH_ALIGN) * in InitBufferHandle() 115 size = h * stride; in InitBufferHandle() 117 buffer->hdl.stride = stride; in InitBufferHandle()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/drv/hi3516cv500/ |
H A D | hifb_blit.c | 162 dst_sur.stride = dst_img->stCanvas.u32Pitch;
in hifb_drv_fill() 201 hi_u32 stride = 0;
in hifb_drv_get_dcmp_stride() local 203 return stride;
in hifb_drv_get_dcmp_stride() 205 stride = canvas->u32Pitch;
in hifb_drv_get_dcmp_stride() 221 stride = ((canvas->u32Width * bytes_per_pix * 8 * 1000 / comp_ratio_int + 127) / 128 + exp_num_temp) * 16;
in hifb_drv_get_dcmp_stride() 234 stride = ((extend_width * bytes_per_pix * 8 * 1000 / comp_ratio_int + 127) / 128 + exp_num_temp) * 16;
in hifb_drv_get_dcmp_stride() 237 stride = (stride + 0xf) & 0xfffffff0; /* 0xf 0xfffffff0 for 16 bytes align */
in hifb_drv_get_dcmp_stride() 239 return stride;
in hifb_drv_get_dcmp_stride() 248 surface->stride in drv_blit_init() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/drv/include/ |
H A D | hifb_vou_drv.h | 151 hi_u32 stride;
member 161 HIFB_LAYER_PARAMODIFY_STRIDE = 0x2, /* stride, line spacing */
178 hi_u32 stride;
member 183 hi_u32 stride;
member 209 hi_u32 stride;
member 230 hi_u32 stride;
member 297 /* set layer stride */
|
/device/soc/rockchip/rk3568/hardware/codec/src/ |
H A D | hdi_mpp_config.c | 280 int32_t stride = 0; in GetStrideByWidth() local 285 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT); in GetStrideByWidth() 289 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_SIXTEEN); in GetStrideByWidth() 295 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT); in GetStrideByWidth() 308 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_TWO; in GetStrideByWidth() 313 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_THREE; in GetStrideByWidth() 322 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_FOUR; in GetStrideByWidth() 328 return stride; in GetStrideByWidth() 572 HDF_LOGE("%{public}s: size or stride incorrect!", __func__); in SetEncCfg() 677 pBaseComponent->setup.stride in SetParamStride() [all...] |
/device/soc/rockchip/rk3588/hardware/codec/src/ |
H A D | hdi_mpp_config.c | 280 int32_t stride = 0; in GetStrideByWidth() local 285 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT); in GetStrideByWidth() 289 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_SIXTEEN); in GetStrideByWidth() 295 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT); in GetStrideByWidth() 308 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_TWO; in GetStrideByWidth() 313 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_THREE; in GetStrideByWidth() 322 stride = MPP_ALIGN(width, MPP_ALIGN_STRIDE_WITH_EIGHT) * MPP_ALIGN_MULTIPLE_WITH_FOUR; in GetStrideByWidth() 328 return stride; in GetStrideByWidth() 572 HDF_LOGE("%{public}s: size or stride incorrect!", __func__); in SetEncCfg() 677 pBaseComponent->setup.stride in SetParamStride() [all...] |
/device/soc/hisilicon/common/hal/display/hi3751v350/linux_standard/adapter/ |
H A D | display_adapter_impl.cpp | 59 fbFrameInfo.stride = frame->stride;
in DisplayFbFresh()
|
/device/soc/rockchip/common/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.c | 100 bo->stride = dumb->pitch; in InitGbmBo() 150 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, in hdi_gbm_bo_create() 151 bo->width, bo->height, bo->stride, bo->size); in hdi_gbm_bo_create() 172 return bo->stride; in hdi_gbm_bo_get_stride()
|
H A D | hi_gbm_internal.h | 36 uint32_t stride; member
|
/device/soc/rockchip/rk3399/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.c | 90 bo->stride = dumb->pitch; in InitGbmBo() 140 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, in hdi_gbm_bo_create() 141 bo->width, bo->height, bo->stride, bo->size); in hdi_gbm_bo_create() 162 return bo->stride; in hdi_gbm_bo_get_stride()
|
H A D | hi_gbm_internal.h | 36 uint32_t stride; member
|
/device/soc/rockchip/rk3566/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 94 bo->stride = dumb->pitch; in InitGbmBo() 145 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, in hdi_gbm_bo_create() 146 bo->width, bo->height, bo->stride, bo->size); in hdi_gbm_bo_create() 166 return bo->stride; in hdi_gbm_bo_get_stride()
|
/device/soc/rockchip/rk3568/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 94 bo->stride = dumb->pitch; in InitGbmBo() 145 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, in hdi_gbm_bo_create() 146 bo->width, bo->height, bo->stride, bo->size); in hdi_gbm_bo_create() 166 return bo->stride; in hdi_gbm_bo_get_stride()
|
/device/soc/rockchip/rk3588/hardware/display/src/display_gralloc/ |
H A D | hi_gbm.cpp | 94 bo->stride = dumb->pitch; in InitGbmBo() 145 "fmt 0x%{public}x create dumb width: %{public}d height: %{public}d stride %{public}d size %{public}u", format, in hdi_gbm_bo_create() 146 bo->width, bo->height, bo->stride, bo->size); in hdi_gbm_bo_create() 166 return bo->stride; in hdi_gbm_bo_get_stride()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_jd.c | 1241 void __user *user_addr, u32 nr_atoms, u32 stride, in kbase_jd_submit() 1251 bool jd_atom_is_v2 = (stride == sizeof(struct base_jd_atom_v2) || in kbase_jd_submit() 1252 stride == offsetof(struct base_jd_atom_v2, renderpass_id)); in kbase_jd_submit() 1267 if (stride != offsetof(struct base_jd_atom_v2, renderpass_id) && in kbase_jd_submit() 1268 stride != sizeof(struct base_jd_atom_v2) && in kbase_jd_submit() 1269 stride != offsetof(struct base_jd_atom, renderpass_id) && in kbase_jd_submit() 1270 stride != sizeof(struct base_jd_atom)) { in kbase_jd_submit() 1273 stride); in kbase_jd_submit() 1297 if (copy_from_user(&user_atom, user_addr, stride) != 0) { in kbase_jd_submit() 1306 if (stride in kbase_jd_submit() 1240 kbase_jd_submit(struct kbase_context *kctx, void __user *user_addr, u32 nr_atoms, u32 stride, bool uk6_atom) kbase_jd_submit() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_jd.c | 1157 int kbase_jd_submit(struct kbase_context *kctx, void __user *user_addr, u32 nr_atoms, u32 stride, bool uk6_atom) in kbase_jd_submit() argument 1167 (stride == sizeof(struct base_jd_atom_v2) || stride == offsetof(struct base_jd_atom_v2, renderpass_id)); in kbase_jd_submit() 1182 if (stride != offsetof(struct base_jd_atom_v2, renderpass_id) && stride != sizeof(struct base_jd_atom_v2) && in kbase_jd_submit() 1183 stride != offsetof(struct base_jd_atom, renderpass_id) && stride != sizeof(struct base_jd_atom)) { in kbase_jd_submit() 1184 dev_err(kbdev->dev, "Stride %u passed to job_submit isn't supported by the kernel\n", stride); in kbase_jd_submit() 1206 if (copy_from_user(&user_atom, user_addr, stride) != 0) { in kbase_jd_submit() 1213 if (stride in kbase_jd_submit() [all...] |
/device/qemu/riscv32_virt/liteos_m/board/ui/ |
H A D | fbdev.h | 36 uint32_t stride; member
|
/device/soc/hisilicon/hi3751v350/sdk_linux/include/ |
H A D | hifb_userspace.h | 35 unsigned int stride; member
|