Home
last modified time | relevance | path

Searched refs:dim_x (Results 1 – 14 of 14) sorted by relevance

/third_party/astc-encoder/Source/
Dastcenccli_image.cpp30 unsigned int dim_x, in alloc_image() argument
35 img->dim_x = dim_x; in alloc_image()
47 data[z] = new uint8_t[dim_x * dim_y * 4]; in alloc_image()
58 data[z] = new uint16_t[dim_x * dim_y * 4]; in alloc_image()
70 data[z] = new float[dim_x * dim_y * 4]; in alloc_image()
97 unsigned int dim_x = img->dim_x; in determine_image_components() local
113 for (unsigned int x = 0; x < dim_x; x++) in determine_image_components()
115 int r = data8[(4 * dim_x * y) + (4 * x )]; in determine_image_components()
116 int g = data8[(4 * dim_x * y) + (4 * x + 1)]; in determine_image_components()
117 int b = data8[(4 * dim_x * y) + (4 * x + 2)]; in determine_image_components()
[all …]
Dastcenccli_image_load_store.cpp55 int dim_x, dim_y; in load_image_with_tinyexr() local
59 int load_res = LoadEXR(&image, &dim_x, &dim_y, filename, &err); in load_image_with_tinyexr()
67 astcenc_image* res_img = astc_img_from_floatx4_array(image, dim_x, dim_y, y_flip); in load_image_with_tinyexr()
91 int dim_x, dim_y; in load_image_with_stb() local
95 float* data = stbi_loadf(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
98 astcenc_image* img = astc_img_from_floatx4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb()
107 uint8_t* data = stbi_load(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
110 astcenc_image* img = astc_img_from_unorm8x4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb()
137 int res = SaveEXR(buf, img->dim_x, img->dim_y, 4, 1, filename, nullptr); in store_exr_image_with_tinyexr()
160 int res = stbi_write_png(filename, img->dim_x, img->dim_y, 4, buf, img->dim_x * 4); in store_png_image_with_stb()
[all …]
Dastcenccli_toplevel.cpp344 if ((slices[0]->dim_x != slice->dim_x) || in load_uncomp_file()
362 unsigned int dim_x = slices[0]->dim_x; in load_uncomp_file() local
365 int slice_size = dim_x * dim_y; in load_uncomp_file()
367 image = alloc_image(bitness, dim_x, dim_y, dim_z); in load_uncomp_file()
1144 assert(x < img.dim_x); in image_get_pixel()
1152 float r = data[(4 * img.dim_x * y) + (4 * x )] / 255.0f; in image_get_pixel()
1153 float g = data[(4 * img.dim_x * y) + (4 * x + 1)] / 255.0f; in image_get_pixel()
1154 float b = data[(4 * img.dim_x * y) + (4 * x + 2)] / 255.0f; in image_get_pixel()
1155 float a = data[(4 * img.dim_x * y) + (4 * x + 3)] / 255.0f; in image_get_pixel()
1164 data[(4 * img.dim_x * y) + (4 * x )], in image_get_pixel()
[all …]
Dastcenccli_error_metrics.cpp134 unsigned int dim_x = astc::min(img1->dim_x, img2->dim_x); in compute_error_metrics() local
138 if (img1->dim_x != img2->dim_x || in compute_error_metrics()
145 img1->dim_x, img1->dim_y, img1->dim_z, in compute_error_metrics()
146 img2->dim_x, img2->dim_y, img2->dim_z); in compute_error_metrics()
150 unsigned int xsize1 = img1->dim_x; in compute_error_metrics()
151 unsigned int xsize2 = img2->dim_x; in compute_error_metrics()
157 for (unsigned int x = 0; x < dim_x; x++) in compute_error_metrics()
287 mean_angular_errorsum += error_degrees / (dim_x * dim_y * dim_z); in compute_error_metrics()
294 float pixels = static_cast<float>(dim_x * dim_y * dim_z); in compute_error_metrics()
Dastcenc_compute_variance.cpp154 int ydt = img->dim_x; in compute_pixel_region_variance()
155 int zdt = img->dim_x * img->dim_y; in compute_pixel_region_variance()
183 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
227 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
229 data[0] = data16[(4 * img->dim_x * y_src) + (4 * x_src )]; in compute_pixel_region_variance()
230 data[1] = data16[(4 * img->dim_x * y_src) + (4 * x_src + 1)]; in compute_pixel_region_variance()
231 data[2] = data16[(4 * img->dim_x * y_src) + (4 * x_src + 2)]; in compute_pixel_region_variance()
232 data[3] = data16[(4 * img->dim_x * y_src) + (4 * x_src + 3)]; in compute_pixel_region_variance()
266 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
268 data[0] = data32[(4 * img->dim_x * y_src) + (4 * x_src )]; in compute_pixel_region_variance()
[all …]
Dastcenccli_internal.h48 unsigned int dim_x; member
167 unsigned int dim_x,
253 unsigned int dim_x,
269 unsigned int dim_x,
Dastcenccli_image_external.cpp119 uint32_t dim_x = wuffs_base__pixel_config__width(&ic.pixcfg); in load_png_with_wuffs() local
121 size_t num_pixels = dim_x * dim_y; in load_png_with_wuffs()
132 dim_x, dim_y); in load_png_with_wuffs()
167 astcenc_image* img = astc_img_from_unorm8x4_array(pixbuf_slice.ptr, dim_x, dim_y, y_flip); in load_png_with_wuffs()
Dastcenc_entry.cpp827 int dim_x = image.dim_x; in compress_image() local
831 int xblocks = (dim_x + block_x - 1) / block_x; in compress_image()
891 int end_x = astc::min(dim_x, start_x + block_x); in compress_image()
912 float a_avg = ctx.input_alpha_averages[ay * dim_x + ax]; in compress_image()
1007 unsigned int xblocks = (image.dim_x + block_x - 1) / block_x; in astcenc_compress_image()
1030 size_t texel_count = image.dim_x * image.dim_y * image.dim_z; in astcenc_compress_image()
1114 unsigned int xblocks = (image_out.dim_x + block_x - 1) / block_x; in astcenc_decompress_image()
Dastcenc_image.cpp161 unsigned int xsize = img.dim_x; in fetch_image_block()
281 unsigned int xsize = img.dim_x; in fetch_image_block_fast_ldr()
344 unsigned int xsize = img.dim_x; in write_image_block()
Dastcenc.h576 unsigned int dim_x; member
/third_party/astc-encoder/Utils/
Dastc_rgbm_codec.cpp69 int dim_x; in main() local
71 const float* data_in = stbi_loadf(src_file, &dim_x, &dim_y, nullptr, 4); in main()
79 uint8_t* data_out = (uint8_t*)malloc(4 * dim_y * dim_x); in main()
89 const float* row_in = data_in + (4 * dim_x * y); in main()
90 uint8_t* row_out = data_out + (4 * dim_x * y); in main()
92 for (int x = 0; x < dim_x; x++) in main()
121 stbi_write_png(dst_file, dim_x, dim_y, 4, data_out, 4 * dim_x); in main()
127 int dim_x; in main() local
129 const uint8_t* data_in = stbi_load(src_file, &dim_x, &dim_y, nullptr, 4); in main()
137 float* data_out = (float*)malloc(4 * dim_y * dim_x * sizeof(float)); in main()
[all …]
/third_party/astc-encoder/Utils/Example/
Dastc_api_example.cpp110 image.dim_x = image_x; in main()
/third_party/astc-encoder/Docs/
DFileFormat.md21 uint8_t dim_x[3];
/third_party/skia/third_party/externals/freetype/src/pshinter/
Dpshalgo.c2104 PSH_Dimension dim_x = &glyph->globals->dimension[0]; in ps_hints_apply() local
2107 FT_Fixed x_scale = dim_x->scale_mult; in ps_hints_apply()