/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_gather.c | 83 unsigned src_width, in lp_build_gather_elem() 91 LLVMTypeRef src_type = LLVMIntTypeInContext(gallivm->context, src_width); in lp_build_gather_elem() 121 } else if (!util_is_power_of_two_or_zero(src_width)) { in lp_build_gather_elem() 132 if (((src_width / 24) * 24 == src_width) && in lp_build_gather_elem() 133 util_is_power_of_two_or_zero(src_width / 24)) { in lp_build_gather_elem() 134 LLVMSetAlignment(res, src_width / 24); in lp_build_gather_elem() 140 assert(src_width <= dst_width); in lp_build_gather_elem() 141 if (src_width < dst_width) { in lp_build_gather_elem() 146 LLVMConstInt(dst_elem_type, dst_width - src_width, in lp_build_gather_elem() 81 lp_build_gather_elem(struct gallivm_state *gallivm, unsigned length, unsigned src_width, unsigned dst_width, boolean aligned, LLVMValueRef base_ptr, LLVMValueRef offsets, unsigned i, boolean vector_justify) lp_build_gather_elem() argument 164 lp_build_gather_elem_vec(struct gallivm_state *gallivm, unsigned length, unsigned src_width, LLVMTypeRef src_type, struct lp_type dst_type, boolean aligned, LLVMValueRef base_ptr, LLVMValueRef offsets, unsigned i, boolean vector_justify) lp_build_gather_elem_vec() argument 278 lp_build_gather_avx2(struct gallivm_state *gallivm, unsigned length, unsigned src_width, struct lp_type dst_type, LLVMValueRef base_ptr, LLVMValueRef offsets) lp_build_gather_avx2() argument 408 lp_build_gather(struct gallivm_state *gallivm, unsigned length, unsigned src_width, struct lp_type dst_type, boolean aligned, LLVMValueRef base_ptr, LLVMValueRef offsets, boolean vector_justify) lp_build_gather() argument [all...] |
H A D | lp_bld_gather.h | 46 unsigned src_width, 57 unsigned src_width,
|
H A D | lp_bld_conv.c | 389 * Ex: src = { i32, i32, i32, i32 } with values in range [0, 2^src_width-1] 394 unsigned src_width, in lp_build_unsigned_norm_to_float() 414 if (src_width <= (mantissa + 1)) { in lp_build_unsigned_norm_to_float() 421 scale = 1.0/(double)((1ULL << src_width) - 1); in lp_build_unsigned_norm_to_float() 433 n = MIN2(mantissa, src_width); in lp_build_unsigned_norm_to_float() 442 if (src_width > mantissa) { in lp_build_unsigned_norm_to_float() 443 int shift = src_width - mantissa; in lp_build_unsigned_norm_to_float() 529 * If dst_width is 16 bits and src_width 32 and the dst vector size in lp_build_conv_auto() 393 lp_build_unsigned_norm_to_float(struct gallivm_state *gallivm, unsigned src_width, struct lp_type dst_type, LLVMValueRef src) lp_build_unsigned_norm_to_float() argument
|
H A D | lp_bld_conv.h | 61 unsigned src_width,
|
/third_party/skia/third_party/externals/libwebp/src/utils/ |
H A D | rescaler_utils.c | 25 int src_width, int src_height, in WebPRescalerInit() 29 const int x_add = src_width, x_sub = dst_width; in WebPRescalerInit() 34 rescaler->x_expand = (src_width < dst_width); in WebPRescalerInit() 36 rescaler->src_width = src_width; in WebPRescalerInit() 85 int WebPRescalerGetScaledDimensions(int src_width, int src_height, in WebPRescalerGetScaledDimensions() argument 98 (int)(((uint64_t)src_width * height + src_height - 1) / src_height); in WebPRescalerGetScaledDimensions() 101 if (height == 0 && src_width > 0) { in WebPRescalerGetScaledDimensions() 103 (int)(((uint64_t)src_height * width + src_width - 1) / src_width); in WebPRescalerGetScaledDimensions() 24 WebPRescalerInit(WebPRescaler* const rescaler, int src_width, int src_height, uint8_t* const dst, int dst_width, int dst_height, int dst_stride, int num_channels, rescaler_t* const work) WebPRescalerInit() argument [all...] |
H A D | rescaler_utils.h | 41 int src_width, src_height; // source dimensions member 52 int src_width, int src_height, 62 int WebPRescalerGetScaledDimensions(int src_width, int src_height,
|
/third_party/mesa3d/src/mesa/main/ |
H A D | texcompress_bptc_tmp.h | 657 decompress_rgba_unorm_block(int src_width, int src_height, in decompress_rgba_unorm_block() argument 682 memset(result, 0, 4 * src_width); in decompress_rgba_unorm_block() 727 for(x = 0; x < src_width; x += 1) { in decompress_rgba_unorm_block() 1034 decompress_rgb_float_block(unsigned src_width, unsigned src_height, in decompress_rgb_float_block() argument 1067 memset(result, 0, sizeof result[0] * 4 * src_width); in decompress_rgb_float_block() 1068 for(x = 0; x < src_width; x += 1) { in decompress_rgb_float_block() 1094 for(x = 0; x < src_width; x += 1) { in decompress_rgb_float_block() 1301 int src_width, int src_height, in write_rgb_indices_unorm() 1326 for (x = 0; x < src_width; x++) { in write_rgb_indices_unorm() 1344 if (src_width < BLOCK_SIZ in write_rgb_indices_unorm() 1300 write_rgb_indices_unorm(struct bit_writer *writer, int src_width, int src_height, const uint8_t *src, int src_rowstride, uint8_t endpoints[][4]) write_rgb_indices_unorm() argument 1356 write_alpha_indices_unorm(struct bit_writer *writer, int src_width, int src_height, const uint8_t *src, int src_rowstride, uint8_t endpoints[][4]) write_alpha_indices_unorm() argument 1401 compress_rgba_unorm_block(int src_width, int src_height, const uint8_t *src, int src_rowstride, uint8_t *dst) compress_rgba_unorm_block() argument 1583 write_rgb_indices_float(struct bit_writer *writer, int src_width, int src_height, const float *src, int src_rowstride, float endpoints[][3]) write_rgb_indices_float() argument 1669 compress_rgb_float_block(int src_width, int src_height, const float *src, int src_rowstride, uint8_t *dst, bool is_signed) compress_rgb_float_block() argument [all...] |
H A D | texcompress_etc.h | 71 unsigned src_width, 78 unsigned src_width,
|
H A D | texcompress_etc.c | 133 * \param src_width in pixels 142 unsigned src_width, in _mesa_etc1_unpack_rgba8888() 147 src_width, src_height); in _mesa_etc1_unpack_rgba8888() 1210 * \param src_width in pixels 1220 unsigned src_width, in _mesa_unpack_etc2_format() 1228 src_width, src_height); in _mesa_unpack_etc2_format() 1232 src_width, src_height, bgra); in _mesa_unpack_etc2_format() 1236 src_width, src_height); in _mesa_unpack_etc2_format() 1240 src_width, src_height, bgra); in _mesa_unpack_etc2_format() 1244 src_width, src_heigh in _mesa_unpack_etc2_format() 138 _mesa_etc1_unpack_rgba8888(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned src_width, unsigned src_height) _mesa_etc1_unpack_rgba8888() argument 1216 _mesa_unpack_etc2_format(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned src_width, unsigned src_height, mesa_format format, bool bgra) _mesa_unpack_etc2_format() argument [all...] |
H A D | texcompress_astc.h | 39 unsigned src_width,
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | rescaler_mips32.c | 90 const int src_width = wrk->src_width; in ImportRowExpand_MIPS32() local 105 "addiu %[temp3], %[src_width], -1 \n\t" in ImportRowExpand_MIPS32() 138 [x_stride1]"r"(x_stride1), [src_width]"r"(src_width), in ImportRowExpand_MIPS32() 142 assert(wrk->x_sub == 0 /* <- special case for src_width=1 */ || accum == 0); in ImportRowExpand_MIPS32()
|
H A D | rescaler.c | 43 (wrk->src_width > 1) ? (rescaler_t)src[x_in + x_stride] : left; in WebPRescalerImportRowExpand_C() 53 assert(x_in < wrk->src_width * x_stride); in WebPRescalerImportRowExpand_C() 58 assert(wrk->x_sub == 0 /* <- special case for src_width=1 */ || accum == 0); in WebPRescalerImportRowExpand_C() 79 assert(x_in < wrk->src_width * x_stride); in WebPRescalerImportRowShrink_C() 180 assert(wrk->src_width == 1 && wrk->dst_width <= 2); in WebPRescalerExportRow()
|
H A D | yuv.c | 129 int src_width, int do_store) { in WebPConvertARGBToUV_C() 131 const int uv_width = src_width >> 1; in WebPConvertARGBToUV_C() 152 if (src_width & 1) { // last pixel in WebPConvertARGBToUV_C() 248 int src_width, int do_store); 128 WebPConvertARGBToUV_C(const uint32_t* argb, uint8_t* u, uint8_t* v, int src_width, int do_store) WebPConvertARGBToUV_C() argument
|
H A D | yuv_neon.c | 135 int src_width, int do_store) { in ConvertARGBToUV_NEON() 137 for (i = 0; i + 16 <= src_width; i += 16, u += 8, v += 8) { in ConvertARGBToUV_NEON() 158 if (i < src_width) { // left-over in ConvertARGBToUV_NEON() 159 WebPConvertARGBToUV_C(argb + i, u, v, src_width - i, do_store); in ConvertARGBToUV_NEON() 134 ConvertARGBToUV_NEON(const uint32_t* argb, uint8_t* u, uint8_t* v, int src_width, int do_store) ConvertARGBToUV_NEON() argument
|
H A D | yuv_sse41.c | 506 int src_width, int do_store) { in ConvertARGBToUV_SSE41() 507 const int max_width = src_width & ~31; in ConvertARGBToUV_SSE41() 534 if (i < src_width) { // left-over in ConvertARGBToUV_SSE41() 535 WebPConvertARGBToUV_C(argb + i, u, v, src_width - i, do_store); in ConvertARGBToUV_SSE41() 504 ConvertARGBToUV_SSE41(const uint32_t* argb, uint8_t* u, uint8_t* v, int src_width, int do_store) ConvertARGBToUV_SSE41() argument
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_blt.c | 248 uint32_t src_width = src_box->width, src_height = src_box->height; in crocus_emit_blt() local 274 src_width = DIV_ROUND_UP(src_width, (int)bw); in crocus_emit_blt() 321 for (uint32_t chunk_x = 0; chunk_x < src_width; chunk_x += max_chunk_size) { in crocus_emit_blt() 323 const uint32_t chunk_w = MIN2(max_chunk_size, src_width - chunk_x); in crocus_emit_blt() 368 blt_set_alpha_to_one(batch, dst, 0, 0, src_width, src_height); in crocus_emit_blt()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_test_image_copy_region.c | 782 int src_width, src_height, src_depth, dst_width, dst_height, dst_depth; in si_test_blit() local 801 src_width = (rand() % max_src_width) + 1; in si_test_blit() 809 srcx = rand() % (u_minify(tsrc.width0, src_level) - src_width + 1); in si_test_blit() 839 src_width = align(src_width, util_format_get_blockwidth(tsrc.format)); in si_test_blit() 846 if (src_width > dst_width) in si_test_blit() 847 src_width = dst_width; in si_test_blit() 855 if (src_width < dst_width) in si_test_blit() 856 dst_width = src_width; in si_test_blit() 866 srcx += src_width; in si_test_blit() [all...] |
H A D | si_sdma_copy_image.c | 248 unsigned src_width = minify_as_blocks(ssrc->buffer.b.b.width0, 0, ssrc->surface.blk_w); in cik_sdma_copy_texture() local 296 unsigned tiled_width = tiled == ssrc ? src_width : dst_width; in cik_sdma_copy_texture() 297 unsigned linear_width = linear == ssrc ? src_width : dst_width; in cik_sdma_copy_texture()
|
/third_party/backends/backend/genesys/ |
H A D | image_pipeline.cpp | 655 auto src_width = source_.get_width(); in get_next_row_data() local 664 if (src_width > dst_width) { in get_next_row_data() 666 std::uint32_t counter = src_width / 2; in get_next_row_data() 671 while (counter < src_width && src_x < src_width) { in get_next_row_data() 681 counter -= src_width; in get_next_row_data() 692 for (unsigned src_x = 0; src_x < src_width; src_x++) { in get_next_row_data() 697 while ((counter < dst_width || src_x + 1 == src_width) && dst_x < dst_width) { in get_next_row_data() 698 counter += src_width; in get_next_row_data()
|
/third_party/mesa3d/src/gallium/frontends/va/ |
H A D | subpicture.c | 172 short src_x, short src_y, unsigned short src_width, in vlVaAssociateSubpicture() 183 struct u_rect src_rect = {src_x, src_x + src_width, src_y, src_y + src_height}; in vlVaAssociateSubpicture() 212 tex_temp.width0 = src_width; in vlVaAssociateSubpicture() 170 vlVaAssociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture, VASurfaceID *target_surfaces, int num_surfaces, short src_x, short src_y, unsigned short src_width, unsigned short src_height, short dest_x, short dest_y, unsigned short dest_width, unsigned short dest_height, unsigned int flags) vlVaAssociateSubpicture() argument
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_thumbnail_cuda.c | 160 int *histogram, uint8_t *src_dptr, int src_width, int src_height, int src_pitch, int pixel_size) in thumbnail_kernel() 166 void *args[] = { &tex, &histogram, &src_width, &src_height }; in thumbnail_kernel() 179 .res.pitch2D.width = src_width, in thumbnail_kernel() 190 DIV_UP(src_width, BLOCKX), DIV_UP(src_height, BLOCKY), 1, in thumbnail_kernel() 159 thumbnail_kernel(AVFilterContext *ctx, CUfunction func, int channels, int *histogram, uint8_t *src_dptr, int src_width, int src_height, int src_pitch, int pixel_size) thumbnail_kernel() argument
|
H A D | vf_yadif_cuda.c | 60 int src_width, // Width is pixels per channel in call_kernel() 77 &src_width, &src_height, &parity, &tff, in call_kernel() 89 .res.pitch2D.width = src_width, in call_kernel() 57 call_kernel(AVFilterContext *ctx, CUfunction func, CUdeviceptr prev, CUdeviceptr cur, CUdeviceptr next, CUarray_format format, int channels, int src_width, int src_height, int src_pitch, CUdeviceptr dst, int dst_width, int dst_height, int dst_pitch, int parity, int tff) call_kernel() argument
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_copyimage.h | 36 int src_width, int src_height);
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_linear.c | 55 int src_endian, dst_endian, sign, src_width, dst_width; in snd_pcm_linear_convert_index() local 72 src_width = snd_pcm_format_width(src_format) / 8 - 1; in snd_pcm_linear_convert_index() 75 return src_width * 32 + src_endian * 16 + sign * 8 + dst_width * 2 + dst_endian; in snd_pcm_linear_convert_index()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | test_eu_validate.cpp | 2153 unsigned src_width; in TEST_P() member 2159 src_subreg, src_vstride, src_width, src_hstride, expected_result) \ in TEST_P() 2169 BRW_WIDTH_##src_width, \ in TEST_P() 2315 brw_inst_set_src0_width(&devinfo, last_inst, inst[i].src_width); in TEST_P() 2342 unsigned src_width; in TEST_P() member 2348 src_type, src_is_indirect, src_vstride, src_width, src_hstride, \ in TEST_P() 2359 BRW_WIDTH_##src_width, \ in TEST_P() 2448 brw_inst_set_src0_width(&devinfo, last_inst, inst[i].src_width); in TEST_P() 2475 unsigned src_width; in TEST_P() member 2482 src, src_type, src_vstride, src_width, src_hstrid in TEST_P() 2709 unsigned src_width; TEST_P() member [all...] |