Home
last modified time | relevance | path

Searched refs:dim_y (Results 1 - 15 of 15) sorted by relevance

/third_party/astc-encoder/Source/
H A Dastcenccli_image.cpp31 unsigned int dim_y, in alloc_image()
36 img->dim_y = dim_y; in alloc_image()
47 data[z] = new uint8_t[dim_x * dim_y * 4]; in alloc_image()
55 data[z] = new uint16_t[dim_x * dim_y * 4]; in alloc_image()
64 data[z] = new float[dim_x * dim_y * 4]; in alloc_image()
92 unsigned int dim_y = img->dim_y; in determine_image_components() local
105 for (unsigned int y = 0; y < dim_y; y++) in determine_image_components()
126 for (unsigned int y = 0; y < dim_y; in determine_image_components()
28 alloc_image( unsigned int bitness, unsigned int dim_x, unsigned int dim_y, unsigned int dim_z ) alloc_image() argument
171 astc_img_from_floatx4_array( const float* data, unsigned int dim_x, unsigned int dim_y, bool y_flip ) astc_img_from_floatx4_array() argument
205 astc_img_from_unorm8x4_array( const uint8_t* data, unsigned int dim_x, unsigned int dim_y, bool y_flip ) astc_img_from_unorm8x4_array() argument
240 unsigned int dim_y = img->dim_y; floatx4_array_from_astc_img() local
312 unsigned int dim_y = img->dim_y; unorm8x4_array_from_astc_img() local
[all...]
H A Dastcenccli_image_load_store.cpp88 int dim_x, dim_y; in load_image_with_tinyexr() local
92 int load_res = LoadEXR(&image, &dim_x, &dim_y, filename, &err); in load_image_with_tinyexr()
100 astcenc_image* res_img = astc_img_from_floatx4_array(image, dim_x, dim_y, y_flip); in load_image_with_tinyexr()
124 int dim_x, dim_y; in load_image_with_stb() local
128 float* data = stbi_loadf(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
131 astcenc_image* img = astc_img_from_floatx4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb()
140 uint8_t* data = stbi_load(filename, &dim_x, &dim_y, nullptr, STBI_rgb_alpha); in load_image_with_stb()
143 astcenc_image* img = astc_img_from_unorm8x4_array(data, dim_x, dim_y, y_flip); in load_image_with_stb()
176 res = SaveEXR(buf, img->dim_x, img->dim_y, 4, 1, fnmod.c_str(), nullptr); in store_exr_image_with_tinyexr()
211 res = stbi_write_png(fnmod.c_str(), img->dim_x, img->dim_y, in store_png_image_with_stb()
1177 unsigned int dim_y = astc::max(hdr.pixel_height, 1u); load_ktx_uncompressed_image() local
1449 unsigned int dim_y = img->dim_y; store_ktx_uncompressed_image() local
1821 unsigned int dim_y = hdr.height; load_dds_uncompressed_image() local
2056 unsigned int dim_y = img->dim_y; store_dds_uncompressed_image() local
2440 uint8_t dim_y[3]; // Sizes are given in texels; global() member
2491 unsigned int dim_y = unpack_bytes(hdr.dim_y[0], hdr.dim_y[1], hdr.dim_y[2], 0); load_cimage() local
[all...]
H A Dastcenccli_error_metrics.cpp130 unsigned int dim_y = astc::min(img1->dim_y, img2->dim_y); in compute_error_metrics() local
134 img1->dim_y != img2->dim_y || in compute_error_metrics()
140 img1->dim_x, img1->dim_y, img1->dim_z, in compute_error_metrics()
141 img2->dim_x, img2->dim_y, img2->dim_z); in compute_error_metrics()
150 for (unsigned int y = 0; y < dim_y; y++) in compute_error_metrics()
285 mean_angular_errorsum += error_degrees / (dim_x * dim_y * dim_z); in compute_error_metrics()
292 double pixels = static_cast<double>(dim_x * dim_y * dim_ in compute_error_metrics()
[all...]
H A Dastcenccli_internal.h51 unsigned int dim_y; member
186 * @param dim_y The height of the image, in texels.
194 unsigned int dim_y,
272 * @param dim_y The height of the image, in texels.
280 unsigned int dim_y,
288 * @param dim_y The height of the image, in texels.
296 unsigned int dim_y,
H A Dastcenccli_image_external.cpp120 uint32_t dim_y = wuffs_base__pixel_config__height(&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()
H A Dastcenccli_toplevel.cpp382 (slices[0]->dim_y != slice->dim_y) || in load_uncomp_file()
400 unsigned int dim_y = slices[0]->dim_y; in load_uncomp_file() local
402 int slice_size = dim_x * dim_y; in load_uncomp_file()
404 image = alloc_image(bitness, dim_x, dim_y, dim_z); in load_uncomp_file()
1307 assert(y < img.dim_y); in image_get_pixel()
1366 assert(y < img.dim_y);
1394 assert(y < img.dim_y);
1419 for (unsigned int y = 0; y < input.dim_y;
[all...]
H A Dastcenc_compute_variance.cpp147 int zdt = img->dim_x * img->dim_y; in compute_pixel_region_variance()
170 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance()
214 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance()
253 y_src = astc::clamp(y_src, 0, static_cast<int>(img->dim_y - 1)); in compute_pixel_region_variance()
430 unsigned int size_y = img.dim_y; in init_compute_averages()
H A Dastcenc_entry.cpp851 int dim_y = image.dim_y; in compress_image() local
855 int yblocks = (dim_y + block_y - 1) / block_y; in compress_image()
918 int end_y = astc::min(dim_y, start_y + block_y); in compress_image()
1106 unsigned int yblocks = (image.dim_y + block_y - 1) / block_y; in astcenc_compress_image()
1128 size_t texel_count = image.dim_x * image.dim_y * image.dim_z; in astcenc_compress_image()
1215 unsigned int yblocks = (image_out.dim_y + block_y - 1) / block_y; in astcenc_decompress_image()
H A Dastcenc_image.cpp162 unsigned int ysize = img.dim_y; in load_image_block()
282 unsigned int ysize = img.dim_y; in load_image_block_fast_ldr()
350 unsigned int y_size = img.dim_y; in store_image_block()
H A Dastcenc.h642 unsigned int dim_y; member
/third_party/astc-encoder/Utils/
H A Dastc_rgbm_codec.cpp70 int dim_y; 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()
87 for (int y = 0; y < dim_y; y++) in main()
121 stbi_write_png(dst_file, dim_x, dim_y, 4, data_out, 4 * dim_x); in main()
128 int dim_y; 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()
145 for (int y = 0; y < dim_y; y++) in main()
169 stbi_write_hdr(dst_file, dim_x, dim_y, in main()
[all...]
H A Dastc_blend_test.cpp123 int dim_y; in main() local
124 const uint8_t* data_in = stbi_load(src_file, &dim_x, &dim_y, nullptr, 4); in main()
132 uint8_t* data_out = (uint8_t*)malloc(4 * dim_y * dim_x); in main()
142 for (int y = 0; y < dim_y; y++) in main()
211 for (int y = 0; y < dim_y - 1; y++) in main()
289 stbi_write_png(dst_file, dim_x, dim_y, 4, data_out, 4 * dim_x); in main()
293 stbi_write_png(dst_file, dim_x - 1, dim_y - 1, 4, data_out, 4 * (dim_x - 1)); in main()
/third_party/astc-encoder/Source/UnitTest/
H A Dtest_decode.cpp60 image.dim_y = 12; in TEST()
/third_party/astc-encoder/Utils/Example/
H A Dastc_api_example.cpp111 image.dim_y = image_y; in main()
/third_party/skia/third_party/externals/freetype/src/pshinter/
H A Dpshalgo.c2105 PSH_Dimension dim_y = &glyph->globals->dimension[1]; in ps_hints_apply() local
2108 FT_Fixed y_scale = dim_y->scale_mult; in ps_hints_apply()

Completed in 16 milliseconds