Home
last modified time | relevance | path

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

12

/third_party/gstreamer/gstplugins_bad/ext/dts/
Dgstdtsdec.c318 gint chans = 0; in gst_dtsdec_channels() local
322 chans = 1; in gst_dtsdec_channels()
332 chans = 2; in gst_dtsdec_channels()
339 chans = 3; in gst_dtsdec_channels()
347 chans = 3; in gst_dtsdec_channels()
355 chans = 4; in gst_dtsdec_channels()
364 chans = 4; in gst_dtsdec_channels()
373 chans = 5; in gst_dtsdec_channels()
383 chans = 6; in gst_dtsdec_channels()
399 pos[chans] = GST_AUDIO_CHANNEL_POSITION_LFE1; in gst_dtsdec_channels()
[all …]
/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.hh172 SndfileHandle::SndfileHandle (const char *path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
181 p->sfinfo.channels = chans ; in SndfileHandle()
194 SndfileHandle::SndfileHandle (std::string const & path, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
203 p->sfinfo.channels = chans ; in SndfileHandle()
216 SndfileHandle::SndfileHandle (int fd, bool close_desc, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
228 p->sfinfo.channels = chans ; in SndfileHandle()
241 …:SndfileHandle (SF_VIRTUAL_IO &sfvirtual, void *user_data, int mode, int fmt, int chans, int srate) in SndfileHandle() argument
250 p->sfinfo.channels = chans ; in SndfileHandle()
320 SndfileHandle::formatCheck (int fmt, int chans, int srate) in formatCheck() argument
325 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/gstreamer/gstplugins_good/gst/audioparsers/
Dgstac3parse.c307 gint skip, guint * frame_size, guint * rate, guint * chans, guint * blks, in gst_ac3_parse_frame_header_ac3() argument
362 if (chans) in gst_ac3_parse_frame_header_ac3()
363 *chans = acmod_chans[acmod] + lfe_on; in gst_ac3_parse_frame_header_ac3()
379 gint skip, guint * frame_size, guint * rate, guint * chans, guint * blks, in gst_ac3_parse_frame_header_eac3() argument
427 if (chans) in gst_ac3_parse_frame_header_eac3()
428 *chans = acmod_chans[acmod] + lfe_on; in gst_ac3_parse_frame_header_eac3()
444 guint * framesize, guint * rate, guint * chans, guint * blocks, in gst_ac3_parse_frame_header() argument
473 chans, blocks, sid); in gst_ac3_parse_frame_header()
479 chans, blocks, sid); in gst_ac3_parse_frame_header()
505 guint rate, chans; in gst_ac3_parse_handle_frame() local
[all …]
Dgstdcaparse.c188 guint chans, lfe, i; in gst_dca_parse_parse_header() local
234 chans = ((hdr[3] & 0x0F) << 2) | (hdr[4] >> 14); in gst_dca_parse_parse_header()
248 if (chans < G_N_ELEMENTS (channels_table)) in gst_dca_parse_parse_header()
249 *channels = channels_table[chans] + ((lfe) ? 1 : 0); in gst_dca_parse_parse_header()
328 guint size = 0, rate, chans, num_blocks, samples_per_block, depth; in gst_dca_parse_handle_frame() local
372 if (!gst_dca_parse_parse_header (dcaparse, &r, &size, &rate, &chans, &depth, in gst_dca_parse_handle_frame()
379 sync, size, rate, chans); in gst_dca_parse_handle_frame()
427 if (G_UNLIKELY (dcaparse->rate != rate || dcaparse->channels != chans in gst_dca_parse_handle_frame()
435 "rate", G_TYPE_INT, rate, "channels", G_TYPE_INT, chans, in gst_dca_parse_handle_frame()
443 dcaparse->channels = chans; in gst_dca_parse_handle_frame()
Dgstwavpackparse.c455 guint rate, chans, width, mask; in gst_wavpack_parse_handle_frame() local
545 chans = wpi.channels; in gst_wavpack_parse_handle_frame()
548 GST_LOG_OBJECT (parse, "rate: %u, width: %u, chans: %u", rate, width, chans); in gst_wavpack_parse_handle_frame()
557 if (G_UNLIKELY (wvparse->sample_rate != rate || wvparse->channels != chans in gst_wavpack_parse_handle_frame()
566 "channels", G_TYPE_INT, chans, in gst_wavpack_parse_handle_frame()
577 if (!gst_wavpack_get_channel_positions (chans, mask, pos)) { in gst_wavpack_parse_handle_frame()
580 gst_audio_channel_positions_to_mask (pos, chans, FALSE, &gmask); in gst_wavpack_parse_handle_frame()
592 wvparse->channels = chans; in gst_wavpack_parse_handle_frame()
/third_party/gstreamer/gstplugins_bad/ext/openal/
Dgstopenalsink.c359 } chans[] = { in gst_openal_helper_probe_caps() local
440 OPENAL_MAX_RATE, "channels", G_TYPE_INT, chans[i].count, NULL); in gst_openal_helper_probe_caps()
441 if (chans[i].count > 2) { in gst_openal_helper_probe_caps()
442 gst_audio_channel_positions_to_mask (chans[i].positions, in gst_openal_helper_probe_caps()
443 chans[i].count, FALSE, &channel_mask); in gst_openal_helper_probe_caps()
459 OPENAL_MAX_RATE, "channels", G_TYPE_INT, chans[i].count, NULL); in gst_openal_helper_probe_caps()
460 if (chans[i].count > 2) { in gst_openal_helper_probe_caps()
461 gst_audio_channel_positions_to_mask (chans[i].positions, chans[i].count, in gst_openal_helper_probe_caps()
476 OPENAL_MAX_RATE, "channels", G_TYPE_INT, chans[i].count, NULL); in gst_openal_helper_probe_caps()
477 if (chans[i].count > 2) { in gst_openal_helper_probe_caps()
[all …]
/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.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/ffmpeg/libavcodec/
Daacenc.c254 static void adjust_frame_information(ChannelElement *cpe, int chans) in adjust_frame_information() argument
259 for (ch = 0; ch < chans; ch++) { in adjust_frame_information()
287 if (chans > 1 && cpe->common_window) { in adjust_frame_information()
562 int i, its, ch, w, chans, tag, start_ch, ret, frame_bits; in aac_encode_frame() local
588 chans = tag == TYPE_CPE ? 2 : 1; in aac_encode_frame()
590 for (ch = 0; ch < chans; ch++) { in aac_encode_frame()
677 start_ch += chans; in aac_encode_frame()
694 chans = tag == TYPE_CPE ? 2 : 1; in aac_encode_frame()
701 for (ch = 0; ch < chans; ch++) { in aac_encode_frame()
720 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/gstreamer/gstplugins_good/sys/oss4/
Doss4-audio.c586 int ofmt, fmt, chans, rate, width; in gst_oss4_audio_set_format() local
595 chans = GST_AUDIO_INFO_CHANNELS (&spec->info); in gst_oss4_audio_set_format()
610 GST_LOG_OBJECT (obj, "setting channels: %d", chans); in gst_oss4_audio_set_format()
611 if (ioctl (fd, SNDCTL_DSP_CHANNELS, &chans) == -1) in gst_oss4_audio_set_format()
620 GST_DEBUG_OBJECT (obj, "effective channels : %d", chans); in gst_oss4_audio_set_format()
624 if (fmt != ofmt || chans != GST_AUDIO_INFO_CHANNELS (&spec->info) || in gst_oss4_audio_set_format()
676 ("DSP_CHANNELS(%d) failed: %s", chans, g_strerror (errno))); in gst_oss4_audio_set_format()
/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_channels(b, color, (1 << image.chans) - 1); 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/mesa/program/
Dprog_to_nir.c216 nir_ssa_def *chans[4]; in ptn_get_src() local
220 chans[i] = nir_imm_float(b, 0.0); in ptn_get_src()
222 chans[i] = nir_imm_float(b, 1.0); in ptn_get_src()
232 chans[i] = &mov->dest.dest.ssa; in ptn_get_src()
236 chans[i] = nir_fneg(b, chans[i]); in ptn_get_src()
238 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/gstreamer/gstplugins_bad/gst/dvbsubenc/libimagequant/
Dmediancut.c236 const float *chans = (const float *) &achv[b->ind + i].acolor; in prepare_sort() local
240 ((unsigned int) (chans[channels[0].chan] * in prepare_sort()
241 65535.0) << 16) | (unsigned int) ((chans[channels[2].chan] + in prepare_sort()
242 chans[channels[1].chan] / 2.0 + in prepare_sort()
243 chans[channels[3].chan] / 4.0) * 65535.0); in prepare_sort()

12