/third_party/alsa-utils/axfer/ |
D | xfer-libasound-irq-rw.c | 16 snd_pcm_state_t status, unsigned int *frame_count, 57 static int read_frames(struct libasound_state *state, unsigned int *frame_count, in read_frames() argument 67 if (*frame_count < avail_count) in read_frames() 68 avail_count = *frame_count; in read_frames() 102 *frame_count = consumed_count; in read_frames() 109 unsigned int *frame_count, in r_process_frames_blocking() argument 136 snd_pcm_uframes_t frame_count; in r_process_frames_blocking() local 138 &frame_count); in r_process_frames_blocking() 142 avail_count = (unsigned int)frame_count; in r_process_frames_blocking() 145 err = read_frames(state, frame_count, avail_count, mapper, cntrs); in r_process_frames_blocking() [all …]
|
D | mapper-multiple.c | 13 void (*align_frames)(void *frame_buf, unsigned int frame_count, 21 static void align_to_i(void *frame_buf, unsigned int frame_count, in align_to_i() argument 38 for (j = 0; j < frame_count; ++j) { in align_to_i() 48 static void align_from_i(void *frame_buf, unsigned int frame_count, in align_from_i() argument 64 for (j = 0; j < frame_count; ++j) { in align_from_i() 148 static int process_containers(char **src_bufs, unsigned int *frame_count, in process_containers() argument 162 err = container_context_process_frames(cntr, src, frame_count); in process_containers() 172 unsigned int *frame_count, in multiple_muxer_process_frames() argument 188 err = process_containers(src_bufs, frame_count, cntrs, cntr_count); in multiple_muxer_process_frames() 193 if (src_bufs != frame_buf && *frame_count > 0) { in multiple_muxer_process_frames() [all …]
|
D | mapper-single.c | 13 void (*align_frames)(void *frame_buf, unsigned int frame_count, 19 static void align_to_vector(void *frame_buf, unsigned int frame_count, in align_to_vector() argument 32 for (j = 0; j < frame_count; ++j) { in align_to_vector() 41 static void align_from_vector(void *frame_buf, unsigned int frame_count, in align_from_vector() argument 54 for (j = 0; j < frame_count; ++j) { in align_from_vector() 111 unsigned int *frame_count, in single_muxer_process_frames() argument 127 err = container_context_process_frames(cntrs, src, frame_count); in single_muxer_process_frames() 132 if (src != frame_buf && *frame_count > 0) in single_muxer_process_frames() 133 state->align_frames(frame_buf, *frame_count, src, in single_muxer_process_frames() 142 unsigned int *frame_count, in single_demuxer_process_frames() argument [all …]
|
D | xfer-libasound-irq-mmap.c | 71 unsigned int *frame_count, in irq_mmap_process_frames() argument 133 if (*frame_count < avail) in irq_mmap_process_frames() 134 avail = *frame_count; in irq_mmap_process_frames() 141 if (*frame_count < avail) in irq_mmap_process_frames() 142 avail_count = *frame_count; in irq_mmap_process_frames() 168 *frame_count = 0; in irq_mmap_process_frames() 179 *frame_count = consumed_count; in irq_mmap_process_frames() 185 unsigned *frame_count, in irq_mmap_r_process_frames() argument 228 err = irq_mmap_process_frames(state, frame_count, mapper, cntrs); in irq_mmap_r_process_frames() 234 *frame_count = 0; in irq_mmap_r_process_frames() [all …]
|
D | xfer-libasound-timer-mmap.c | 120 unsigned int *frame_count, in timer_mmap_process_frames() argument 154 if (*frame_count < planned_count) in timer_mmap_process_frames() 155 planned_count = *frame_count; in timer_mmap_process_frames() 200 *frame_count = planned_count; in timer_mmap_process_frames() 202 err = mapper_context_process_frames(mapper, frame_buf, frame_count, in timer_mmap_process_frames() 208 *frame_count); in timer_mmap_process_frames() 209 if (consumed_count != *frame_count) { in timer_mmap_process_frames() 214 *frame_count = consumed_count; in timer_mmap_process_frames() 245 unsigned *frame_count, in timer_mmap_r_process_frames() argument 276 err = timer_mmap_process_frames(state, frame_count, mapper, in timer_mmap_r_process_frames() [all …]
|
D | container.c | 286 uint64_t *frame_count) in container_context_pre_process() argument 296 assert(frame_count); in container_context_pre_process() 331 *frame_count = byte_count / bytes_per_frame; in container_context_pre_process() 349 *frame_count); in container_context_pre_process() 352 *frame_count); in container_context_pre_process() 361 unsigned int *frame_count) in container_context_process_frames() argument 372 assert(frame_count); in container_context_process_frames() 375 target_byte_count = *frame_count * bytes_per_frame; in container_context_process_frames() 397 *frame_count = 0; in container_context_process_frames() 405 *frame_count = target_byte_count / bytes_per_frame; in container_context_process_frames() [all …]
|
D | subcmd-transfer.c | 196 uint64_t frame_count; in capture_pre_process() local 216 &frame_count); in capture_pre_process() 221 *total_frame_count = frame_count; in capture_pre_process() 222 if (frame_count < *total_frame_count) in capture_pre_process() 223 *total_frame_count = frame_count; in capture_pre_process() 250 uint64_t frame_count; in playback_pre_process() local 279 &frame_count); in playback_pre_process() 295 *total_frame_count = frame_count; in playback_pre_process() 314 if (frame_count < *total_frame_count) in playback_pre_process() 315 *total_frame_count = frame_count; in playback_pre_process() [all …]
|
D | xfer-libasound.c | 574 snd_pcm_uframes_t frame_count; in configure_sw_params() local 578 frame_count = msec_for_avail_min * frames_per_second / 1000000; in configure_sw_params() 579 if (frame_count == 0 || frame_count > frames_per_buffer) { in configure_sw_params() 583 frame_count == 0 ? "small" : "large", in configure_sw_params() 584 msec_for_avail_min, frame_count, in configure_sw_params() 589 state->sw_params, frame_count); in configure_sw_params() 598 frame_count = msec_for_start_threshold * frames_per_second / in configure_sw_params() 600 if (frame_count == 0 || frame_count > frames_per_buffer) { in configure_sw_params() 604 frame_count == 0 ? "small" : "large", in configure_sw_params() 605 msec_for_start_threshold, frame_count, in configure_sw_params() [all …]
|
D | xfer-libffado.c | 36 unsigned int *frame_count, 175 unsigned int *frame_count, in r_process_frames() argument 187 if (*frame_count < avail_count) in r_process_frames() 188 avail_count = *frame_count; in r_process_frames() 232 *frame_count = consumed_count; in r_process_frames() 238 unsigned int *frame_count, in w_process_frames() argument 252 if (*frame_count < avail_count) in w_process_frames() 253 avail_count = *frame_count; in w_process_frames() 294 *frame_count = consumed_count; in w_process_frames() 475 unsigned int *frame_count, in xfer_libffado_process_frames() argument [all …]
|
D | mapper.c | 122 unsigned int *frame_count, in mapper_context_process_frames() argument 127 assert(frame_count); in mapper_context_process_frames() 128 assert(*frame_count <= mapper->frames_per_buffer); in mapper_context_process_frames() 131 return mapper->ops->process_frames(mapper, frame_buffer, frame_count, in mapper_context_process_frames()
|
/third_party/alsa-utils/axfer/test/ |
D | mapper-test.c | 43 void *frame_buffer, unsigned int frame_count, in test_demuxer() argument 59 total_frame_count = frame_count; in test_demuxer() 63 assert(total_frame_count == frame_count); in test_demuxer() 74 void *frame_buffer, unsigned int frame_count, in test_demux() argument 95 total_frame_count = frame_count; in test_demux() 117 frame_count, cntrs, cntr_count, trial->verbose); in test_demux() 121 assert(total_frame_count == frame_count); in test_demux() 134 void *frame_buffer, unsigned int frame_count, in test_muxer() argument 150 total_frame_count = frame_count; in test_muxer() 154 assert(total_frame_count == frame_count); in test_muxer() [all …]
|
D | container-test.c | 42 void *frame_buffer, unsigned int frame_count, in test_builder() argument 68 handled_frame_count = frame_count; in test_builder() 73 assert(handled_frame_count <= frame_count); in test_builder() 78 assert(total_frame_count == frame_count); in test_builder() 88 void *frame_buffer, unsigned int frame_count, in test_parser() argument 111 assert(total_frame_count == frame_count); in test_parser() 117 assert(handled_frame_count == frame_count); in test_parser() 130 unsigned int frame_count) in callback() argument 148 size = frame_count * samples_per_frame * in callback() 172 frames_per_second, frame_buffer, frame_count, in callback() [all …]
|
D | generator.c | 51 unsigned int frame_count) in allocate_buf() argument 57 return calloc(samples_per_frame * frame_count, bytes_per_sample); in allocate_buf() 63 unsigned int frame_count) in allocate_vector() argument 76 bufs[i] = calloc(frame_count, bytes_per_sample); in allocate_vector() 90 unsigned int samples_per_frame, unsigned int frame_count) in fill_buf() argument 96 samples_per_frame * frame_count; in fill_buf() 109 unsigned int samples_per_frame, unsigned int frame_count) in fill_vector() argument 117 size = frame_count * in fill_vector() 156 unsigned int frame_count); in test_frame_count() 159 unsigned int samples_per_frame, unsigned int frame_count); in test_frame_count()
|
/third_party/ffmpeg/libavcodec/ |
D | audio_frame_queue.c | 33 afq->frame_count = 0; in ff_af_queue_init() 38 if(afq->frame_count) in ff_af_queue_close() 39 … av_log(afq->avctx, AV_LOG_WARNING, "%d frames left in the queue on closing\n", afq->frame_count); in ff_af_queue_close() 46 … *new = av_fast_realloc(afq->frames, &afq->frame_alloc, sizeof(*afq->frames)*(afq->frame_count+1)); in ff_af_queue_add() 50 new += afq->frame_count; in ff_af_queue_add() 60 if(afq->frame_count && new[-1].pts >= new->pts) in ff_af_queue_add() 70 afq->frame_count++; in ff_af_queue_add() 82 if (afq->frame_count || afq->frame_alloc) { in ff_af_queue_remove() 86 if(!afq->frame_count) in ff_af_queue_remove() 91 for(i=0; nb_samples && i<afq->frame_count; i++){ in ff_af_queue_remove() [all …]
|
D | opus.c | 115 pkt->frame_count = 1; in ff_opus_parse_packet() 134 pkt->frame_count = 2; in ff_opus_parse_packet() 155 pkt->frame_count = 2; in ff_opus_parse_packet() 184 pkt->frame_count = (i ) & 0x3F; in ff_opus_parse_packet() 188 if (pkt->frame_count == 0 || pkt->frame_count > MAX_FRAMES) in ff_opus_parse_packet() 203 for (i = 0; i < pkt->frame_count - 1; i++) { in ff_opus_parse_packet() 223 for (i = 1; i < pkt->frame_count; i++) in ff_opus_parse_packet() 225 pkt->frame_size[pkt->frame_count-1] = frame_bytes - total_bytes; in ff_opus_parse_packet() 231 if (frame_bytes < 0 || pkt->frame_count * frame_bytes + padding > end - ptr) in ff_opus_parse_packet() 233 end = ptr + pkt->frame_count * frame_bytes + padding; in ff_opus_parse_packet() [all …]
|
/third_party/libsnd/include/ |
D | sndfile.hh | 304 SndfileHandle::seek (sf_count_t frame_count, int whence) in seek() argument 305 { return sf_seek (p->sf, frame_count, whence) ; } in seek() 369 SndfileHandle::readf (short *ptr, sf_count_t frame_count) in readf() argument 370 { return sf_readf_short (p->sf, ptr, frame_count) ; } in readf() 373 SndfileHandle::readf (int *ptr, sf_count_t frame_count) in readf() argument 374 { return sf_readf_int (p->sf, ptr, frame_count) ; } in readf() 377 SndfileHandle::readf (float *ptr, sf_count_t frame_count) in readf() argument 378 { return sf_readf_float (p->sf, ptr, frame_count) ; } in readf() 381 SndfileHandle::readf (double *ptr, sf_count_t frame_count) in readf() argument 382 { return sf_readf_double (p->sf, ptr, frame_count) ; } in readf() [all …]
|
/third_party/ffmpeg/libavformat/ |
D | rl2.c | 80 unsigned int frame_count; in rl2_read_header() local 101 frame_count = avio_rl32(pb); in rl2_read_header() 104 if(back_size > INT_MAX/2 || frame_count > INT_MAX / sizeof(uint32_t)) in rl2_read_header() 162 chunk_size = av_malloc(frame_count * sizeof(uint32_t)); in rl2_read_header() 163 audio_size = av_malloc(frame_count * sizeof(uint32_t)); in rl2_read_header() 164 chunk_offset = av_malloc(frame_count * sizeof(uint32_t)); in rl2_read_header() 174 for(i=0; i < frame_count;i++) { in rl2_read_header() 181 for(i=0; i < frame_count;i++) { in rl2_read_header() 188 for(i=0; i < frame_count;i++) { in rl2_read_header() 197 for(i=0;i<frame_count;i++){ in rl2_read_header()
|
D | webpenc.c | 29 int frame_count; member 97 if (w->frame_count > 1) // first non-empty packet in flush() 98 w->frame_count = 1; // so we don't count previous empty packets. in flush() 101 if (w->frame_count == 1) { in flush() 123 if (w->frame_count > trailer) { in flush() 164 ++w->frame_count; in webp_write_packet() 175 if ((w->frame_count > 1) && w->loop) { // Write loop count. in webp_write_trailer()
|
D | sierravmd.c | 52 unsigned int frame_count; member 181 vmd->frame_count = AV_RL16(&vmd->vmd_header[6]); in vmd_read_header() 188 raw_frame_table_size = vmd->frame_count * 6; in vmd_read_header() 189 if(vmd->frame_count * vmd->frames_per_block >= UINT_MAX / sizeof(vmd_frame) - sound_buffers){ in vmd_read_header() 194 …vmd->frame_table = av_malloc_array(vmd->frame_count * vmd->frames_per_block + sound_buffers, sizeo… in vmd_read_header() 206 for (i = 0; i < vmd->frame_count; i++) { in vmd_read_header() 263 vmd->frame_count = total_frames; in vmd_read_header() 281 if (vmd->current_frame >= vmd->frame_count) in vmd_read_packet()
|
/third_party/skia/modules/skottie/src/ |
D | SkottieTool.cpp | 309 auto frame_count = static_cast<int>(duration * fps); in main() local 311 if (frame_count > kMaxFrames) { in main() 312 frame_count = kMaxFrames; in main() 313 fps = frame_count / duration; in main() 317 SkDebugf("Rendering %f seconds (%d frames @%f fps).\n", duration, frame_count, fps); in main() 320 gMP4Frames.resize(frame_count); in main() 323 std::vector<double> frames_ms(frame_count); in main() 333 tg.batch(frame_count, [&](int i) { in main() 336 i = frame_count - 1 - i; in main() 385 starved_ms[0], starved_ms[frame_count/2], sum/frame_count, starved_ms.back(), sum, in main() [all …]
|
/third_party/pulseaudio/src/modules/bluetooth/ |
D | a2dp-codec-sbc.c | 489 size_t frame_count = (link_mtu - rtp_size) / sbc_info->frame_length; in get_block_size() local 492 if (frame_count > 15) in get_block_size() 493 frame_count = 15; in get_block_size() 495 return frame_count * sbc_info->codesize; in get_block_size() 525 uint8_t frame_count; in encode_buffer() local 530 frame_count = 0; in encode_buffer() 539 while (PA_LIKELY(to_encode > 0 && to_write > 0 && frame_count < 15)) { in encode_buffer() 570 frame_count++; in encode_buffer() 577 if (PA_UNLIKELY(frame_count == 0)) { in encode_buffer() 594 payload->frame_count = frame_count; in encode_buffer() [all …]
|
/third_party/skia/tests/ |
D | MultiPictureDocumentTest.cpp | 141 int frame_count = SkMultiPictureDocumentReadPageCount(writtenStream.get()); in DEF_TEST() local 142 REPORTER_ASSERT(reporter, frame_count == NUM_FRAMES, in DEF_TEST() 144 "MultiPictureDocument.", NUM_FRAMES, frame_count); in DEF_TEST() 147 std::vector<SkDocumentPage> frames(frame_count); in DEF_TEST() 149 SkMultiPictureDocumentRead(writtenStream.get(), frames.data(), frame_count, &dprocs), in DEF_TEST() 375 int frame_count = SkMultiPictureDocumentReadPageCount(writtenStream.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 376 REPORTER_ASSERT(reporter, frame_count == 1, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 378 "MultiPictureDocument.", frame_count); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 381 std::vector<SkDocumentPage> frames(frame_count); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 383 SkMultiPictureDocumentRead(writtenStream.get(), frames.data(), frame_count, &dprocs), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
/third_party/flutter/glfw/tests/ |
D | tearing.c | 120 unsigned long frame_count = 0; in main() local 199 frame_count++; in main() 204 frame_rate = frame_count / (current_time - last_time); in main() 205 frame_count = 0; in main()
|
/third_party/flutter/skia/tests/ |
D | MultiSkpTest.cpp | 161 int frame_count = SkMultiPictureDocumentReadPageCount(writtenStream.get()); in DEF_TEST() local 162 REPORTER_ASSERT(reporter, frame_count == NUM_FRAMES, in DEF_TEST() 164 "MultiPictureDocument.", NUM_FRAMES, frame_count); in DEF_TEST() 167 std::vector<SkDocumentPage> frames(frame_count); in DEF_TEST() 169 SkMultiPictureDocumentRead(writtenStream.get(), frames.data(), frame_count, &dprocs), in DEF_TEST()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtpsbcpay.c | 147 guint frame_count; in gst_rtp_sbc_pay_drain_buffers() local 164 frame_count = max_payload / sbcpay->frame_length; in gst_rtp_sbc_pay_drain_buffers() 165 payload_length = frame_count * sbcpay->frame_length; in gst_rtp_sbc_pay_drain_buffers() 181 payload_data[0] = frame_count & 0x0f; in gst_rtp_sbc_pay_drain_buffers() 190 GST_BUFFER_DURATION (outbuf) = frame_count * sbcpay->frame_duration; in gst_rtp_sbc_pay_drain_buffers() 194 sbcpay->last_timestamp += frame_count * sbcpay->frame_duration; in gst_rtp_sbc_pay_drain_buffers()
|