/third_party/ffmpeg/libavcodec/arm/ |
H A D | mlpdsp_armv6.S | 51 .macro load_group1 size, channels, r0, r1, r2, r3, pointer_dead=0 53 ldrd \r0, \r1, [IN], #(\size + 8 - \channels) * 4 55 .if IDX1 > 4 || \channels==8 60 add IN, IN, #(4 + 8 - \channels) * 4 64 decr_modulo IDX1, \size, \channels 67 .macro load_group2 size, channels, r0, r1, r2, r3, pointer_dead=0 77 //A ldr \r3, [IN], #(\size - 1 + 8 - \channels) * 4 80 ldrd \r2, \r3, [IN], #(\size + 8 - \channels) * 4 84 decr_modulo IDX1, \size, \channels 87 .macro implement_pack inorder, channels, shif [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | cmyk.c | 57 free(cmyk->channels[0]); in cupsCMYKDelete() 77 const short **channels; /* Copy of channel LUTs */ in cupsCMYKDoBlack() local 93 channels = (const short **)cmyk->channels; in cupsCMYKDoBlack() 107 *output++ = channels[0][k]; in cupsCMYKDoBlack() 122 output[0] = channels[0][k]; in cupsCMYKDoBlack() 123 output[1] = channels[1][k]; in cupsCMYKDoBlack() 150 output[0] = channels[0][k]; in cupsCMYKDoBlack() 151 output[1] = channels[1][k]; in cupsCMYKDoBlack() 152 output[2] = channels[ in cupsCMYKDoBlack() 263 const short **channels; /* Copy of channel LUTs */ cupsCMYKDoCMYK() local 533 const short **channels; /* Copy of channel LUTs */ cupsCMYKDoGray() local 764 const short **channels; /* Copy of channel LUTs */ cupsCMYKDoRGB() local [all...] |
/third_party/ffmpeg/libavresample/x86/ |
H A D | audio_convert_init.c | 47 int len, int channels); 49 int len, int channels); 52 int len, int channels); 54 int len, int channels); 56 int len, int channels); 59 int len, int channels); 61 int len, int channels); 64 int len, int channels); 66 int len, int channels); 68 int len, int channels); [all...] |
/third_party/alsa-lib/test/ |
H A D | chmap.c | 22 " -c channels Channels\n" in usage() 45 v->map.channels); in query_chmaps() 52 static int setup_pcm(snd_pcm_t *pcm, int format, int channels, int rate) in setup_pcm() argument 68 if (channels > 0) { in setup_pcm() 69 if (snd_pcm_hw_params_set_channels(pcm, params, channels) < 0) { in setup_pcm() 70 printf("Cannot set channels %d\n", channels); in setup_pcm() 87 static int get_chmap(snd_pcm_t *pcm, int format, int channels, int rate) in get_chmap() argument 91 if (setup_pcm(pcm, format, channels, rate)) in get_chmap() 98 printf("Channels = %d\n", map->channels); in get_chmap() 104 set_chmap(snd_pcm_t *pcm, int format, int channels, int rate, int nargs, char **arg) set_chmap() argument 157 int channels = 0; main() local [all...] |
/third_party/skia/third_party/externals/libpng/contrib/tools/ |
H A D | cvtcolor.c | 53 int channels = 0; in main() local 92 ++channels; in main() 95 ++channels; in main() 98 ++channels; in main() 101 ++channels; in main() 108 int components = channels; in main() 114 if (components < channels) in main() 123 if ((channels & 1) == 0) in main() 125 double alpha = c[channels-1]; in main() 128 for (i=0; i<channels in main() [all...] |
/third_party/libsnd/src/ |
H A D | dither.c | 194 static void dither_short (const short *in, short *out, int frames, int channels) ; 195 static void dither_int (const int *in, int *out, int frames, int channels) ; 197 static void dither_float (const float *in, float *out, int frames, int channels) ; 198 static void dither_double (const double *in, double *out, int frames, int channels) ; 240 writecount /= psf->sf.channels ; in dither_write_short() 241 writecount *= psf->sf.channels ; in dither_write_short() 243 dither_short (ptr, (short*) pdither->buffer, writecount / psf->sf.channels, psf->sf.channels) ; in dither_write_short() 286 writecount /= psf->sf.channels ; in dither_write_int() 287 writecount *= psf->sf.channels ; in dither_write_int() 396 dither_short(const short *in, short *out, int frames, int channels) dither_short() argument 406 dither_int(const int *in, int *out, int frames, int channels) dither_int() argument 416 dither_float(const float *in, float *out, int frames, int channels) dither_float() argument 426 dither_double(const double *in, double *out, int frames, int channels) dither_double() argument [all...] |
/third_party/ffmpeg/libavcodec/x86/ |
H A D | flacdsp_init.c | 35 void ff_flac_decorrelate_ls_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 37 void ff_flac_decorrelate_rs_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 39 void ff_flac_decorrelate_ms_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 41 void ff_flac_decorrelate_indep2_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 43 void ff_flac_decorrelate_indep4_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 45 void ff_flac_decorrelate_indep6_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 47 void ff_flac_decorrelate_indep8_##fmt##_##opt(uint8_t **out, int32_t **in, int channels, \ 55 av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int channels, in ff_flacdsp_init_x86() argument 64 if (channels == 2) in ff_flacdsp_init_x86() 66 else if (channels in ff_flacdsp_init_x86() [all...] |
/third_party/libsnd/tests/ |
H A D | lossy_comp_test.c | 64 static void gen_signal_double (double *data, double scale, int channels, int datalen) ; 649 lcomp_test_short (const char *filename, int filetype, int channels, double margin) in lcomp_test_short() argument 659 datalen = BUFFER_SIZE / channels ; in lcomp_test_short() 664 gen_signal_double (orig_buffer.d, 32000.0, channels, (int) datalen) ; in lcomp_test_short() 665 for (k = 0 ; k < channels * datalen ; k++) in lcomp_test_short() 670 sfinfo.channels = channels ; in lcomp_test_short() 690 if (sfinfo.frames < datalen / channels) in lcomp_test_short() 700 if (sfinfo.channels != channels) in lcomp_test_short() 836 lcomp_test_int(const char *filename, int filetype, int channels, double margin) lcomp_test_int() argument 1034 lcomp_test_float(const char *filename, int filetype, int channels, double margin) lcomp_test_float() argument 1229 lcomp_test_double(const char *filename, int filetype, int channels, double margin) lcomp_test_double() argument 1425 sdlcomp_test_short(const char *filename, int filetype, int channels, double margin) sdlcomp_test_short() argument 1645 sdlcomp_test_int(const char *filename, int filetype, int channels, double margin) sdlcomp_test_int() argument 1869 sdlcomp_test_float(const char *filename, int filetype, int channels, double margin) sdlcomp_test_float() argument 2116 sdlcomp_test_double(const char *filename, int filetype, int channels, double margin) sdlcomp_test_double() argument 2360 read_raw_test(const char *filename, int filetype, int channels) read_raw_test() argument 2447 gen_signal_double(double *data, double scale, int channels, int datalen) gen_signal_double() argument [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | sndfile-util.c | 78 ss->channels = (uint8_t) sfi.channels; in pa_sndfile_read_sample_spec() 91 sfi->channels = (int) ss->channels; in pa_sndfile_write_sample_spec() 180 int *channels; in pa_sndfile_read_channel_map() local 192 channels = pa_xnew(int, sfi.channels); in pa_sndfile_read_channel_map() 193 if (!sf_command(sf, SFC_GET_CHANNEL_MAP_INFO, channels, sizeof(channels[0]) * sfi.channels)) { in pa_sndfile_read_channel_map() 281 int *channels; pa_sndfile_write_channel_map() local [all...] |
H A D | core-format.c | 45 pa_format_info_set_channels(format, ss->channels); in pa_format_info_from_sample_spec2() 48 if (map->channels != ss->channels) { in pa_format_info_from_sample_spec2() 97 r = pa_format_info_get_channels(f, &ss_local.channels); in pa_format_info_to_sample_spec2() 100 ss_local.channels = map_local.channels; in pa_format_info_to_sample_spec2() 102 ss_local.channels = fallback_ss->channels; in pa_format_info_to_sample_spec2() 106 pa_assert(pa_channels_valid(ss_local.channels)); in pa_format_info_to_sample_spec2() 108 if (r2 >= 0 && map_local.channels ! in pa_format_info_to_sample_spec2() [all...] |
H A D | svolume_c.c | 31 static void pa_volume_u8_c(uint8_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { in pa_volume_u8_c() argument 40 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_u8_c() 45 static void pa_volume_alaw_c(uint8_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { in pa_volume_alaw_c() argument 54 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_alaw_c() 59 static void pa_volume_ulaw_c(uint8_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { in pa_volume_ulaw_c() argument 68 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_ulaw_c() 73 static void pa_volume_s16ne_c(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { in pa_volume_s16ne_c() argument 84 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s16ne_c() 89 static void pa_volume_s16re_c(int16_t *samples, const int32_t *volumes, unsigned channels, unsigned length) { in pa_volume_s16re_c() argument 100 if (PA_UNLIKELY(++channel >= channels)) in pa_volume_s16re_c() 105 pa_volume_float32ne_c(float *samples, const float *volumes, unsigned channels, unsigned length) pa_volume_float32ne_c() argument 118 pa_volume_float32re_c(float *samples, const float *volumes, unsigned channels, unsigned length) pa_volume_float32re_c() argument 135 pa_volume_s32ne_c(int32_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s32ne_c() argument 153 pa_volume_s32re_c(int32_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s32re_c() argument 171 pa_volume_s24ne_c(uint8_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s24ne_c() argument 190 pa_volume_s24re_c(uint8_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s24re_c() argument 209 pa_volume_s24_32ne_c(uint32_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s24_32ne_c() argument 227 pa_volume_s24_32re_c(uint32_t *samples, const int32_t *volumes, unsigned channels, unsigned length) pa_volume_s24_32re_c() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/ |
H A D | p2p_utils.c | 90 for (i = 0; i < a->channels; i++) { in p2p_reg_class_intersect() 91 for (j = 0; j < b->channels; j++) { in p2p_reg_class_intersect() 94 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect() 95 res->channels++; in p2p_reg_class_intersect() 96 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS) in p2p_reg_class_intersect() 105 * @a: First set of supported channels 106 * @b: Second set of supported channels 107 * @res: Data structure for returning the intersection of support channels 109 * This function can be used to find a common set of supported channels. Both 110 * input channels set 257 p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class, u8 channel) p2p_channels_includes() argument 274 p2p_channels_includes_freq(const struct p2p_channels *channels, unsigned int freq) p2p_channels_includes_freq() argument 338 p2p_get_pref_freq(struct p2p_data *p2p, const struct p2p_channels *channels) p2p_get_pref_freq() argument 392 p2p_channel_pick_random(const u8 *channels, unsigned int num_channels) p2p_channel_pick_random() argument 477 p2p_channels_to_freqs(const struct p2p_channels *channels, int *freq_list, unsigned int max_len) p2p_channels_to_freqs() argument [all...] |
/third_party/astc-encoder/Test/testlib/ |
H A D | image.py | 295 channels = rawcolor.split(",") 296 for i, channel in enumerate(channels): 298 channels[i] = float(channel[:-1]) / 100.0 300 channels[i] = float(channel) / 255.0 302 channels[i] = float(channel) 303 colors.append(channels) 307 channels = rawcolor.split(",") 308 for i, channel in enumerate(channels): 310 channels[i] = float(channel[:-1]) / 100.0 312 channels[ [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
H A D | p2p_utils.c | 87 for (i = 0; i < a->channels; i++) { in p2p_reg_class_intersect() 88 for (j = 0; j < b->channels; j++) { in p2p_reg_class_intersect() 91 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect() 92 res->channels++; in p2p_reg_class_intersect() 93 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS) in p2p_reg_class_intersect() 102 * @a: First set of supported channels 103 * @b: Second set of supported channels 104 * @res: Data structure for returning the intersection of support channels 106 * This function can be used to find a common set of supported channels. Both 107 * input channels set 254 p2p_channels_includes(const struct p2p_channels *channels, u8 reg_class, u8 channel) p2p_channels_includes() argument 271 p2p_channels_includes_freq(const struct p2p_channels *channels, unsigned int freq) p2p_channels_includes_freq() argument 320 p2p_get_pref_freq(struct p2p_data *p2p, const struct p2p_channels *channels) p2p_get_pref_freq() argument 374 p2p_channel_pick_random(const u8 *channels, unsigned int num_channels) p2p_channel_pick_random() argument 459 p2p_channels_to_freqs(const struct p2p_channels *channels, int *freq_list, unsigned int max_len) p2p_channels_to_freqs() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | av3a_parser.c | 57 uint16_t channels; member 69 uint16_t channels; member 218 int16_t channels = 0; in read_av3a_frame_header() local 271 channels = 1; in read_av3a_frame_header() 275 channels = 2; in read_av3a_frame_header() 279 channels = 4; in read_av3a_frame_header() 282 channels = 6; in read_av3a_frame_header() 286 channels = 8; in read_av3a_frame_header() 290 channels = 8; in read_av3a_frame_header() 293 channels in read_av3a_frame_header() [all...] |
H A D | atrac3plusdec.c | 98 int channels = avctx->ch_layout.nb_channels; in set_channel_params() local 102 switch (channels) { in set_channel_params() 154 "Unsupported channel count: %d!\n", channels); in set_channel_params() 158 ctx->channel_map = channel_map[channels - 1]; in set_channel_params() 199 ctx->ch_units[i].channels[ch].ch_num = ch; in atrac3p_decode_init() 200 ctx->ch_units[i].channels[ch].wnd_shape = &ctx->ch_units[i].channels[ch].wnd_shape_hist[0][0]; in atrac3p_decode_init() 201 ctx->ch_units[i].channels[ch].wnd_shape_prev = &ctx->ch_units[i].channels[ch].wnd_shape_hist[1][0]; in atrac3p_decode_init() 202 ctx->ch_units[i].channels[c in atrac3p_decode_init() [all...] |
H A D | libopusdec.c | 54 int ret, channel_map = 0, gain_db = 0, nb_streams, nb_coupled, channels; in libopus_decode_init() local 57 channels = avc->extradata_size >= 10 ? avc->extradata[9] : (avc->ch_layout.nb_channels == 1) ? 1 : 2; in libopus_decode_init() 58 if (channels <= 0) { in libopus_decode_init() 60 "Invalid number of channels %d, defaulting to stereo\n", channels); in libopus_decode_init() 61 channels = 2; in libopus_decode_init() 68 if (channels > 8) { in libopus_decode_init() 70 avc->ch_layout.nb_channels = channels; in libopus_decode_init() 72 av_channel_layout_copy(&avc->ch_layout, &ff_vorbis_ch_layouts[channels - 1]); in libopus_decode_init() 80 if (avc->extradata_size >= OPUS_HEAD_SIZE + 2 + channels) { in libopus_decode_init() [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | volume.c | 47 if (a->channels != b->channels) in pa_cvolume_equal() 50 for (i = 0; i < a->channels; i++) in pa_cvolume_equal() 62 a->channels = 0; in pa_cvolume_init() 70 pa_cvolume* pa_cvolume_set(pa_cvolume *a, unsigned channels, pa_volume_t v) { in pa_cvolume_set() argument 74 pa_assert(pa_channels_valid(channels)); in pa_cvolume_set() 76 a->channels = (uint8_t) channels; in pa_cvolume_set() 78 for (i = 0; i < a->channels; i++) in pa_cvolume_set() 93 for (c = 0; c < a->channels; in pa_cvolume_avg() [all...] |
H A D | channelmap.c | 169 m->channels = 0; in pa_channel_map_init() 182 m->channels = 1; in pa_channel_map_init_mono() 192 m->channels = 2; in pa_channel_map_init_stereo() 198 pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsigned channels, pa_channel_map_def_t def) { in pa_channel_map_init_auto() argument 200 pa_assert(pa_channels_valid(channels)); in pa_channel_map_init_auto() 205 m->channels = (uint8_t) channels; in pa_channel_map_init_auto() 212 switch (channels) { in pa_channel_map_init_auto() 256 switch (channels) { in pa_channel_map_init_auto() 291 for (i = 0; i < channels; in pa_channel_map_init_auto() 396 pa_channel_map_init_extend(pa_channel_map *m, unsigned channels, pa_channel_map_def_t def) pa_channel_map_init_extend() argument [all...] |
/third_party/ffmpeg/libswresample/aarch64/ |
H A D | audio_convert_init.c | 30 void swri_oldapi_conv_fltp_to_s16_2ch_neon(int16_t *dst, float *const *src, int len, int channels); 31 void swri_oldapi_conv_fltp_to_s16_nch_neon(int16_t *dst, float *const *src, int len, int channels); 42 int channels; in conv_fltp_to_s16_nch_neon() local 43 for(channels=3; channels<SWR_CH_MAX && src[channels]; channels++) in conv_fltp_to_s16_nch_neon() 45 swri_oldapi_conv_fltp_to_s16_nch_neon((int16_t*)*dst, (float *const*)src, len, channels); in conv_fltp_to_s16_nch_neon() 51 int channels) in swri_audio_convert_init_aarch64() 60 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels in swri_audio_convert_init_aarch64() 48 swri_audio_convert_init_aarch64(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels) swri_audio_convert_init_aarch64() argument [all...] |
/third_party/ffmpeg/libswresample/arm/ |
H A D | audio_convert_init.c | 30 void swri_oldapi_conv_fltp_to_s16_2ch_neon(int16_t *dst, float *const *src, int len, int channels); 31 void swri_oldapi_conv_fltp_to_s16_nch_neon(int16_t *dst, float *const *src, int len, int channels); 42 int channels; in conv_fltp_to_s16_nch_neon() local 43 for(channels=3; channels<SWR_CH_MAX && src[channels]; channels++) in conv_fltp_to_s16_nch_neon() 45 swri_oldapi_conv_fltp_to_s16_nch_neon((int16_t*)*dst, (float *const*)src, len, channels); in conv_fltp_to_s16_nch_neon() 51 int channels) in swri_audio_convert_init_arm() 60 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels in swri_audio_convert_init_arm() 48 swri_audio_convert_init_arm(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels) swri_audio_convert_init_arm() argument [all...] |
/third_party/ffmpeg/libavresample/ |
H A D | audio_data.c | 51 int ff_sample_fmt_is_planar(enum AVSampleFormat sample_fmt, int channels) in ff_sample_fmt_is_planar() argument 53 if (channels == 1) in ff_sample_fmt_is_planar() 59 int ff_audio_data_set_channels(AudioData *a, int channels) in ff_audio_data_set_channels() argument 61 if (channels < 1 || channels > AVRESAMPLE_MAX_CHANNELS || in ff_audio_data_set_channels() 62 channels > a->allocated_channels) in ff_audio_data_set_channels() 65 a->channels = channels; in ff_audio_data_set_channels() 66 a->planes = a->is_planar ? channels : 1; in ff_audio_data_set_channels() 74 int channels, in in ff_audio_data_init() 73 ff_audio_data_init(AudioData *a, uint8_t * const *src, int plane_size, int channels, int nb_samples, enum AVSampleFormat sample_fmt, int read_only, const char *name) ff_audio_data_init() argument 119 ff_audio_data_alloc(int channels, int nb_samples, enum AVSampleFormat sample_fmt, const char *name) ff_audio_data_alloc() argument [all...] |
H A D | audio_convert.c | 43 int len, int channels); 46 int channels); 54 int channels; member 71 enum AVSampleFormat in_fmt, int channels, in ff_audio_convert_set_func() 96 (!channels || ac->channels == channels)) { in ff_audio_convert_set_func() 112 (!channels || ac->channels == channels)) { in ff_audio_convert_set_func() 70 ff_audio_convert_set_func(AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int ptr_align, int samples_align, const char *descr, void *conv) ff_audio_convert_set_func() argument 260 ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map) ff_audio_convert_alloc() argument [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | cpu-mix-test.c | 54 int channels, in run_mix_test() 70 pa_assert(channels == 1 || channels == 2 || channels == 4); in run_mix_test() 77 nsamples = channels * (SAMPLES - (8 - align)); in run_mix_test() 92 m[0].volume.channels = channels; in run_mix_test() 93 for (i = 0; i < channels; i++) { in run_mix_test() 99 m[1].volume.channels = channels; in run_mix_test() 50 run_mix_test( pa_do_mix_func_t func, pa_do_mix_func_t orig_func, int align, int channels, bool correct, bool perf) run_mix_test() argument [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | mixer_widget.c | 305 static void change_volume_to_percent(struct control *control, int value, unsigned int channels) in change_volume_to_percent() argument 310 channels = LEFT; in change_volume_to_percent() 315 if (channels & LEFT) in change_volume_to_percent() 317 if (channels & RIGHT) in change_volume_to_percent() 330 static void change_volume_relative(struct control *control, int delta, unsigned int channels) in change_volume_relative() argument 338 channels = LEFT; in change_volume_relative() 346 if (channels & LEFT) in change_volume_relative() 348 if (channels & RIGHT) in change_volume_relative() 351 if (channels & LEFT) { in change_volume_relative() 355 if (channels in change_volume_relative() 361 change_control_to_percent(int value, unsigned int channels) change_control_to_percent() argument 375 change_control_relative(int delta, unsigned int channels) change_control_relative() argument 389 toggle_switches(unsigned int type, unsigned int channels) toggle_switches() argument 434 toggle_mute(unsigned int channels) toggle_mute() argument 439 toggle_capture(unsigned int channels) toggle_capture() argument 473 unsigned int channels = LEFT | RIGHT; on_mouse_key() local [all...] |