Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 25 of 1063) sorted by relevance

12345678910>>...43

/third_party/elfutils/src/
Dstack.c63 struct frames struct
65 int frames; member
180 struct frames *frames = (struct frames *) arg; in frame_callback() local
181 int nr = frames->frames; in frame_callback()
182 if (! dwfl_frame_pc (state, &frames->frame[nr].pc, in frame_callback()
183 &frames->frame[nr].isactivation)) in frame_callback()
186 frames->frames++; in frame_callback()
187 if (frames->frames == maxframes) in frame_callback()
190 if (frames->frames == frames->allocated) in frame_callback()
192 frames->allocated *= 2; in frame_callback()
[all …]
/third_party/alsa-lib/src/pcm/
Dpcm_plugin.c190 snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_plugin_rewind() argument
196 if ((snd_pcm_uframes_t)n < frames) in snd_pcm_plugin_rewind()
197 frames = n; in snd_pcm_plugin_rewind()
198 if (frames == 0) in snd_pcm_plugin_rewind()
201 sframes = frames; in snd_pcm_plugin_rewind()
214 snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_plugin_forward() argument
220 if ((snd_pcm_uframes_t)n < frames) in snd_pcm_plugin_forward()
221 frames = n; in snd_pcm_plugin_forward()
222 if (frames == 0) in snd_pcm_plugin_forward()
225 sframes = frames; in snd_pcm_plugin_forward()
[all …]
Dpcm_mmap.c32 void snd_pcm_mmap_appl_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_appl_backward() argument
35 appl_ptr -= frames; in snd_pcm_mmap_appl_backward()
41 void snd_pcm_mmap_appl_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_appl_forward() argument
44 appl_ptr += frames; in snd_pcm_mmap_appl_forward()
50 void snd_pcm_mmap_hw_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_hw_backward() argument
53 hw_ptr -= frames; in snd_pcm_mmap_hw_backward()
59 void snd_pcm_mmap_hw_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_hw_forward() argument
62 hw_ptr += frames; in snd_pcm_mmap_hw_forward()
82 snd_pcm_uframes_t frames = size; in snd_pcm_mmap_write_areas() local
85 __snd_pcm_mmap_begin(pcm, &pcm_areas, &pcm_offset, &frames); in snd_pcm_mmap_write_areas()
[all …]
Dpcm_share.c141 snd_pcm_sframes_t frames, safety_frames; in _snd_pcm_share_slave_forward() local
163 frames = slave_avail - avail; in _snd_pcm_share_slave_forward()
164 if (frames > max_frames) in _snd_pcm_share_slave_forward()
165 max_frames = frames; in _snd_pcm_share_slave_forward()
168 if (frames < min_frames) in _snd_pcm_share_slave_forward()
169 min_frames = frames; in _snd_pcm_share_slave_forward()
173 frames = min_frames; in _snd_pcm_share_slave_forward()
178 frames < safety_frames) { in _snd_pcm_share_slave_forward()
181 frames = max_frames; in _snd_pcm_share_slave_forward()
183 frames = safety_frames; in _snd_pcm_share_slave_forward()
[all …]
/third_party/ffmpeg/libavfilter/
Dvf_dedot.c53 AVFrame *frames[5]; member
90 int src_linesize = s->frames[2]->linesize[0] / div; \
92 int p0_linesize = s->frames[0]->linesize[0] / div; \
93 int p1_linesize = s->frames[1]->linesize[0] / div; \
94 int p3_linesize = s->frames[3]->linesize[0] / div; \
95 int p4_linesize = s->frames[4]->linesize[0] / div; \
99 type *p0 = (type *)s->frames[0]->data[0]; \
100 type *p1 = (type *)s->frames[1]->data[0]; \
101 type *p3 = (type *)s->frames[3]->data[0]; \
102 type *p4 = (type *)s->frames[4]->data[0]; \
[all …]
Daf_amultiply.c36 AVFrame *frames[2]; member
87 if (s->frames[i]) in activate()
91 ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &s->frames[i]); in activate()
97 if (s->frames[0] && s->frames[1]) { in activate()
102 plane_samples = FFALIGN(s->frames[0]->nb_samples, s->samples_align); in activate()
104 plane_samples = FFALIGN(s->frames[0]->nb_samples * s->channels, s->samples_align); in activate()
106 out = ff_get_audio_buffer(ctx->outputs[0], s->frames[0]->nb_samples); in activate()
110 out->pts = s->frames[0]->pts; in activate()
115 (const float *)s->frames[0]->extended_data[i], in activate()
116 (const float *)s->frames[1]->extended_data[i], in activate()
[all …]
Dvf_thumbnail.c46 struct thumb_frame *frames; ///< the n_frames frames member
67 s->frames = av_calloc(s->n_frames, sizeof(*s->frames)); in init()
68 if (!s->frames) { in init()
106 avg_hist[j] += (double)s->frames[i].histogram[j]; in get_best_frame()
112 sq_err = frame_sum_square_err(s->frames[i].histogram, avg_hist); in get_best_frame()
119 memset(s->frames[i].histogram, 0, sizeof(s->frames[i].histogram)); in get_best_frame()
121 av_frame_free(&s->frames[i].buf); in get_best_frame()
126 picref = s->frames[best_frame_idx].buf; in get_best_frame()
130 s->frames[best_frame_idx].buf = NULL; in get_best_frame()
141 int *hist = s->frames[s->n].histogram; in filter_frame()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dgstvideotimecode.c84 if (tc->frames >= fr && (tc->config.fps_n != 0 || tc->config.fps_d != 1)) in gst_video_time_code_is_valid()
109 tc->minutes % 10 && tc->seconds == 0 && tc->frames < fr / 15) { in gst_video_time_code_is_valid()
153 tc->seconds, sep, tc->frames); in gst_video_time_code_to_string()
189 gst_util_fraction_to_double (tc->frames * tc->config.fps_d, tc->config.fps_n, in gst_video_time_code_to_date_time()
259 guint64 frames; in gst_video_time_code_init_from_date_time_full() local
273 frames = in gst_video_time_code_init_from_date_time_full()
276 if (G_UNLIKELY (((frames == fps_n) && (fps_d == 1)) || in gst_video_time_code_init_from_date_time_full()
277 ((frames == fps_n / 1000) && (fps_d == 1001)))) { in gst_video_time_code_init_from_date_time_full()
279 frames--; in gst_video_time_code_init_from_date_time_full()
285 g_date_time_get_second (dt), frames, field_count); in gst_video_time_code_init_from_date_time_full()
[all …]
/third_party/ffmpeg/libavcodec/
Daudio_frame_queue.c40 av_freep(&afq->frames); in ff_af_queue_close()
46 …AudioFrame *new = av_fast_realloc(afq->frames, &afq->frame_alloc, sizeof(*afq->frames)*(afq->frame… in ff_af_queue_add()
49 afq->frames = new; in ff_af_queue_add()
83 if (afq->frames->pts != AV_NOPTS_VALUE) in ff_af_queue_remove()
84 out_pts = afq->frames->pts; in ff_af_queue_remove()
92 int n= FFMIN(afq->frames[i].duration, nb_samples); in ff_af_queue_remove()
93 afq->frames[i].duration -= n; in ff_af_queue_remove()
96 if(afq->frames[i].pts != AV_NOPTS_VALUE) in ff_af_queue_remove()
97 afq->frames[i].pts += n; in ff_af_queue_remove()
100 i -= i && afq->frames[i-1].duration; in ff_af_queue_remove()
[all …]
Dmimic.c54 ThreadFrame frames [16]; member
112 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { in mimic_decode_end()
113 if (ctx->frames[i].f) in mimic_decode_end()
114 ff_thread_release_buffer(avctx, &ctx->frames[i]); in mimic_decode_end()
115 av_frame_free(&ctx->frames[i].f); in mimic_decode_end()
142 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { in mimic_decode_init()
143 ctx->frames[i].f = av_frame_alloc(); in mimic_decode_init()
144 if (!ctx->frames[i].f) in mimic_decode_init()
165 for (i = 0; i < FF_ARRAY_ELEMS(dst->frames); i++) { in mimic_decode_update_thread_context()
166 ff_thread_release_buffer(avctx, &dst->frames[i]); in mimic_decode_update_thread_context()
[all …]
/third_party/ffmpeg/libavformat/
Dape.c57 APEFrame *frames; member
134 ape_ctx->frames[i].pos, ape_ctx->frames[i].size, in ape_dumpinfo()
135 ape_ctx->frames[i].nblocks); in ape_dumpinfo()
253 ape->frames = av_malloc_array(ape->totalframes, sizeof(APEFrame)); in ape_read_header()
254 if(!ape->frames) in ape_read_header()
266 ape->frames[0].pos = ape->firstframe; in ape_read_header()
267 ape->frames[0].nblocks = ape->blocksperframe; in ape_read_header()
268 ape->frames[0].skip = 0; in ape_read_header()
272 ape->frames[i].pos = seektable_entry + ape->junklength; in ape_read_header()
273 ape->frames[i].nblocks = ape->blocksperframe; in ape_read_header()
[all …]
/third_party/alsa-utils/bat/
Dlatencytest.c34 static float sumaudio(struct bat *bat, short int *buffer, int frames) in sumaudio() argument
39 while (frames) { in sumaudio()
40 frames--; in sumaudio()
53 static void play_and_listen(struct bat *bat, void *buffer, int frames) in play_and_listen() argument
63 averageinput = (int) (sumaudio(bat, buffer, frames) / frames); in play_and_listen()
71 while (n < frames) { in play_and_listen()
82 if (bat->latency.samples > frames) { in play_and_listen()
130 bat->latency.samples += frames; in play_and_listen()
181 bat->frames = LATENCY_TEST_TIME_LIMIT * bat->rate; in roundtrip_latency_init()
185 int handleinput(struct bat *bat, void *buffer, int frames) in handleinput() argument
[all …]
Dsignal.c89 static int reorder(struct bat *bat, float *val, int frames) in reorder() argument
94 bytes = frames * bat->channels * sizeof(float); in reorder()
103 for (i = 0; i < frames; i++) in reorder()
106 new_buf[c * frames + i]; in reorder()
112 static int adjust_waveform(struct bat *bat, float *val, int frames, in adjust_waveform() argument
138 nsamples = channels * frames; in adjust_waveform()
146 int generate_sine_wave(struct bat *bat, int frames, void *buf) in generate_sine_wave() argument
153 nsamples = bat->channels * frames; in generate_sine_wave()
166 sin_generator_vfill(&sg[c], sinus_f + c * frames, frames); in generate_sine_wave()
170 err = reorder(bat, sinus_f, frames); in generate_sine_wave()
[all …]
Danalyze.c37 for (i = 0, sum = 0.0, average = 0.0; i < bat->frames; i++) in check_amplitude()
39 average = sum / bat->frames; in check_amplitude()
42 for (i = 0, sum = 0.0; i < bat->frames; i++) in check_amplitude()
44 amplitude = sum / bat->frames * M_PI / 2.0; in check_amplitude()
106 float hz = 1.0 / ((float) bat->frames / (float) bat->rate); in check()
109 int err = 0, N = bat->frames / 2; in check()
181 int err = -ENOMEM, N = bat->frames; in find_and_check_harmonics()
184 a->in = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics()
188 a->out = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics()
192 a->mag = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics()
[all …]
/third_party/flutter/skia/third_party/externals/wuffs/test/data/analysis/
Dgiflzw-emission-lengths.txt6 animated-red-blue.gif (all frames)
23 bricks-dither.gif (all frames)
40 bricks-gray.gif (all frames)
57 bricks-nodither.gif (all frames)
74 gifplayer-muybridge.gif (all frames)
93 harvesters.gif (all frames)
110 hat.gif (all frames)
127 hibiscus.primitive.gif (all frames)
144 hibiscus.regular.gif (all frames)
161 hippopotamus.interlaced.gif (all frames)
[all …]
/third_party/alsa-lib/test/
Dpcm_min.c15 snd_pcm_sframes_t frames; in main() local
36 frames = snd_pcm_writei(handle, buffer, sizeof(buffer)); in main()
37 if (frames < 0) in main()
38 frames = snd_pcm_recover(handle, frames, 0); in main()
39 if (frames < 0) { in main()
40 printf("snd_pcm_writei failed: %s\n", snd_strerror(frames)); in main()
43 if (frames > 0 && frames < (long)sizeof(buffer)) in main()
44 printf("Short write (expected %li, wrote %li)\n", (long)sizeof(buffer), frames); in main()
Daudio_time.c104 snd_pcm_sframes_t frames; in main() local
325 frames = snd_pcm_writei(handle_p, buffer_p, PERIOD); in main()
326 if (frames < 0) { in main()
327 printf("snd_pcm_writei failed: %s\n", snd_strerror(frames)); in main()
330 frame_count_p += frames; in main()
352 frames = snd_pcm_wait(handle_c, -1); in main()
353 if (frames < 0) { in main()
354 printf("snd_pcm_wait failed: %s\n", snd_strerror(frames)); in main()
358 frames = snd_pcm_readi(handle_c, buffer_c, PERIOD); in main()
359 if (frames < 0) { in main()
[all …]
/third_party/libsnd/tests/
Dpeak_chunk_test.c118 int k, frames, count ; in test_float_peak() local
126 sfinfo.frames = 0 ; in test_float_peak()
128 frames = BUFFER_LEN / sfinfo.channels ; in test_float_peak()
135 data [4 * (frames / 8) + 0] = (frames / 8) * 0.01 ; /* First channel */ in test_float_peak()
136 data [4 * (frames / 6) + 1] = (frames / 6) * 0.01 ; /* Second channel */ in test_float_peak()
137 data [4 * (frames / 4) + 2] = (frames / 4) * 0.01 ; /* Third channel */ in test_float_peak()
138 data [4 * (frames / 2) + 3] = (frames / 2) * 0.01 ; /* Fourth channel */ in test_float_peak()
163 if (sfinfo.frames != frames) in test_float_peak()
164 …e %d: Incorrect number of frames in file. (%d => %ld)\n", __LINE__, frames, (long) sfinfo.frames) ; in test_float_peak()
179 if (fabs (data [0] - (frames / 2) * 0.01) > 0.01) in test_float_peak()
[all …]
Dstring_test.c215 sfinfo.frames = 0 ; in string_start_end_test()
244 if (sfinfo.frames != BUFFER_LEN) in string_start_end_test()
245 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_end_test()
364 sfinfo.frames = 0 ; in string_start_test()
402 if (sfinfo.frames != BUFFER_LEN) in string_start_test()
403 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_test()
506 sfinfo.frames = 0 ; in string_multi_set_test()
566 sf_count_t frames ; in string_rdwr_test() local
574 frames = sfinfo.frames ; in string_rdwr_test()
579 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_rdwr_test()
[all …]
Dchannel_test.c86 exit_if_true (rsfinfo.frames == 0, in channel_test()
87 "\n\nLine %d : Frames in file %" PRId64 ".\n\n", __LINE__, rsfinfo.frames) ; in channel_test()
88 exit_if_true (wframes != rsfinfo.frames, in channel_test()
89 …n\nLine %d : Wrote %" PRId64 ", read %" PRId64 " frames.\n\n", __LINE__, wframes, rsfinfo.frames) ; in channel_test()
93 test_readf_float_or_die (file, 0, read_float, rsfinfo.frames, __LINE__) ; in channel_test()
94 compare_float_or_die (float_data, read_float, ch * rsfinfo.frames, __LINE__) ; in channel_test()
98 test_readf_short_or_die (file, 0, read_short, rsfinfo.frames, __LINE__) ; in channel_test()
103 maxdiff = max_diff (float_data, read_float, ch * rsfinfo.frames, &position) ; in channel_test()
108 test_readf_int_or_die (file, 0, read_int, rsfinfo.frames, __LINE__) ; in channel_test()
113 maxdiff = max_diff (float_data, read_float, ch * rsfinfo.frames, &position) ; in channel_test()
/third_party/gstreamer/gstplugins_good/ext/dv/
Dgstsmptetimecode.c57 time_code->frames = 99; in gst_smpte_time_code_from_frame_number()
76 time_code->frames = frame_number; in gst_smpte_time_code_from_frame_number()
83 time_code->frames = frame_number % 30; in gst_smpte_time_code_from_frame_number()
90 time_code->frames = frame_number % 25; in gst_smpte_time_code_from_frame_number()
102 time_code->frames = frame_number % 24; in gst_smpte_time_code_from_frame_number()
137 if (time_code->frames < 0) in gst_smpte_time_code_is_valid()
142 if (time_code->frames >= 30) in gst_smpte_time_code_is_valid()
144 if (time_code->frames >= 2 || time_code->seconds > 0) in gst_smpte_time_code_is_valid()
150 if (time_code->frames >= 25) in gst_smpte_time_code_is_valid()
154 if (time_code->frames >= 24) in gst_smpte_time_code_is_valid()
[all …]
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/
DREADME.md30 Note that the number of output frames generated for a given number of input frames can vary.
32 …Hz to 48000 Hz and using an input buffer with 940 frames. If you calculate the number of output fr…
36 …umber of frames. So the resampler will sometimes generate 1023 frames and sometimes 1024 frames. O…
38 You can either use a fixed number of input frames or a fixed number of output frames. The other fra…
40 ## Calling the Resampler with a fixed number of OUTPUT frames
42 …his example, suppose we have a fixed number of output frames and a variable number of input frames.
47 int numOutputFrames; // number of frames of output
63 ## Calling the Resampler with a fixed number of INPUT frames
65 …this example, suppose we have a fixed number of input frames and a variable number of output frame…
71 int numInputFrames; // number of frames of input
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/
DThread.cpp43 auto location = frames.back()->location; in onLocationUpdate()
67 if(frame == frames.back()) // ... or if we've reached the pause-at-frame in onLocationUpdate()
100 frames.push_back(frame); in enter()
117 frames.pop_back(); in exit()
127 auto &frame = *frames.back(); in update()
146 return *frames.back(); in frame()
153 out.reserve(frames.size()); in stack()
154 for(auto frame : frames) in stack()
164 return frames.size(); in depth()
200 pauseAtFrame = frames.back(); in stepOver()
[all …]
/third_party/python/Lib/test/
Daudiotests.py63 def check_file(self, testfile, nframes, frames): argument
69 self.assertEqual(f.readframes(nframes), frames)
74 f.writeframes(self.frames)
129 f.writeframes(self.frames)
132 self.check_file(TESTFN, self.nframes, self.frames)
137 f.writeframes(bytearray(self.frames))
140 self.check_file(TESTFN, self.nframes, self.frames)
145 f.writeframes(array.array('h', self.frames))
148 self.check_file(TESTFN, self.nframes, self.frames)
153 f.writeframes(memoryview(self.frames))
[all …]
/third_party/ffmpeg/tests/
Dtiny_ssim.c163 static void print_results(uint64_t ssd[3], double ssim[3], int frames, int w, int h) in print_results() argument
166 ssd_to_psnr( ssd[0], (uint64_t)frames*w*h ), in print_results()
167 ssd_to_psnr( ssd[1], (uint64_t)frames*w*h/4 ), in print_results()
168 ssd_to_psnr( ssd[2], (uint64_t)frames*w*h/4 ), in print_results()
169 ssd_to_psnr( ssd[0] + ssd[1] + ssd[2], (uint64_t)frames*w*h*3/2 ) ); in print_results()
171 ssim[0] / frames, in print_results()
172 ssim[1] / frames, in print_results()
173 ssim[2] / frames, in print_results()
174 (ssim[0]*4 + ssim[1] + ssim[2]) / (frames*6), in print_results()
175 ssim_db(ssim[0] * 4 + ssim[1] + ssim[2], frames*6)); in print_results()
[all …]

12345678910>>...43