Home
last modified time | relevance | path

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

/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_compute_variance.cpp174 int x_src = (x - 1) + offset_x - kernel_radius_xy; in compute_pixel_region_variance() local
175 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
177 data[0] = data8[(4 * img->dim_x * y_src) + (4 * x_src )]; in compute_pixel_region_variance()
178 data[1] = data8[(4 * img->dim_x * y_src) + (4 * x_src + 1)]; in compute_pixel_region_variance()
179 data[2] = data8[(4 * img->dim_x * y_src) + (4 * x_src + 2)]; in compute_pixel_region_variance()
180 data[3] = data8[(4 * img->dim_x * y_src) + (4 * x_src + 3)]; in compute_pixel_region_variance()
218 int x_src = (x - 1) + offset_x - kernel_radius_xy; in compute_pixel_region_variance() local
219 x_src = astc::clamp(x_src, 0, static_cast<int>(img->dim_x - 1)); in compute_pixel_region_variance()
221 data[0] = data16[(4 * img->dim_x * y_src) + (4 * x_src )]; in compute_pixel_region_variance()
222 data[1] = data16[(4 * img->dim_x * y_src) + (4 * x_src + 1)]; in compute_pixel_region_variance()
[all …]