/third_party/ffmpeg/libavutil/ |
D | audio_fifo.c | 42 int sample_size; /**< size, in bytes, of one sample in a buffer */ member 75 af->sample_size = buf_size / nb_samples; in av_audio_fifo_alloc() 127 size = nb_samples * af->sample_size; in av_audio_fifo_write() 148 size = nb_samples * af->sample_size; in av_audio_fifo_peek() 171 offset *= af->sample_size; in av_audio_fifo_peek_at() 172 size = nb_samples * af->sample_size; in av_audio_fifo_peek_at() 191 size = nb_samples * af->sample_size; in av_audio_fifo_read() 210 size = nb_samples * af->sample_size; in av_audio_fifo_drain()
|
D | samplefmt.c | 123 int sample_size = av_get_bytes_per_sample(sample_fmt); in av_samples_get_buffer_size() local 127 if (!sample_size || nb_samples <= 0 || nb_channels <= 0) in av_samples_get_buffer_size() 140 (int64_t)nb_channels * nb_samples > (INT_MAX - (align * nb_channels)) / sample_size) in av_samples_get_buffer_size() 143 line_size = planar ? FFALIGN(nb_samples * sample_size, align) : in av_samples_get_buffer_size() 144 FFALIGN(nb_samples * sample_size * nb_channels, align); in av_samples_get_buffer_size()
|
/third_party/gstreamer/gstplugins_good/gst/auparse/ |
D | gstauparse.c | 272 auparse->sample_size = auparse->channels; in gst_au_parse_parse_header() 279 auparse->sample_size = auparse->channels * 2; in gst_au_parse_parse_header() 286 auparse->sample_size = auparse->channels * 3; in gst_au_parse_parse_header() 293 auparse->sample_size = auparse->channels * 4; in gst_au_parse_parse_header() 301 auparse->sample_size = auparse->channels * 4; in gst_au_parse_parse_header() 308 auparse->sample_size = auparse->channels * 8; in gst_au_parse_parse_header() 352 auparse->sample_size = auparse->channels; in gst_au_parse_parse_header() 369 auparse->sample_size = 0; in gst_au_parse_parse_header() 373 GST_DEBUG_OBJECT (auparse, "sample_size=%d", auparse->sample_size); in gst_au_parse_parse_header() 455 if (auparse->sample_size > 0) { in gst_au_parse_chain() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/ir/datasetops/source/ |
D | sbu_node.cc | 93 int64_t num_rows, sample_size; in GetDatasetSize() local 97 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 98 if (sample_size == -1) { in GetDatasetSize() 99 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 101 *dataset_size = sample_size; in GetDatasetSize()
|
D | cityscapes_node.cc | 111 int64_t num_rows, sample_size; in GetDatasetSize() local 115 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 116 if (sample_size == -1) { in GetDatasetSize() 117 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 120 *dataset_size = sample_size; in GetDatasetSize()
|
D | cifar10_node.cc | 94 int64_t num_rows, sample_size; in GetDatasetSize() local 98 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 100 if (sample_size == -1) { in GetDatasetSize() 101 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 104 *dataset_size = sample_size; in GetDatasetSize()
|
D | div2k_node.cc | 123 int64_t num_rows, sample_size; in GetDatasetSize() local 127 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 128 if (sample_size == -1) { in GetDatasetSize() 129 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 132 *dataset_size = sample_size; in GetDatasetSize()
|
D | cifar100_node.cc | 95 int64_t num_rows, sample_size; in GetDatasetSize() local 99 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 100 if (sample_size == -1) { in GetDatasetSize() 101 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 103 *dataset_size = sample_size; in GetDatasetSize()
|
D | mnist_node.cc | 89 int64_t num_rows, sample_size; in GetDatasetSize() local 93 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 94 if (sample_size == -1) { in GetDatasetSize() 95 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 97 *dataset_size = sample_size; in GetDatasetSize()
|
D | album_node.cc | 102 int64_t sample_size = -1; in GetDatasetSize() local 121 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 122 if (sample_size == -1) { in GetDatasetSize() 123 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 125 *dataset_size = sample_size; in GetDatasetSize()
|
D | image_folder_node.cc | 100 int64_t sample_size, num_rows; in GetDatasetSize() local 104 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 105 if (sample_size == -1) { in GetDatasetSize() 106 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 108 *dataset_size = sample_size; in GetDatasetSize()
|
D | flickr_node.cc | 123 int64_t num_rows, sample_size; in GetDatasetSize() local 127 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 128 if (sample_size == -1) { in GetDatasetSize() 129 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 132 *dataset_size = sample_size; in GetDatasetSize()
|
D | celeba_node.cc | 95 int64_t num_rows, sample_size; in GetDatasetSize() local 163 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 164 if (sample_size == -1) { in GetDatasetSize() 165 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 167 *dataset_size = sample_size; in GetDatasetSize()
|
D | manifest_node.cc | 128 int64_t num_rows, sample_size; in GetDatasetSize() local 136 sample_size = sampler_rt->CalculateNumSamples(num_rows); in GetDatasetSize() 137 if (sample_size == -1) { in GetDatasetSize() 138 RETURN_IF_NOT_OK(size_getter->DryRun(shared_from_this(), &sample_size)); in GetDatasetSize() 140 *dataset_size = sample_size; in GetDatasetSize()
|
/third_party/ffmpeg/libavcodec/ |
D | pcm.c | 95 int n, c, sample_size, v, ret; in pcm_encode_frame() local 105 sample_size = av_get_bits_per_sample(avctx->codec->id) / 8; in pcm_encode_frame() 109 if ((ret = ff_alloc_packet2(avctx, avpkt, n * sample_size, n * sample_size)) < 0) in pcm_encode_frame() 201 memcpy(dst, samples, n * sample_size); in pcm_encode_frame() 212 bytestream_put_buffer(&dst, src, n * sample_size); in pcm_encode_frame() 332 int sample_size, c, n, ret, samples_per_block; in pcm_decode_frame() local 336 sample_size = av_get_bits_per_sample(avctx->codec_id) / 8; in pcm_decode_frame() 343 sample_size = 5; in pcm_decode_frame() 346 if (sample_size == 0) { in pcm_decode_frame() 361 n = avctx->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->channels * av_get_bits_per_sample(ctx->par_in->codec_id) / 8; in init() 56 if (min_samples <= 0 || min_samples > INT_MAX / s->sample_size - 1) in init() 114 int data_size = nb_samples * s->sample_size; in rechunk_filter() 134 drain_packet(s->in_pkt, drain, drain / s->sample_size); in rechunk_filter() 161 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() 364 get_sbits_long(&alac->gb, alac->sample_size); in decode_element() 392 switch(alac->sample_size) { in decode_element() 507 alac->direct_output = alac->sample_size > 16; in allocate_buffers() 537 alac->sample_size = bytestream2_get_byteu(&gb); in alac_set_info() 566 switch (alac->sample_size) { in alac_decode_init() 573 default: avpriv_request_sample(avctx, "Sample depth %d", alac->sample_size); in alac_decode_init() 576 avctx->bits_per_raw_sample = alac->sample_size; in alac_decode_init()
|
/third_party/ffmpeg/libavformat/ |
D | segafilm.c | 43 unsigned int sample_size; member 227 film->sample_table[i].sample_size = AV_RB32(&scratch[4]); in film_read_header() 228 if (film->sample_table[i].sample_size > INT_MAX / 4) { in film_read_header() 237 audio_frame_counter += (film->sample_table[i].sample_size * 32 / in film_read_header() 240 audio_frame_counter += (film->sample_table[i].sample_size / in film_read_header() 251 film->sample_table[i].sample_size, 0, in film_read_header() 302 ret = av_get_packet(pb, pkt, sample->sample_size); in film_read_packet() 303 if (ret != sample->sample_size) in film_read_packet()
|
D | avidec.c | 50 int sample_size; /* size of one sample (or packet) member 135 if (ast->sample_size) in get_duration() 285 int max = ast->sample_size; in clean_index() 288 if (n != 1 || ast->sample_size == 0) in clean_index() 680 ast->sample_size = avio_rl32(pb); in avi_read_header() 681 ast->cum_len *= FFMAX(1, ast->sample_size); in avi_read_header() 683 ast->rate, ast->scale, ast->sample_size); in avi_read_header() 689 ast->sample_size = 0; in avi_read_header() 705 if (ast->sample_size < 0) { in avi_read_header() 709 ast->sample_size, in avi_read_header() [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/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/gstreamer/gstplugins_base/gst-libs/gst/rtp/ |
D | gstrtpbaseaudiopayload.c | 208 payload->sample_size = 0; in gst_rtp_base_audio_payload_init() 353 * rtpbaseaudiopayload, gint sample_size) in gst_rtp_base_audio_payload_set_sample_options() argument 359 sample_size * 8); in gst_rtp_base_audio_payload_set_sample_options() 371 * rtpbaseaudiopayload, gint sample_size) in gst_rtp_base_audio_payload_set_samplebits_options() argument 380 rtpbaseaudiopayload->sample_size = sample_size; in gst_rtp_base_audio_payload_set_samplebits_options() 383 fragment_size = sample_size; in gst_rtp_base_audio_payload_set_samplebits_options() 392 "Samplebits set to sample size %d bits", sample_size); in gst_rtp_base_audio_payload_set_samplebits_options() 798 if (G_LIKELY (payload->sample_size != 8)) in gst_rtp_base_audio_payload_sample_bytes_to_time() 799 rtptime = gst_util_uint64_scale_int (bytes, 8, payload->sample_size); in gst_rtp_base_audio_payload_sample_bytes_to_time() 812 if (G_LIKELY (payload->sample_size != 8)) in gst_rtp_base_audio_payload_sample_bytes_to_rtptime() [all …]
|
D | gstrtpbaseaudiopayload.h | 59 gint sample_size; member 98 gint sample_size); 102 gint sample_size);
|
/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()
|