/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() 63 temp_block, width * 4 * sizeof(uint8_t)); in util_format_bptc_rgba_unorm_unpack_rgba_float() 69 temp_block + 4 * width * y, in util_format_bptc_rgba_unorm_unpack_rgba_float() 70 width); in util_format_bptc_rgba_unorm_unpack_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 120 memcpy(dst_row, src_row, width); in util_format_s8_uint_unpack_s_8uint() 129 unsigned width, unsigned height) in util_format_s8_uint_pack_s_8uint() argument 133 memcpy(dst_row, src_row, width); in util_format_s8_uint_pack_s_8uint() 142 unsigned width, unsigned height) in util_format_z16_unorm_unpack_z_float() argument 148 for(x = 0; x < width; ++x) { in util_format_z16_unorm_unpack_z_float() 159 unsigned width, unsigned height) in util_format_z16_unorm_pack_z_float() argument 165 for(x = 0; x < width; ++x) { in util_format_z16_unorm_pack_z_float() 176 unsigned width, unsigned height) in util_format_z16_unorm_unpack_z_32unorm() argument 182 for(x = 0; x < width; ++x) { 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 134 for(x = 0; x < width; x += bw) { in util_format_dxtn_rgb_unpack_rgba_8unorm() 135 const unsigned w = MIN2(width - x, bw); 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_other.h | 40 unsigned width); 45 unsigned width, unsigned height); 54 unsigned width); 59 unsigned width, unsigned height); 65 unsigned width); 70 unsigned width, unsigned height); 79 unsigned width); 84 unsigned width, unsigned height); 90 unsigned width); 95 unsigned width, unsigned height); [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 …]
|
/hardware/google/gfxstream/host/tests/ |
D | TextureDraw_unittest.cpp | 31 const int width = viewport[2]; in TestTextureDrawBasic() local 35 const int bytes = width * height * bpp; in TestTextureDrawBasic() 50 for (int j = 0; j < width; j++) { in TestTextureDrawBasic() 51 pixels[i * width * bpp + j * bpp + 0] = (0xaa + i) % 0x100; in TestTextureDrawBasic() 52 pixels[i * width * bpp + j * bpp + 1] = (0x00 + j) % 0x100; in TestTextureDrawBasic() 53 pixels[i * width * bpp + j * bpp + 2] = (0x11 + i) % 0x100; in TestTextureDrawBasic() 55 pixels[i * width * bpp + j * bpp + 3] = 0xff; 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() 84 size_t rowBytes = width * bpp; in TestTextureDrawBasic() [all …]
|
D | GLTestUtils.cpp | 36 testing::AssertionResult ImageMatches(int width, int height, int bpp, int rowLength, in ImageMatches() argument 43 size_t rowBytes = width * bpp; in ImageMatches() 69 TestTexture createTestPatternRGB888(int width, int height) { in createTestPatternRGB888() argument 72 TestTexture res(bpp * width * height); in createTestPatternRGB888() 75 for (int j = 0; j < width; j++) { in createTestPatternRGB888() 76 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGB888() 77 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGB888() 78 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGB888() 85 TestTexture createTestPatternRGBA8888(int width, int height) { in createTestPatternRGBA8888() argument 88 TestTexture res(bpp * width * height); in createTestPatternRGBA8888() [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() 113 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy() 115 plane[0].byte_stride = SBWCL_8B_STRIDE(width, rate); in setup_sbwc_420_sp_lossy() 118 plane[1].size = SBWCL_8B_CBCR_SIZE(width, height, rate); in setup_sbwc_420_sp_lossy() 119 plane[1].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_lossy() 121 plane[1].byte_stride = SBWCL_8B_STRIDE(width, rate); 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() 141 plane[0].alloc_width = GRALLOC_ALIGN(width, 32); in setup_sbwc_420_sp_10bit_lossy() [all …]
|
/hardware/interfaces/automotive/evs/common/utils/default/test/fuzz/ |
D | FormatConvertFuzzer.cpp | 38 int width = (image_pixel_size / height) & ~(0xF); // must be divisible by 16 in LLVMFuzzerTestOneInput() local 44 android::hardware::automotive::evs::common::Utils::copyNV21toRGB32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 45 width); in LLVMFuzzerTestOneInput() 47 android::hardware::automotive::evs::common::Utils::copyNV21toBGR32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 48 width); in LLVMFuzzerTestOneInput() 50 android::hardware::automotive::evs::common::Utils::copyYV12toRGB32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 51 width); in LLVMFuzzerTestOneInput() 53 android::hardware::automotive::evs::common::Utils::copyYV12toBGR32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 54 width); in LLVMFuzzerTestOneInput() 56 android::hardware::automotive::evs::common::Utils::copyYUYVtoRGB32(width, height, src, width, in LLVMFuzzerTestOneInput() [all …]
|
/hardware/google/gchips/include/ |
D | swconverter.h | 129 unsigned int width, 153 unsigned int width, 180 unsigned int width, 206 unsigned int width, 234 unsigned int width, 264 int width, 290 int width, 320 unsigned int width, 346 unsigned int width, 376 unsigned int width, [all …]
|
/hardware/qcom/display/msm8909/gralloc/ |
D | gr_utils.cpp | 181 int width = info.width; 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() 229 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize() 248 if (width & 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() 267 size = (unsigned int)width; in GetSize() 286 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument 295 y_meta_stride = VENUS_Y_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
D | gr_utils.cpp | 181 int width = info.width; 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() 229 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width & 1) || (height & 1))) { in GetSize() 248 if (width & 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() 267 size = (unsigned int)width; in GetSize() 286 void GetYuvUbwcSPPlaneInfo(uint64_t base, uint32_t width, uint32_t height, in GetYuvUbwcSPPlaneInfo() argument 295 y_meta_stride = VENUS_Y_META_STRIDE(color_format, INT(width)); in GetYuvUbwcSPPlaneInfo() [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | alloc_controller.cpp | 169 aligned_w = hnd->width; in getAlignedWidthAndHeight() 222 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument 230 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight() 232 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight() 234 aligned_w = width; in getAlignedWidthAndHeight() 244 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 247 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 252 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 255 aligned_w = ALIGN(width * 12 / 8, 8); in getAlignedWidthAndHeight() 258 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
D | alloc_controller.cpp | 169 aligned_w = hnd->width; in getAlignedWidthAndHeight() 222 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, in getAlignedWidthAndHeight() argument 230 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); in getAlignedWidthAndHeight() 232 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); in getAlignedWidthAndHeight() 234 aligned_w = width; in getAlignedWidthAndHeight() 244 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 247 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 252 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 255 aligned_w = ALIGN(width * 12 / 8, 8); in getAlignedWidthAndHeight() 258 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight() [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,
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | alloc_controller.cpp | 176 aligned_w = hnd->width; 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() 229 aligned_w = width; in getAlignedWidthAndHeight() 239 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 242 aligned_w = ALIGN(width, alignment); in getAlignedWidthAndHeight() 245 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 248 aligned_w = ALIGN(width * 10 / 8, 8); in getAlignedWidthAndHeight() 251 aligned_w = ALIGN(width, 128); in getAlignedWidthAndHeight() [all …]
|
/hardware/qcom/display/msm8960/libcopybit/ |
D | software_converter.cpp | 52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local 57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP() 100 if(j == width) { in convertYV12toYCrCb420SP() 105 if (j+1 == width) { in convertYV12toYCrCb420SP() 106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 116 if (i == width/2 ) { in convertYV12toYCrCb420SP() 127 int width; member [all …]
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | software_converter.cpp | 53 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local 58 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP() 101 if(j == width) { in convertYV12toYCrCb420SP() 106 if (j+1 == width) { in convertYV12toYCrCb420SP() 107 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 109 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 112 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 113 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 117 if (i == width/2 ) { in convertYV12toYCrCb420SP() 128 int width; member [all …]
|
/hardware/qcom/sm8150/display/libcopybit/ |
D | software_converter.cpp | 52 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local 57 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP() 100 if(j == width) { in convertYV12toYCrCb420SP() 105 if (j+1 == width) { in convertYV12toYCrCb420SP() 106 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 108 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 111 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 112 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 116 if (i == width/2 ) { in convertYV12toYCrCb420SP() 127 int width; member [all …]
|
/hardware/qcom/display/msm8998/libcopybit/ |
D | software_converter.cpp | 54 unsigned int width = src->w - src->horiz_padding; in convertYV12toYCrCb420SP() local 59 unsigned int chromaPadding = c_width - width/2; in convertYV12toYCrCb420SP() 102 if(j == width) { in convertYV12toYCrCb420SP() 107 if (j+1 == width) { in convertYV12toYCrCb420SP() 108 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 110 newChroma[r2*width] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 113 newChroma[r2*width + j] = oldChroma[r1*c_width+i]; in convertYV12toYCrCb420SP() 114 newChroma[r2*width + j + 1] = oldChroma[r1*c_width+i+c_size]; in convertYV12toYCrCb420SP() 118 if (i == width/2 ) { in convertYV12toYCrCb420SP() 129 int width; member [all …]
|