/hardware/google/gfxstream/guest/mesa/src/util/format/ |
D | u_format_bptc.c | 37 unsigned width, unsigned height) in util_format_bptc_rgba_unorm_unpack_rgba_8unorm() argument 39 decompress_rgba_unorm(width, height, in util_format_bptc_rgba_unorm_unpack_rgba_8unorm() 47 unsigned width, unsigned height) in util_format_bptc_rgba_unorm_pack_rgba_8unorm() argument 49 compress_rgba_unorm(width, height, in util_format_bptc_rgba_unorm_pack_rgba_8unorm() 57 unsigned width, unsigned height) in util_format_bptc_rgba_unorm_unpack_rgba_float() argument 60 temp_block = malloc(width * height * 4 * sizeof(uint8_t)); in util_format_bptc_rgba_unorm_unpack_rgba_float() 61 decompress_rgba_unorm(width, height, in util_format_bptc_rgba_unorm_unpack_rgba_float() 67 for (int y = 0; y < height; y++) { in util_format_bptc_rgba_unorm_unpack_rgba_float() 78 unsigned width, unsigned height) in util_format_bptc_rgba_unorm_pack_rgba_float() argument 81 temp_block = malloc(width * height * 4 * sizeof(uint8_t)); in util_format_bptc_rgba_unorm_pack_rgba_float() [all …]
|
D | u_format_zs.h | 42 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 46 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 50 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 54 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 58 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 62 …st_stride, const uint32_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 66 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 70 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 74 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 78 …st_stride, const uint32_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); [all …]
|
D | u_format_bptc.h | 44 unsigned width, unsigned height); 48 unsigned width, unsigned height); 52 unsigned width, unsigned height); 56 unsigned width, unsigned height); 59 unsigned width, unsigned height); 64 unsigned width, unsigned height); 68 unsigned width, unsigned height); 72 unsigned width, unsigned height); 76 unsigned width, unsigned height); 79 unsigned width, unsigned height); [all …]
|
D | u_format_s3tc.h | 57 int width, int height, 72 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 75 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 81 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 84 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 90 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 93 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 99 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 102 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 108 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); [all …]
|
D | u_format_rgtc.h | 37 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 40 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 43 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 46 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 49 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 60 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 63 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 66 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 69 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 72 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); [all …]
|
D | u_format_zs.c | 116 unsigned width, unsigned height) in util_format_s8_uint_unpack_s_8uint() argument 119 for(y = 0; y < height; ++y) { in util_format_s8_uint_unpack_s_8uint() 129 unsigned width, unsigned height) in util_format_s8_uint_pack_s_8uint() argument 132 for(y = 0; y < height; ++y) { in util_format_s8_uint_pack_s_8uint() 142 unsigned width, unsigned height) in util_format_z16_unorm_unpack_z_float() argument 145 for(y = 0; y < height; ++y) { in util_format_z16_unorm_unpack_z_float() 159 unsigned width, unsigned height) in util_format_z16_unorm_pack_z_float() argument 162 for(y = 0; y < height; ++y) { in util_format_z16_unorm_pack_z_float() 176 unsigned width, unsigned height) in util_format_z16_unorm_unpack_z_32unorm() argument 179 for(y = 0; y < height; ++y) { in util_format_z16_unorm_unpack_z_32unorm() [all …]
|
D | u_format_s3tc.c | 125 unsigned width, unsigned height, in util_format_dxtn_rgb_unpack_rgba_8unorm() argument 131 for(y = 0; y < height; y += bh) { in util_format_dxtn_rgb_unpack_rgba_8unorm() 133 const unsigned h = MIN2(height - y, bh); in util_format_dxtn_rgb_unpack_rgba_8unorm() 156 unsigned width, unsigned height) in util_format_dxt1_rgb_unpack_rgba_8unorm() argument 160 width, height, in util_format_dxt1_rgb_unpack_rgba_8unorm() 168 unsigned width, unsigned height) in util_format_dxt1_rgba_unpack_rgba_8unorm() argument 172 width, height, in util_format_dxt1_rgba_unpack_rgba_8unorm() 180 unsigned width, unsigned height) in util_format_dxt3_rgba_unpack_rgba_8unorm() argument 184 width, height, in util_format_dxt3_rgba_unpack_rgba_8unorm() 192 unsigned width, unsigned height) in util_format_dxt5_rgba_unpack_rgba_8unorm() argument [all …]
|
D | u_format_latc.h | 37 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 40 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 43 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 46 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 57 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 60 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 63 …d dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 66 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 76 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); 79 …dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height); [all …]
|
D | u_format_yuv.h | 128 unsigned width, unsigned height); 133 unsigned width, unsigned height); 138 unsigned width, unsigned height); 143 unsigned width, unsigned height); 152 unsigned width, unsigned height); 157 unsigned width, unsigned height); 162 unsigned width, unsigned height); 167 unsigned width, unsigned height); 176 unsigned width, unsigned height); 181 unsigned width, unsigned height); [all …]
|
D | u_format_latc.c | 46 … dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height) in util_format_latc1_unorm_unpack_rgba_8unorm() argument 48 …til_format_rgtc1_unorm_unpack_rgba_8unorm(dst_row, dst_stride, src_row, src_stride, width, height); in util_format_latc1_unorm_unpack_rgba_8unorm() 53 unsigned src_stride, unsigned width, unsigned height) in util_format_latc1_unorm_pack_rgba_8unorm() argument 55 … util_format_rgtc1_unorm_pack_rgba_8unorm(dst_row, dst_stride, src_row, src_stride, width, height); in util_format_latc1_unorm_pack_rgba_8unorm() 59 … dst_stride, const uint8_t *restrict src_row, unsigned src_stride, unsigned width, unsigned height) in util_format_latc1_unorm_unpack_rgba_float() argument 64 for(y = 0; y < height; y += 4) { in util_format_latc1_unorm_unpack_rgba_float() 85 …ed dst_stride, const float *restrict src_row, unsigned src_stride, unsigned width, unsigned height) in util_format_latc1_unorm_pack_rgba_float() argument 87 util_format_rgtc1_unorm_pack_rgba_float(dst_row, dst_stride, src_row, src_stride, width, height); in util_format_latc1_unorm_pack_rgba_float() 113 UNUSED unsigned width, UNUSED unsigned height) in util_format_latc1_snorm_unpack_rgba_8unorm() argument 121 UNUSED unsigned width, UNUSED unsigned height) in util_format_latc1_snorm_pack_rgba_8unorm() argument [all …]
|
/hardware/google/gchips/gralloc4/src/core/ |
D | exynos_format_allocation.h | 110 int setup_sbwc_420_sp_lossy(int width, int height, int rate, int fd_count, plane_info_t *plane) in setup_sbwc_420_sp_lossy() argument 112 plane[0].size = SBWCL_8B_Y_SIZE(width, height, rate); in setup_sbwc_420_sp_lossy() 114 plane[0].alloc_height = __ALIGN_UP(height, 8); in setup_sbwc_420_sp_lossy() 118 plane[1].size = SBWCL_8B_CBCR_SIZE(width, height, rate); in setup_sbwc_420_sp_lossy() 120 plane[1].alloc_height = __ALIGN_UP(height, 8) / 2; in setup_sbwc_420_sp_lossy() 138 int setup_sbwc_420_sp_10bit_lossy(int width, int height, int rate, int fd_count, plane_info_t *plan… in setup_sbwc_420_sp_10bit_lossy() argument 140 plane[0].size = SBWCL_10B_Y_SIZE(width, height, rate); in setup_sbwc_420_sp_10bit_lossy() 142 plane[0].alloc_height = __ALIGN_UP(height, 8); in setup_sbwc_420_sp_10bit_lossy() 146 plane[1].size = SBWCL_10B_CBCR_SIZE(width, height, rate); in setup_sbwc_420_sp_10bit_lossy() 148 plane[1].alloc_height = __ALIGN_UP(height, 8) / 2; in setup_sbwc_420_sp_10bit_lossy() [all …]
|
/hardware/google/gfxstream/host/tests/ |
D | TextureDraw_unittest.cpp | 32 const int height = viewport[3]; in TestTextureDrawBasic() local 35 const int bytes = width * height * bpp; in TestTextureDrawBasic() 49 for (int i = 0; i < height; i++) { in TestTextureDrawBasic() 60 gl->glTexImage2D(GL_TEXTURE_2D, 0, internalformat, width, height, 0, in TestTextureDrawBasic() 80 gl->glReadPixels(0, 0, width, height, format, type, pixelsOut.data()); in TestTextureDrawBasic() 83 for (int i = 0; i < height; i++) { in TestTextureDrawBasic() 87 pixelsOut.data() + (height - i - 1) * rowBytes)); in TestTextureDrawBasic() 97 const int height = viewport[3]; in TestTextureDrawLayer() local 100 const int bytes = width * height * bpp; in TestTextureDrawLayer() 114 for (int i = 0; i < height; i++) { in TestTextureDrawLayer() [all …]
|
/hardware/google/gchips/include/ |
D | swconverter.h | 130 unsigned int height); 154 unsigned int height); 181 unsigned int height); 207 unsigned int height); 235 unsigned int height); 265 int height); 291 int height); 321 unsigned int height); 347 unsigned int height); 377 unsigned int height); [all …]
|
/hardware/qcom/display/msm8909/gralloc/ |
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/qcom/display/msm8909w_3100/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/google/gfxstream/guest/OpenglSystemCommon/ |
D | FormatConversions.h | 23 void get_yv12_offsets(int width, int height, 27 void get_yuv420p_offsets(int width, int height, 32 void rgb565_to_yv12(char* dest, char* src, int width, int height, 34 void rgb888_to_yv12(char* dest, char* src, int width, int height, 36 void rgb888_to_yuv420p(char* dest, char* src, int width, int height, 38 void yv12_to_rgb565(char* dest, char* src, int width, int height, 40 void yv12_to_rgb888(char* dest, char* src, int width, int height, 42 void yuv420p_to_rgb888(char* dest, char* src, int width, int height, 46 int width, int height, int top, int left,
|
D | FormatConversions.cpp | 49 void get_yv12_offsets(int width, int height, in get_yv12_offsets() argument 56 uint32_t uvHeight = height / 2; in get_yv12_offsets() 57 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yv12_offsets() 64 void get_yuv420p_offsets(int width, int height, in get_yuv420p_offsets() argument 71 uint32_t uvHeight = height / 2; in get_yuv420p_offsets() 72 uint32_t sz = yStride * height + 2 * (uvHeight * uvStride); in get_yuv420p_offsets() 88 void rgb565_to_yv12(char* dest, char* src, int width, int height, in rgb565_to_yv12() argument 95 int cSize = cStride * height/2; in rgb565_to_yv12() 99 uint8_t *yv12_v0 = yv12_y0 + yStride * height; in rgb565_to_yv12() 128 void rgb888_to_yv12(char* dest, char* src, int width, int height, in rgb888_to_yv12() argument [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/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/msm8994/libcopybit/ |
D | software_converter.cpp | 54 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 100 while(r1 < height/2) { in convertYV12toYCrCb420SP() 129 int height; member 150 int height = info.height; in copy_source_to_destination() local 155 for (int i = 0; i < height; i++) { in copy_source_to_destination() 165 height = height/2; in copy_source_to_destination() 166 for (int i = 0; i < height; i++) { in copy_source_to_destination() 197 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 203 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 204 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/sm8150/display/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 | 55 unsigned int height = src->h; in convertYV12toYCrCb420SP() local 101 while(r1 < height/2) { in convertYV12toYCrCb420SP() 130 int height; member 151 int height = info.height; in copy_source_to_destination() local 156 for (int i = 0; i < height; i++) { in copy_source_to_destination() 166 height = height/2; in copy_source_to_destination() 167 for (int i = 0; i < height; i++) { in copy_source_to_destination() 198 info.height = rhs->h; in convert_yuv_c2d_to_yuv_android() 204 info.src_plane1_offset = info.src_stride*info.height; in convert_yuv_c2d_to_yuv_android() 205 info.dst_plane1_offset = info.dst_stride*info.height; in convert_yuv_c2d_to_yuv_android() [all …]
|
/hardware/qcom/display/msm8909w_3100/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/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 …]
|