/hardware/qcom/msm8994/kernel-headers/media/ |
D | msm_media_info.h | 319 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 321 (void)height; in VENUS_EXTRADATA_SIZE() 381 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 384 if (!height) in VENUS_Y_SCANLINES() 394 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 403 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 406 if (!height) in VENUS_UV_SCANLINES() 416 sclines = MSM_MEDIA_ALIGN(((height + 1) >> 1), alignment); in VENUS_UV_SCANLINES() 450 static inline unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 454 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/qcom/msm8994/original-kernel-headers/media/ |
D | msm_media_info.h | 319 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 321 (void)height; in VENUS_EXTRADATA_SIZE() 381 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 384 if (!height) in VENUS_Y_SCANLINES() 394 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 403 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 406 if (!height) in VENUS_UV_SCANLINES() 416 sclines = MSM_MEDIA_ALIGN(((height + 1) >> 1), alignment); in VENUS_UV_SCANLINES() 450 static inline unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 454 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/qcom/msm8996/original-kernel-headers/media/ |
D | msm_media_info.h | 404 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 406 (void)height; in VENUS_EXTRADATA_SIZE() 468 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 471 if (!height) in VENUS_Y_SCANLINES() 487 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 492 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 495 if (!height) in VENUS_UV_SCANLINES() 512 sclines = MSM_MEDIA_ALIGN(height / 2, alignment); in VENUS_UV_SCANLINES() 543 static inline unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 547 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/qcom/msm8996/kernel-headers/media/ |
D | msm_media_info.h | 404 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 406 (void)height; in VENUS_EXTRADATA_SIZE() 468 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 471 if (!height) in VENUS_Y_SCANLINES() 487 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 492 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 495 if (!height) in VENUS_UV_SCANLINES() 512 sclines = MSM_MEDIA_ALIGN(height / 2, alignment); in VENUS_UV_SCANLINES() 543 static inline unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 547 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/qcom/msm8x84/kernel-headers/media/ |
D | msm_media_info.h | 140 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 142 (void)height; in VENUS_EXTRADATA_SIZE() 192 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 195 if (!height) in VENUS_Y_SCANLINES() 203 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 212 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 215 if (!height) in VENUS_UV_SCANLINES() 223 sclines = MSM_MEDIA_ALIGN(((height + 1) >> 1), alignment); in VENUS_UV_SCANLINES() 233 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 235 const unsigned int extra_size = VENUS_EXTRADATA_SIZE(width, height); in VENUS_BUFFER_SIZE() [all …]
|
/hardware/qcom/msm8x84/original-kernel-headers/media/ |
D | msm_media_info.h | 140 static inline unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 142 (void)height; in VENUS_EXTRADATA_SIZE() 192 static inline unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 195 if (!height) in VENUS_Y_SCANLINES() 203 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 212 static inline unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 215 if (!height) in VENUS_UV_SCANLINES() 223 sclines = MSM_MEDIA_ALIGN(((height + 1) >> 1), alignment); in VENUS_UV_SCANLINES() 233 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 235 const unsigned int extra_size = VENUS_EXTRADATA_SIZE(width, height); in VENUS_BUFFER_SIZE() [all …]
|
/hardware/qcom/msm8998/original-kernel-headers/media/ |
D | msm_media_info.h | 593 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 595 (void)height; in VENUS_EXTRADATA_SIZE() 667 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 671 if (!height) in VENUS_Y_SCANLINES() 688 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 693 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 697 if (!height) in VENUS_UV_SCANLINES() 715 sclines = MSM_MEDIA_ALIGN(height / 2, alignment); in VENUS_UV_SCANLINES() 747 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 751 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/qcom/msm8998/kernel-headers/media/ |
D | msm_media_info.h | 593 static __inline__ unsigned int VENUS_EXTRADATA_SIZE(int width, int height) in VENUS_EXTRADATA_SIZE() argument 595 (void)height; in VENUS_EXTRADATA_SIZE() 667 static __inline__ unsigned int VENUS_Y_SCANLINES(int color_fmt, int height) in VENUS_Y_SCANLINES() argument 671 if (!height) in VENUS_Y_SCANLINES() 688 sclines = MSM_MEDIA_ALIGN(height, alignment); in VENUS_Y_SCANLINES() 693 static __inline__ unsigned int VENUS_UV_SCANLINES(int color_fmt, int height) in VENUS_UV_SCANLINES() argument 697 if (!height) in VENUS_UV_SCANLINES() 715 sclines = MSM_MEDIA_ALIGN(height / 2, alignment); in VENUS_UV_SCANLINES() 747 static __inline__ unsigned int VENUS_Y_META_SCANLINES(int color_fmt, int height) in VENUS_Y_META_SCANLINES() argument 751 if (!height) in VENUS_Y_META_SCANLINES() [all …]
|
/hardware/intel/common/libva/test/putsurface/ |
D | putsurface_x11.c | 35 static int create_window(void *win_display, int x, int y, int width, int height); 36 static int check_window_event(void *x11_display, void *drawable, int *width, int *height, int *quit… 52 static Pixmap create_pixmap(void *win_display, int width, int height) in create_pixmap() argument 64 …e a pixmap from ROOT window %dx%d, pixmap size %dx%d\n\n", attr.width, attr.height, width, height); in create_pixmap() 65 pixmap = XCreatePixmap(x11_display, root, width, height, in create_pixmap() 71 static int create_window(void *win_display, int x, int y, int width, int height) in create_window() argument 80 drawable_thread0 = (void *)XCreateSimpleWindow(x11_display, root, x, y, width, height, in create_window() 87 sizehints.height = height; in create_window() 101 drawable_thread0 = (void *)create_pixmap(x11_display, width, height); in create_window() 109 drawable_thread1 = (void *)XCreateSimpleWindow(x11_display, root, width, 0, width, height, in create_window() [all …]
|
/hardware/intel/img/psb_video/src/ |
D | psb_surface.c | 40 int width, int height, int fourcc, unsigned int flags, in psb_surface_create() argument 59 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create() 92 psb_surface->chroma_offset = psb_surface->stride * height; in psb_surface_create() 93 psb_surface->size = (psb_surface->stride * height * 3) / 2; in psb_surface_create() 101 psb_surface->size = psb_surface->stride * height; in psb_surface_create() 104 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create() 137 psb_surface->chroma_offset = psb_surface->stride * height; in psb_surface_create() 138 psb_surface->size = psb_surface->stride * height * 2; in psb_surface_create() 144 psb_surface->chroma_offset = psb_surface->stride * height; in psb_surface_create() 145 psb_surface->size = psb_surface->stride * height * 4; in psb_surface_create() [all …]
|
D | psb_surface_attrib.c | 55 int width, int height, int fourcc, in psb_surface_create_from_ub() argument 66 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { in psb_surface_create_from_ub() 91 psb_surface->chroma_offset = psb_surface->stride * height; in psb_surface_create_from_ub() 94 psb_surface->size = ((psb_surface->stride * height) * 3) / 2; in psb_surface_create_from_ub() 98 psb_surface->size = (psb_surface->stride * height) * 2; in psb_surface_create_from_ub() 102 psb_surface->size = ((psb_surface->stride * height) * 3) / 2; in psb_surface_create_from_ub() 106 psb_surface->size = (psb_surface->stride * height) * 4; in psb_surface_create_from_ub() 143 int width, height, buf_stride, buf_offset, size; 170 height = v4l2_fmt->fmt.pix.height; 177 width, height, buf_stride, buf_offset, size); [all …]
|
/hardware/qcom/display/sdm845/libgralloc1/ |
D | gr_utils.cpp | 182 int height = info.height; in GetSize() local 187 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize() 219 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize() 226 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize() 229 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize() 256 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize() 259 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize() 263 if (height != 1) { in GetSize() 286 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument 296 y_meta_height = VENUS_Y_META_SCANLINES(color_format, INT(height)); in GetYuvUbwcSPPlaneInfo() [all …]
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/vc1/parser/ |
D | vc1parse_bitplane.c | 152 int32_t width, int32_t height) in vc1_Norm2ModeDecode() argument 176 if ((width*height) & 1) /* first bit if size is odd */ in vc1_Norm2ModeDecode() 179 put_bit(tmp_databits, 0, 0, width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 197 for (i = (width*height) & 1; i < (width*height/2)*2; i += 2) in vc1_Norm2ModeDecode() 209 put_bit(0, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 211 put_bit(0, col[1],row[1], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 219 put_bit(1, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 221 put_bit(1, col[1],row[1], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 229 put_bit(1, col[0],row[0], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() 231 put_bit(0, col[1],row[1], width, height, pBitplane->invert, in vc1_Norm2ModeDecode() [all …]
|
/hardware/intel/common/libmix/videoencoder/ |
D | VideoEncoderUtils.cpp | 86 int left, int top, int width, int height, void** vaddr) { in gfx_lock() argument 101 .height = height in gfx_lock() 181 vinfo.height = h->iHeight; in GetGfxBufferInfo() 207 LOG_V("Actual Width=%d, Height=%d, Stride=%d\n\n", vinfo.width, vinfo.height, vinfo.lumaStride); in GetGfxBufferInfo() 219 if (gfx_lock((buffer_handle_t)handle, usage, 0, 0, vinfo.width, vinfo.height, &vaddr[0]) != 0) in DumpGfx() 222 fwrite(vaddr[0], 1, vinfo.lumaStride * vinfo.height * 4, fp); in DumpGfx() 224 LOG_I("dump %d bytes data to %s\n", vinfo.lumaStride * vinfo.height * 4, filename); in DumpGfx() 284 int height = mVASurfaceHeight = mVinfo.height; in doMapping() local 301 height = tmp.height; in doMapping() 311 … if (gfx_alloc(width, height, HAL_PIXEL_FORMAT_NV12, usage, &mGfxHandle, &stride) != 0) in doMapping() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | alloc_controller.cpp | 177 aligned_h = hnd->height; in getAlignedWidthAndHeight() 217 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument 225 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight() 227 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight() 230 aligned_h = height; in getAlignedWidthAndHeight() 263 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height); in getAlignedWidthAndHeight() 267 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height); in getAlignedWidthAndHeight() 274 aligned_h = ALIGN(height, 64); in getAlignedWidthAndHeight() 311 width, height, format, 0,raster_mode, padding_threshold, in getAlignedWidthAndHeight() 324 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format, in getGpuAlignedWidthHeight() argument [all …]
|
/hardware/qcom/display/msm8084/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8960/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 148 int height = info.height; in copy_source_to_destination() local 153 for (int i = 0; i < height; i++) { in copy_source_to_destination() 163 height = height/2; in copy_source_to_destination() 164 for (int i = 0; i < height; i++) { in copy_source_to_destination() 195 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 201 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 202 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8909/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8996/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/sdm845/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8998/libcopybit/ |
D | software_converter.cpp | 53 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 99 while(r1 < height/2) { in convertYV12toYCrCb420SP() 128 int height; member 149 int height = info.height; in copy_source_to_destination() local 154 for (int i = 0; i < height; i++) { in copy_source_to_destination() 164 height = height/2; in copy_source_to_destination() 165 for (int i = 0; i < height; i++) { in copy_source_to_destination() 196 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 202 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 203 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8996/libgralloc1/ |
D | gr_allocator.cpp | 202 int height = descriptor.GetHeight(); in GetSize() local 207 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize() 237 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize() 244 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize() 247 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize() 273 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize() 276 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize() 280 if (height != 1) { in GetSize() 297 void Allocator::GetBufferSizeAndDimensions(int width, int height, int format, unsigned int *size, in GetBufferSizeAndDimensions() argument 299 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions() [all …]
|
/hardware/qcom/display/msm8998/libgralloc1/ |
D | gr_allocator.cpp | 200 int height = descriptor.GetHeight(); in GetSize() local 205 return GetUBwcSize(width, height, format, alignedw, alignedh); in GetSize() 235 size += (unsigned int)ALIGN(2 * ALIGN(width / 2, 32) * ALIGN(height / 2, 32), SIZE_4K); in GetSize() 242 size += ALIGN(alignedw * (unsigned int)ALIGN(height / 2, 32), SIZE_8K); in GetSize() 245 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize() 271 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV12, width, height); in GetSize() 274 size = VENUS_BUFFER_SIZE(COLOR_FMT_NV21, width, height); in GetSize() 278 if (height != 1) { in GetSize() 295 void Allocator::GetBufferSizeAndDimensions(int width, int height, int format, unsigned int *size, in GetBufferSizeAndDimensions() argument 297 BufferDescriptor descriptor = BufferDescriptor(width, height, format); in GetBufferSizeAndDimensions() [all …]
|