Home
last modified time | relevance | path

Searched refs:chans (Results 1 – 25 of 35) sorted by relevance

12

/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_logic_ops.c120 v3d_nir_swizzle_and_pack(nir_builder *b, nir_ssa_def **chans, in v3d_nir_swizzle_and_pack() argument
125 c[i] = v3d_nir_get_swizzled_channel(b, chans, swiz[i]); in v3d_nir_swizzle_and_pack()
153 nir_ssa_def *chans[4]; in pack_unorm_rgb10a2() local
155 chans[i] = nir_channel(b, unorm, i); in pack_unorm_rgb10a2()
157 nir_ssa_def *result = nir_mov(b, chans[0]); in pack_unorm_rgb10a2()
161 nir_ishl(b, chans[i], nir_imm_int(b, offset)); in pack_unorm_rgb10a2()
177 nir_ssa_def *chans[4]; in unpack_unorm_rgb10a2() local
180 chans[i] = nir_format_unorm_to_float(b, unorm, &bits[i]); in unpack_unorm_rgb10a2()
184 return nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in unpack_unorm_rgb10a2()
Dv3d_nir_lower_scratch.c60 nir_ssa_def *chans[NIR_MAX_VEC_COMPONENTS]; in v3d_nir_lower_load_scratch() local
77 chans[i] = &chan_instr->dest.ssa; in v3d_nir_lower_load_scratch()
80 nir_ssa_def *result = nir_vec(b, chans, instr->num_components); in v3d_nir_lower_load_scratch()
/third_party/libsnd/include/
Dsndfile.hh174 SndfileHandle::SndfileHandle (const char *path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
183 p->sfinfo.channels = chans ; in SndfileHandle()
196 SndfileHandle::SndfileHandle (std::string const & path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
205 p->sfinfo.channels = chans ; in SndfileHandle()
218 SndfileHandle::SndfileHandle (int fd, bool close_desc, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
230 p->sfinfo.channels = chans ; in SndfileHandle()
243 …:SndfileHandle (SF_VIRTUAL_IO &sfvirtual, void *user_data, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
252 p->sfinfo.channels = chans ; in SndfileHandle()
322 SndfileHandle::formatCheck (int fmt, int chans, int srate) in formatCheck() argument
327 sfinfo.channels = chans ; in formatCheck()
[all …]
/third_party/mesa3d/src/util/format/
Du_format_parse.py157 chans = self.nr_channels()
158 self.be_channels = self.le_channels[chans -
159 1::-1] + self.le_channels[chans:4]
162 chan_map = {SWIZZLE_X: xyzw[chans - 1] if chans >= 1 else SWIZZLE_X,
163 SWIZZLE_Y: xyzw[chans - 2] if chans >= 2 else SWIZZLE_X,
164 SWIZZLE_Z: xyzw[chans - 3] if chans >= 3 else SWIZZLE_X,
165 SWIZZLE_W: xyzw[chans - 4] if chans >= 4 else SWIZZLE_X,
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dmbo.c315 struct wpa_mbo_non_pref_channel *chans = NULL, *tmp_chans; in wpas_mbo_update_non_pref_chan() local
343 tmp_chans = os_realloc_array(chans, size, in wpas_mbo_update_non_pref_chan()
344 sizeof(*chans)); in wpas_mbo_update_non_pref_chan()
350 chans = tmp_chans; in wpas_mbo_update_non_pref_chan()
353 chan = &chans[num]; in wpas_mbo_update_non_pref_chan()
378 if (wpa_non_pref_chan_is_eq(chan, &chans[i])) in wpas_mbo_update_non_pref_chan()
392 if (chans) { in wpas_mbo_update_non_pref_chan()
393 qsort(chans, num, sizeof(struct wpa_mbo_non_pref_channel), in wpas_mbo_update_non_pref_chan()
399 wpa_s->non_pref_chan = chans; in wpas_mbo_update_non_pref_chan()
406 os_free(chans); in wpas_mbo_update_non_pref_chan()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmbo.c345 struct wpa_mbo_non_pref_channel *chans = NULL, *tmp_chans; in wpas_mbo_update_non_pref_chan() local
373 tmp_chans = os_realloc_array(chans, size, in wpas_mbo_update_non_pref_chan()
374 sizeof(*chans)); in wpas_mbo_update_non_pref_chan()
380 chans = tmp_chans; in wpas_mbo_update_non_pref_chan()
383 chan = &chans[num]; in wpas_mbo_update_non_pref_chan()
408 if (wpa_non_pref_chan_is_eq(chan, &chans[i])) in wpas_mbo_update_non_pref_chan()
422 if (chans) { in wpas_mbo_update_non_pref_chan()
423 qsort(chans, num, sizeof(struct wpa_mbo_non_pref_channel), in wpas_mbo_update_non_pref_chan()
429 wpa_s->non_pref_chan = chans; in wpas_mbo_update_non_pref_chan()
436 os_free(chans); in wpas_mbo_update_non_pref_chan()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
Dp2p_utils.c384 int p2p_channel_select(struct p2p_channels *chans, const int *classes, in p2p_channel_select() argument
390 for (i = 0; i < chans->reg_classes; i++) { in p2p_channel_select()
391 struct p2p_reg_class *c = &chans->reg_class[i]; in p2p_channel_select()
415 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class, in p2p_channel_random_social() argument
429 if (p2p_channels_includes(chans, 81, 1) || in p2p_channel_random_social()
433 if (p2p_channels_includes(chans, 81, 6) || in p2p_channel_random_social()
437 if (p2p_channels_includes(chans, 81, 11) || in p2p_channel_random_social()
443 if (p2p_channels_includes(chans, 180, 2)) in p2p_channel_random_social()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
Dp2p_utils.c402 int p2p_channel_select(struct p2p_channels *chans, const int *classes, in p2p_channel_select() argument
408 for (i = 0; i < chans->reg_classes; i++) { in p2p_channel_select()
409 struct p2p_reg_class *c = &chans->reg_class[i]; in p2p_channel_select()
433 int p2p_channel_random_social(struct p2p_channels *chans, u8 *op_class, in p2p_channel_random_social() argument
447 if (p2p_channels_includes(chans, 81, 1) || in p2p_channel_random_social()
451 if (p2p_channels_includes(chans, 81, 6) || in p2p_channel_random_social()
455 if (p2p_channels_includes(chans, 81, 11) || in p2p_channel_random_social()
461 if (p2p_channels_includes(chans, 180, 2)) in p2p_channel_random_social()
/third_party/ffmpeg/libavcodec/
Daacenc.c257 static void adjust_frame_information(ChannelElement *cpe, int chans) in adjust_frame_information() argument
262 for (ch = 0; ch < chans; ch++) { in adjust_frame_information()
290 if (chans > 1 && cpe->common_window) { in adjust_frame_information()
565 int i, its, ch, w, chans, tag, start_ch, ret, frame_bits; in aac_encode_frame() local
591 chans = tag == TYPE_CPE ? 2 : 1; in aac_encode_frame()
593 for (ch = 0; ch < chans; ch++) { in aac_encode_frame()
680 start_ch += chans; in aac_encode_frame()
697 chans = tag == TYPE_CPE ? 2 : 1; in aac_encode_frame()
704 for (ch = 0; ch < chans; ch++) { in aac_encode_frame()
723 s->psy.bitres.alloc /= chans; in aac_encode_frame()
[all …]
Daacenc_ltp.c55 int i, ch, tag, chans, cur_channel, start_ch = 0; in ff_aac_ltp_insert_new_frame() local
61 chans = tag == TYPE_CPE ? 2 : 1; in ff_aac_ltp_insert_new_frame()
62 for (ch = 0; ch < chans; ch++) { in ff_aac_ltp_insert_new_frame()
71 start_ch += chans; in ff_aac_ltp_insert_new_frame()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_bc_dump.cpp34 static const char* chans = "xyzw01?_"; variable
139 s << chans[n.bc.sel[k]]; in dump()
149 s << ((n.bc.comp_mask & (1 << k)) ? chans[k] : '_'); in dump()
247 s << chans[alu.dst_chan]; in print_dst()
369 s << "." << chans[src->chan]; in print_src()
493 s << chans[n.bc.dst_sel[k]]; in dump()
505 s << chans[n.bc.src_sel[k]]; in dump()
547 s << " O" << chans[k] << ":" << n.bc.offset[k]; in dump()
Dsb_valtable.cpp42 static const char * chans = "xyzw01?_"; variable
70 << chans[v.select.chan()]; in operator <<()
74 o << "C" << v.select.sel() << "." << chans[v.select.chan()]; in operator <<()
83 << chans[v.select.chan()]; in operator <<()
128 o << "@R" << g.sel() << "." << chans[g.chan()]; in operator <<()
/third_party/mesa3d/src/compiler/nir/
Dnir_format_convert.h371 nir_ssa_def *chans[3]; in nir_format_unpack_11f11f10f() local
372 chans[0] = nir_mask_shift(b, packed, 0x000007ff, 4); in nir_format_unpack_11f11f10f()
373 chans[1] = nir_mask_shift(b, packed, 0x003ff800, -7); in nir_format_unpack_11f11f10f()
374 chans[2] = nir_mask_shift(b, packed, 0xffc00000, -17); in nir_format_unpack_11f11f10f()
377 chans[i] = nir_unpack_half_2x16_split_x(b, chans[i]); in nir_format_unpack_11f11f10f()
379 return nir_vec(b, chans, 3); in nir_format_unpack_11f11f10f()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_storage_image.c240 unsigned chans; member
251 .chans = isl_format_get_num_channels(fmt), in get_format_info()
289 color = nir_format_unpack_sint(b, color, image.bits, image.chans); in convert_color_for_load()
291 color = nir_format_unpack_uint(b, color, image.bits, image.chans); in convert_color_for_load()
294 for (unsigned i = 1; i < image.chans; i++) in convert_color_for_load()
460 color = nir_trim_vector(b, color, image.chans); in convert_color_for_store()
504 color = nir_format_pack_uint(b, color, image.bits, image.chans); in convert_color_for_store()
507 for (unsigned i = 1; i < image.chans; i++) in convert_color_for_store()
Dbrw_schedule_instructions.cpp122 int chans = 8; in set_latency_gfx4() local
127 this->latency = 1 * chans * math_latency; in set_latency_gfx4()
130 this->latency = 2 * chans * math_latency; in set_latency_gfx4()
136 this->latency = 3 * chans * math_latency; in set_latency_gfx4()
141 this->latency = 4 * chans * math_latency; in set_latency_gfx4()
144 this->latency = 8 * chans * math_latency; in set_latency_gfx4()
149 this->latency = 5 * chans * math_latency; in set_latency_gfx4()
/third_party/mesa3d/src/compiler/glsl/
Dopt_copy_propagation_elements.cpp413 int chans; in handle_rvalue() local
429 chans = swizzle->type->vector_elements; in handle_rvalue()
439 chans = deref_var->type->vector_elements; in handle_rvalue()
453 for (int c = 0; c < chans; c++) { in handle_rvalue()
468 for (int c = 1; c < chans; c++) { in handle_rvalue()
493 chans); in handle_rvalue()
/third_party/mesa3d/src/panfrost/bifrost/
Dbir.c116 unsigned chans = util_bitcount(ins->write_mask); in bi_count_write_registers() local
119 DIV_ROUND_UP(chans, 2) : chans; in bi_count_write_registers()
/third_party/mesa3d/src/mesa/program/
Dprog_to_nir.c218 nir_ssa_def *chans[4]; in ptn_get_src() local
222 chans[i] = nir_imm_float(b, 0.0); in ptn_get_src()
224 chans[i] = nir_imm_float(b, 1.0); in ptn_get_src()
234 chans[i] = &mov->dest.dest.ssa; in ptn_get_src()
238 chans[i] = nir_fneg(b, chans[i]); in ptn_get_src()
240 def = nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in ptn_get_src()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c538 LLVMValueRef packed, res = NULL, chans[4], rgba[4]; in lp_build_fetch_rgba_aos() local
566 chans[j] = LLVMBuildLShr(builder, packed, in lp_build_fetch_rgba_aos()
570 chans[j] = LLVMBuildAnd(builder, chans[j], in lp_build_fetch_rgba_aos()
576 chans[j] = scale_bits_up(gallivm, format_desc->channel[j].size, in lp_build_fetch_rgba_aos()
577 type.width, chans[j], conv_type); in lp_build_fetch_rgba_aos()
589 rgba[j] = lp_build_swizzle_soa_channel(&bld_conv, chans, swizzle); in lp_build_fetch_rgba_aos()
/third_party/astc-encoder/Utils/
Dastc_test_autoextract.cpp54 int pix(int x_pix, int y_idx, int x_idx, int chans, int p_idx) in pix() argument
56 return ((y_idx * x_pix) + x_idx) * chans + p_idx; in pix()
Dastc_test_autoextract_hdr.cpp54 int pix(int x_pix, int y_idx, int x_idx, int chans, int p_idx) in pix() argument
56 return ((y_idx * x_pix) + x_idx) * chans + p_idx; in pix()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c2015 LLVMValueRef chans; in convert_to_blend_type() local
2032 chans = LLVMBuildLShr(builder, in convert_to_blend_type()
2037 chans = LLVMBuildAnd(builder, in convert_to_blend_type()
2038 chans, in convert_to_blend_type()
2044 chans = scale_bits(gallivm, src_fmt->channel[j].size, in convert_to_blend_type()
2045 blend_type.width, chans, src_type); in convert_to_blend_type()
2049 chans = LLVMBuildShl(builder, in convert_to_blend_type()
2050 chans, in convert_to_blend_type()
2055 res = chans; in convert_to_blend_type()
2057 res = LLVMBuildOr(builder, res, chans, ""); in convert_to_blend_type()
[all …]
/third_party/mesa3d/src/intel/blorp/
Dblorp_blit.c904 nir_ssa_def *chans[4] = { }; in bit_cast_color() local
907 chans[c] = nir_imm_int(b, 0); in bit_cast_color()
913 chans[c] = nir_iand(b, nir_shift_imm(b, packed, -(int)chan_start_bit), in bit_cast_color()
917 chans[c] = nir_format_unorm_to_float(b, chans[c], &chan_bits); in bit_cast_color()
919 color = nir_vec(b, chans, 4); in bit_cast_color()
951 nir_ssa_def *chans[4] = { u, u, u, u }; in bit_cast_color() local
953 chans[i] = nir_channel(b, color, i); in bit_cast_color()
954 return nir_vec4(b, chans[0], chans[1], chans[2], chans[3]); in bit_cast_color()
/third_party/mesa3d/src/amd/vulkan/
Dradv_meta_blit2d.c447 nir_ssa_def *chans[3]; in build_nir_texel_fetch() local
448 chans[0] = nir_channel(b, tex_pos, 0); in build_nir_texel_fetch()
449 chans[1] = nir_channel(b, tex_pos, 1); in build_nir_texel_fetch()
450 chans[2] = layer; in build_nir_texel_fetch()
451 tex_pos_3d = nir_vec(b, chans, 3); in build_nir_texel_fetch()
/third_party/mesa3d/src/intel/isl/
Disl.c3312 enum isl_channel_select chans[4] = { in isl_swizzle_invert() enum
3324 chans[swizzle.a - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_ALPHA; in isl_swizzle_invert()
3326 chans[swizzle.b - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_BLUE; in isl_swizzle_invert()
3328 chans[swizzle.g - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_GREEN; in isl_swizzle_invert()
3330 chans[swizzle.r - ISL_CHANNEL_SELECT_RED] = ISL_CHANNEL_SELECT_RED; in isl_swizzle_invert()
3332 return (struct isl_swizzle) { chans[0], chans[1], chans[2], chans[3] }; in isl_swizzle_invert()

12