/third_party/ffmpeg/libavutil/ |
D | audio_fifo.c | 45 int sample_size; /**< size, in bytes, of one sample in a buffer */ member 78 af->sample_size = buf_size / nb_samples; in av_audio_fifo_alloc() 134 size = nb_samples * af->sample_size; in av_audio_fifo_write() 164 offset *= af->sample_size; in av_audio_fifo_peek_at() 165 size = nb_samples * af->sample_size; in av_audio_fifo_peek_at() 184 size = nb_samples * af->sample_size; in av_audio_fifo_read() 203 size = nb_samples * af->sample_size; in av_audio_fifo_drain()
|
D | samplefmt.c | 125 int sample_size = av_get_bytes_per_sample(sample_fmt); in av_samples_get_buffer_size() local 129 if (!sample_size || nb_samples <= 0 || nb_channels <= 0) in av_samples_get_buffer_size() 142 (int64_t)nb_channels * nb_samples > (INT_MAX - (align * nb_channels)) / sample_size) in av_samples_get_buffer_size() 145 line_size = planar ? FFALIGN(nb_samples * sample_size, align) : in av_samples_get_buffer_size() 146 FFALIGN(nb_samples * sample_size * nb_channels, align); in av_samples_get_buffer_size()
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_dmix.c | 162 unsigned int chn, dchn, channels, sample_size; in mix_areas() local 169 sample_size = 2; in mix_areas() 174 sample_size = 4; in mix_areas() 178 sample_size = 4; in mix_areas() 182 sample_size = 3; in mix_areas() 186 sample_size = 1; in mix_areas() 198 (unsigned char *)dst_areas[0].addr + sample_size * dst_ofs * channels, in mix_areas() 199 (unsigned char *)src_areas[0].addr + sample_size * src_ofs * channels, in mix_areas() 201 sample_size, in mix_areas() 202 sample_size, in mix_areas() [all …]
|
/third_party/libsnd/src/ |
D | sd2.c | 74 int sample_size, sample_rate, channels ; member 207 rsrc.sample_size = psf->bytewidth ; in sd2_write_rsrc_fork() 214 snprintf (str_rsrc [0].value, sizeof (str_rsrc [0].value), "_%d", rsrc.sample_size) ; in sd2_write_rsrc_fork() 557 if (rsrc_id == 1000 && rsrc->sample_size == 0) in parse_str_rsrc() 558 rsrc->sample_size = strtol (value, NULL, 10) ; in parse_str_rsrc() 566 psf_log_printf (psf, " sample-size : %d\n", rsrc->sample_size) ; in parse_str_rsrc() 570 if (rsrc->sample_rate <= 4 && rsrc->sample_size > 4) in parse_str_rsrc() 575 rsrc->sample_rate = rsrc->sample_size ; in parse_str_rsrc() 576 rsrc->sample_size = temp ; in parse_str_rsrc() 591 psf->bytewidth = rsrc->sample_size ; in parse_str_rsrc() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | segafilm.c | 43 unsigned int sample_size; member 223 film->sample_table[i].sample_size = AV_RB32(&scratch[4]); in film_read_header() 224 if (film->sample_table[i].sample_size > INT_MAX / 4) in film_read_header() 231 audio_frame_counter += (film->sample_table[i].sample_size * 32 / in film_read_header() 234 audio_frame_counter += (film->sample_table[i].sample_size / in film_read_header() 245 film->sample_table[i].sample_size, 0, in film_read_header() 293 ret = av_get_packet(pb, pkt, sample->sample_size); in film_read_packet() 294 if (ret != sample->sample_size) in film_read_packet()
|
D | avidec.c | 53 int sample_size; /* size of one sample (or packet) member 139 if (ast->sample_size) in get_duration() 301 int max = ast->sample_size; in clean_index() 304 if (n != 1 || ast->sample_size == 0) in clean_index() 697 ast->sample_size = avio_rl32(pb); in avi_read_header() 698 ast->cum_len *= FFMAX(1, ast->sample_size); in avi_read_header() 700 ast->rate, ast->scale, ast->sample_size); in avi_read_header() 706 ast->sample_size = 0; in avi_read_header() 722 if (ast->sample_size < 0) { in avi_read_header() 726 ast->sample_size, in avi_read_header() [all …]
|
D | movenc.h | 95 long sample_size; member 285 uint8_t *sample_data, int sample_size);
|
/third_party/ffmpeg/libavcodec/ |
D | pcm.c | 99 int n, c, sample_size, v, ret; in pcm_encode_frame() local 109 sample_size = av_get_bits_per_sample(avctx->codec->id) / 8; in pcm_encode_frame() 113 if ((ret = ff_get_encode_buffer(avctx, avpkt, n * sample_size, 0)) < 0) in pcm_encode_frame() 205 memcpy(dst, samples, n * sample_size); in pcm_encode_frame() 216 bytestream_put_buffer(&dst, src, n * sample_size); in pcm_encode_frame() 336 int sample_size, c, n, ret, samples_per_block; in pcm_decode_frame() local 340 sample_size = av_get_bits_per_sample(avctx->codec_id) / 8; in pcm_decode_frame() 347 sample_size = 5; in pcm_decode_frame() 350 if (sample_size == 0) { in pcm_decode_frame() 365 n = channels * sample_size; in pcm_decode_frame() [all …]
|
D | pcm_rechunk_bsf.c | 35 int sample_size; member 49 s->sample_size = ctx->par_in->ch_layout.nb_channels * in init() 57 if (min_samples <= 0 || min_samples > INT_MAX / s->sample_size - 1) in init() 115 int data_size = nb_samples * s->sample_size; in rechunk_filter() 135 drain_packet(s->in_pkt, drain, drain / s->sample_size); in rechunk_filter() 162 nb_samples = s->out_pkt->size / s->sample_size; in rechunk_filter()
|
D | alac.c | 75 uint8_t sample_size; member 252 bps = alac->sample_size - alac->extra_bits + channels - 1; in decode_element() 363 get_sbits_long(&alac->gb, alac->sample_size); in decode_element() 391 switch(alac->sample_size) { in decode_element() 505 alac->direct_output = alac->sample_size > 16; in allocate_buffers() 535 alac->sample_size = bytestream2_get_byteu(&gb); in alac_set_info() 564 switch (alac->sample_size) { in alac_decode_init() 571 default: avpriv_request_sample(avctx, "Sample depth %d", alac->sample_size); in alac_decode_init() 574 avctx->bits_per_raw_sample = alac->sample_size; in alac_decode_init()
|
D | v210_template.c | 36 const int sample_size = 6 * s->RENAME(sample_factor); in RENAME() local 37 const int sample_w = avctx->width / sample_size; in RENAME() 41 w = sample_w * sample_size; in RENAME()
|
D | pcm-blurayenc.c | 112 int sample_size, samples, channel, num_dest_channels; in pcm_bluray_encode_frame() local 120 sample_size = (num_dest_channels * in pcm_bluray_encode_frame() 124 pkt_size = sample_size * samples + 4; in pcm_bluray_encode_frame()
|
D | pcm-bluray.c | 132 int sample_size, samples; in pcm_bluray_decode_frame() local 150 sample_size = (num_source_channels * in pcm_bluray_decode_frame() 152 samples = buf_size / sample_size; in pcm_bluray_decode_frame()
|
/third_party/alsa-utils/bat/ |
D | bat.c | 136 bat->sample_size = 2; in get_format() 141 bat->sample_size = 2; in get_format() 144 bat->sample_size = 1; in get_format() 147 bat->sample_size = 2; in get_format() 150 bat->sample_size = 3; in get_format() 153 bat->sample_size = 4; in get_format() 354 bat->sample_size = 2; in set_defaults() 617 bat->frame_size = bat->sample_size * bat->channels; in bat_init() 620 switch (bat->sample_size) { in bat_init() 639 bat->sample_size); in bat_init()
|
D | common.c | 37 bat->sample_size = fmt->sample_length / 8; in update_fmt_to_bat() 38 if (bat->sample_size > 4) { in update_fmt_to_bat() 40 bat->sample_size); in update_fmt_to_bat() 169 wav->format.sample_length = bat->sample_size * 8; in prepare_wav_info() 170 wav->format.blocks_align = bat->channels * bat->sample_size; in prepare_wav_info()
|
D | analyze.c | 47 percent = amplitude * 100 / ((1 << ((bat->sample_size << 3) - 1)) - 1); in check_amplitude() 410 for (i = 0; i < bat->sample_size; i++) { in reorder_data() 412 + ch * bat->sample_size + i]; in reorder_data() 454 bat->channels, bat->sample_size); in analyze_capture()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_spm.c | 347 uint32_t sample_size = 0; /* in bytes */ in ac_spm_get_sample_size() local 350 sample_size += spm_trace->num_muxsel_lines[s] * AC_SPM_MUXSEL_LINE_SIZE * 4; in ac_spm_get_sample_size() 353 return sample_size; in ac_spm_get_sample_size() 358 uint32_t sample_size = ac_spm_get_sample_size(spm_trace); in ac_spm_get_num_samples() local 370 if (num_lines_written % (sample_size / 32)) { in ac_spm_get_num_samples() 373 num_samples = num_lines_written / (sample_size / 32); in ac_spm_get_num_samples()
|
/third_party/ffmpeg/libavresample/ |
D | audio_data.c | 88 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_init() 89 if (!a->sample_size) { in ff_audio_data_init() 95 a->stride = a->sample_size * (a->is_planar ? 1 : channels); in ff_audio_data_init() 132 a->sample_size = av_get_bytes_per_sample(sample_fmt); in ff_audio_data_alloc() 133 if (!a->sample_size) { in ff_audio_data_alloc() 139 a->stride = a->sample_size * (a->is_planar ? 1 : channels); in ff_audio_data_alloc()
|
/third_party/alsa-utils/topology/ |
D | pre-process-dapm.c | 445 long periods, channels, sample_size; in tplg_update_buffer_auto_attr() local 514 sample_size = tplg_get_sample_size_from_format(format); in tplg_update_buffer_auto_attr() 515 if (sample_size < 0) { in tplg_update_buffer_auto_attr() 517 return sample_size; in tplg_update_buffer_auto_attr() 520 buffer_size = periods * sample_size * channels * frames; in tplg_update_buffer_auto_attr()
|
/third_party/python/Lib/ |
D | sndhdr.py | 109 sample_size = 1 # default 116 sample_size = 2 119 frame_size = sample_size * nchannels
|
/third_party/ffmpeg/libavdevice/ |
D | openal-dec.c | 41 int sample_size; member 138 ad->sample_format = sample_formats[ad->sample_size/8-1][ad->channels-1]; in read_header() 236 …{"sample_size", "set sample size", OFFSET(sample_size), AV_OPT_TYPE_INT, {.i64=16}, 8,…
|
D | oss.c | 105 s->sample_size = 2; in ff_oss_audio_open() 109 s->sample_size = 2; in ff_oss_audio_open()
|
D | oss.h | 33 int sample_size; /* in bytes ! */ member
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | pnmdec.c | 185 uint64_t stride, pixel_bytes, sample_size, depth; in ReadPNM() local 216 sample_size = (info.max_value > 255) ? 2 : 1; in ReadPNM() 255 uint32_t v = (sample_size == 2) ? 256u * in[2 * i + 0] + in[2 * i + 1] in ReadPNM()
|
/third_party/ffmpeg/libavutil/tests/ |
D | audio_fifo.c | 98 data_planes[i] = av_malloc_array(tot_elements, afifo->sample_size); in read_samples_from_audio_fifo() 118 offset_size = offset * afifo->sample_size; in write_samples_to_audio_fifo()
|