/third_party/ffmpeg/libavfilter/ |
H A D | vf_dedot.c | 53 AVFrame *frames[5]; member 83 int src_linesize = s->frames[2]->linesize[0] / div; \ 85 int p0_linesize = s->frames[0]->linesize[0] / div; \ 86 int p1_linesize = s->frames[1]->linesize[0] / div; \ 87 int p3_linesize = s->frames[3]->linesize[0] / div; \ 88 int p4_linesize = s->frames[4]->linesize[0] / div; \ 92 type *p0 = (type *)s->frames[0]->data[0]; \ 93 type *p1 = (type *)s->frames[1]->data[0]; \ 94 type *p3 = (type *)s->frames[3]->data[0]; \ 95 type *p4 = (type *)s->frames[ [all...] |
H A D | af_amultiply.c | 35 AVFrame *frames[2]; member 55 if (s->frames[i]) in activate() 59 ret = ff_inlink_consume_samples(ctx->inputs[i], nb_samples, nb_samples, &s->frames[i]); in activate() 65 if (s->frames[0] && s->frames[1]) { in activate() 70 plane_samples = FFALIGN(s->frames[0]->nb_samples, s->samples_align); in activate() 72 plane_samples = FFALIGN(s->frames[0]->nb_samples * s->channels, s->samples_align); in activate() 74 out = ff_get_audio_buffer(ctx->outputs[0], s->frames[0]->nb_samples); in activate() 78 out->pts = s->frames[0]->pts; in activate() 83 (const float *)s->frames[ in activate() [all...] |
H A D | vf_amplify.c | 50 AVFrame **frames; member 87 s->frames = av_calloc(s->nb_inputs, sizeof(*s->frames)); in init() 88 if (!s->frames) in init() 197 if (s->frames) { in uninit() 199 av_frame_free(&s->frames[i]); in uninit() 201 av_freep(&s->frames); in uninit() 213 s->frames[s->nb_frames] = in; in filter_frame() 217 av_frame_free(&s->frames[0]); in filter_frame() 218 memmove(&s->frames[ in filter_frame() [all...] |
H A D | vf_thumbnail.c | 45 int n_frames; ///< number of frames for analysis 46 struct thumb_frame *frames; ///< the n_frames frames member 57 { "n", "set the frames batch size", OFFSET(n_frames), AV_OPT_TYPE_INT, {.i64=100}, 2, INT_MAX, FLAGS }, 67 s->frames = av_calloc(s->n_frames, sizeof(*s->frames)); in init() 68 if (!s->frames) { in init() 70 "Allocation failure, try to lower the number of frames\n"); in init() 73 av_log(ctx, AV_LOG_VERBOSE, "batch size: %d frames\n", s->n_frames); in init() 103 // average histogram of the N frames in get_best_frame() [all...] |
/third_party/elfutils/src/ |
H A D | stack.c | 1 /* Unwinding of frames like gstack/pstack. 63 struct frames struct 65 int frames; member 96 /* Whether any frames have been shown at all. Determines exit status. */ 99 /* Program exit codes. All frames shown without any errors is GOOD. 100 Some frames shown with some non-fatal errors is an ERROR. A fatal 101 error or no frames shown at all is BAD. A command line USAGE exit 180 struct frames *frames = (struct frames *) ar in frame_callback() local 364 print_frames(struct frames *frames, pid_t tid, int dwflerr, const char *what) print_frames() argument 459 struct frames *frames = (struct frames *) thread_arg; thread_callback() local 705 struct frames frames; main() local [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_plugin.c | 190 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() 245 snd_pcm_uframes_t frames = size; snd_pcm_plugin_write_areas() local 302 snd_pcm_uframes_t frames = size; snd_pcm_plugin_read_areas() local 409 snd_pcm_uframes_t frames = size; snd_pcm_plugin_mmap_commit() local 474 snd_pcm_uframes_t frames = size; snd_pcm_plugin_sync_hw_ptr_capture() local [all...] |
H A D | pcm_mmap.c | 33 void snd_pcm_mmap_appl_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_appl_backward() argument 36 appl_ptr -= frames; in snd_pcm_mmap_appl_backward() 42 void snd_pcm_mmap_appl_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_appl_forward() argument 45 appl_ptr += frames; in snd_pcm_mmap_appl_forward() 51 void snd_pcm_mmap_hw_backward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_hw_backward() argument 54 hw_ptr -= frames; in snd_pcm_mmap_hw_backward() 60 void snd_pcm_mmap_hw_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_mmap_hw_forward() argument 63 hw_ptr += frames; in snd_pcm_mmap_hw_forward() 83 snd_pcm_uframes_t frames = size; in snd_pcm_mmap_write_areas() local 86 __snd_pcm_mmap_begin(pcm, &pcm_areas, &pcm_offset, &frames); in snd_pcm_mmap_write_areas() 115 snd_pcm_uframes_t frames = size; snd_pcm_mmap_read_areas() local 536 snd_pcm_uframes_t frames = size - xfer; snd_pcm_write_mmap() local 592 snd_pcm_uframes_t frames = size - xfer; snd_pcm_read_mmap() local [all...] |
H A D | pcm_plugin.h | 69 snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames); 70 snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames); 110 unsigned int channels, snd_pcm_uframes_t frames, 114 unsigned int channels, snd_pcm_uframes_t frames, 120 unsigned int channels, snd_pcm_uframes_t frames, 126 unsigned int channels, snd_pcm_uframes_t frames, 132 unsigned int channels, snd_pcm_uframes_t frames, 138 unsigned int channels, snd_pcm_uframes_t frames, 150 unsigned int channels, snd_pcm_uframes_t frames, 157 unsigned int channels, snd_pcm_uframes_t frames, [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | audio_frame_queue.c | 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() 40 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_count+1)); 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[ in ff_af_queue_remove() [all...] |
H A D | mimic.c | 56 ThreadFrame frames [16]; member 114 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { in mimic_decode_end() 115 if (ctx->frames[i].f) in mimic_decode_end() 116 ff_thread_release_ext_buffer(avctx, &ctx->frames[i]); in mimic_decode_end() 117 av_frame_free(&ctx->frames[i].f); in mimic_decode_end() 144 for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) { in mimic_decode_init() 145 ctx->frames[i].f = av_frame_alloc(); in mimic_decode_init() 146 if (!ctx->frames[i].f) in mimic_decode_init() 167 for (i = 0; i < FF_ARRAY_ELEMS(dst->frames); i++) { in mimic_decode_update_thread_context() 168 ff_thread_release_ext_buffer(avctx, &dst->frames[ in mimic_decode_update_thread_context() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | ape.c | 57 APEFrame *frames; member 132 ape_ctx->frames[i].pos, ape_ctx->frames[i].size, in ape_dumpinfo() 133 ape_ctx->frames[i].nblocks); in ape_dumpinfo() 238 av_log(s, AV_LOG_ERROR, "No frames in the file!\n"); in ape_read_header() 242 av_log(s, AV_LOG_ERROR, "Too many frames: %"PRIu32"\n", in ape_read_header() 248 "Number of seek entries is less than number of frames: %"SIZE_SPECIFIER" vs. %"PRIu32"\n", in ape_read_header() 252 ape->frames = av_malloc_array(ape->totalframes, sizeof(APEFrame)); in ape_read_header() 253 if(!ape->frames) in ape_read_header() 265 ape->frames[ in ape_read_header() [all...] |
/third_party/alsa-lib/test/ |
H A D | pcm_min.c | 15 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() [all...] |
H A D | audio_time.c | 107 snd_pcm_sframes_t frames; in main() local 328 frames = snd_pcm_writei(handle_p, buffer_p, PERIOD); in main() 329 if (frames < 0) { in main() 330 printf("snd_pcm_writei failed: %s\n", snd_strerror(frames)); in main() 333 frame_count_p += frames; in main() 355 frames = snd_pcm_wait(handle_c, -1); in main() 356 if (frames < 0) { in main() 357 printf("snd_pcm_wait failed: %s\n", snd_strerror(frames)); in main() 361 frames = snd_pcm_readi(handle_c, buffer_c, PERIOD); in main() 362 if (frames < in main() [all...] |
/third_party/alsa-utils/bat/ |
H A D | latencytest.c | 36 static float sumaudio(struct bat *bat, short int *buffer, int frames) in sumaudio() argument 41 while (frames) { in sumaudio() 42 frames--; in sumaudio() 55 static void play_and_listen(struct bat *bat, void *buffer, int frames) in play_and_listen() argument 65 averageinput = (int) (sumaudio(bat, buffer, frames) / frames); in play_and_listen() 73 while (n < frames) { in play_and_listen() 84 if (bat->latency.samples > frames) { in play_and_listen() 132 bat->latency.samples += frames; in play_and_listen() 183 bat->frames in roundtrip_latency_init() 187 handleinput(struct bat *bat, void *buffer, int frames) handleinput() argument 227 handleoutput(struct bat *bat, void *buffer, int bytes, int frames) handleoutput() argument [all...] |
H A D | signal.c | 91 static int reorder(struct bat *bat, float *val, int frames) in reorder() argument 96 bytes = frames * bat->channels * sizeof(float); in reorder() 105 for (i = 0; i < frames; i++) in reorder() 108 new_buf[c * frames + i]; in reorder() 114 static int adjust_waveform(struct bat *bat, float *val, int frames, in adjust_waveform() argument 140 nsamples = channels * frames; in adjust_waveform() 148 int generate_sine_wave(struct bat *bat, int frames, void *buf) in generate_sine_wave() argument 155 nsamples = bat->channels * frames; in generate_sine_wave() 168 sin_generator_vfill(&sg[c], sinus_f + c * frames, frames); in generate_sine_wave() [all...] |
H A D | analyze.c | 38 for (i = 0, sum = 0.0, average = 0.0; i < bat->frames; i++) in check_amplitude() 40 average = sum / bat->frames; in check_amplitude() 43 for (i = 0, sum = 0.0; i < bat->frames; i++) in check_amplitude() 45 amplitude = sum / bat->frames * M_PI / 2.0; in check_amplitude() 107 float hz = 1.0 / ((float) bat->frames / (float) bat->rate); in check() 110 int err = 0, N = bat->frames / 2; in check() 182 int err = -ENOMEM, N = bat->frames; in find_and_check_harmonics() 185 a->in = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics() 189 a->out = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics() 193 a->mag = (float *) fftwf_malloc(sizeof(float) * bat->frames); in find_and_check_harmonics() [all...] |
/third_party/libsnd/tests/ |
H A D | peak_chunk_test.c | 118 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 / in test_float_peak() [all...] |
H A D | string_test.c | 228 sfinfo.frames = 0 ; in string_start_end_test() 257 if (sfinfo.frames != BUFFER_LEN) in string_start_end_test() 258 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_end_test() 378 sfinfo.frames = 0 ; in string_start_test() 423 if (sfinfo.frames != BUFFER_LEN) in string_start_test() 424 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_test() 563 sfinfo.frames = 0 ; in string_multi_set_test() 623 sf_count_t frames ; in string_rdwr_test() local 632 frames = sfinfo.frames ; in string_rdwr_test() 676 sf_count_t frames = BUFFER_LEN ; string_short_rdwr_test() local 787 sf_count_t frames ; string_rdwr_grow_test() local 845 sf_count_t frames ; string_header_update() local [all...] |
H A D | channel_test.c | 86 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() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/Debug/ |
H A D | Thread.cpp | 43 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 in stepOver() [all...] |
/third_party/python/Lib/test/ |
H A D | audiotests.py | 63 def check_file(self, testfile, nframes, frames): 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/ |
H A D | tiny_ssim.c | 162 static void print_results(uint64_t ssd[3], double ssim[3], int frames, int w, int h) in print_results() argument 165 ssd_to_psnr( ssd[0], (uint64_t)frames*w*h ), in print_results() 166 ssd_to_psnr( ssd[1], (uint64_t)frames*w*h/4 ), in print_results() 167 ssd_to_psnr( ssd[2], (uint64_t)frames*w*h/4 ), in print_results() 168 ssd_to_psnr( ssd[0] + ssd[1] + ssd[2], (uint64_t)frames*w*h*3/2 ) ); in print_results() 170 ssim[0] / frames, in print_results() 171 ssim[1] / frames, in print_results() 172 ssim[2] / frames, in print_results() 173 (ssim[0]*4 + ssim[1] + ssim[2]) / (frames*6), in print_results() 174 ssim_db(ssim[0] * 4 + ssim[1] + ssim[2], frames* in print_results() 185 int frames, seek; main() local [all...] |
/third_party/lame/frontend/ |
H A D | brhist.c | 135 brhist_disp_line(int i, int br_hist_TOT, int br_hist_LR, int full, int frames) in brhist_disp_line() argument 140 int res = digits(frames) + 3 + 4 + 1; in brhist_disp_line() 143 /* some problems when br_hist_TOT \approx br_hist_LR: You can't see that there are still MS frames */ in brhist_disp_line() 151 sprintf(brppt, " [%*i]", digits(frames), br_hist_TOT); in brhist_disp_line() 171 progress_line(const lame_global_flags * gf, int full, int frames) in progress_line() argument 181 if (full < frames) { in progress_line() 182 full = frames; in progress_line() 185 time_in_sec = (float)(full - frames); in progress_line() 203 /* some problems when br_hist_TOT \approx br_hist_LR: You can't see that there are still MS frames */ in progress_line() 205 barlen_COD = (frames * (Console_I in progress_line() 310 int frames; /* total number of encoded frames */ brhist_disp() local [all...] |
/third_party/node/test/fixtures/wpt/dom/events/scrolling/ |
H A D | scroll_support.js | 17 // after MAX_FRAME animation frames. 20 function waitFor(condition, error_message = 'Reaches the maximum frames.') { 22 function tick(frames) { 23 // We requestAnimationFrame either for MAX_FRAM frames or until condition 25 if (frames >= MAX_FRAME) 30 requestAnimationFrame(tick.bind(this, frames + 1)); 54 function tick(frames) { 57 if (frames >= MAX_FRAME || frames - last_changed_frame > MAX_UNCHANGED_FRAMES) { 62 last_changed_frame = frames; [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | v8-stack-trace-impl.cc | 47 std::vector<std::shared_ptr<StackFrame>> frames(frameCount); in toFramesVector() 49 frames[i] = in toFramesVector() 52 return frames; in toFramesVector() 72 const std::vector<std::shared_ptr<StackFrame>>& frames, in buildInspectorObjectCommon() 76 if (asyncParent && frames.empty() && in buildInspectorObjectCommon() 83 for (const std::shared_ptr<StackFrame>& frame : frames) { in buildInspectorObjectCommon() 234 std::vector<std::shared_ptr<StackFrame>> frames; in create() local 236 frames = toFramesVector(debugger, v8StackTrace, maxStackSize); in create() 243 if (frames.empty() && !asyncParent && externalParent.IsInvalid()) in create() 246 std::move(frames), maxAsyncDept in create() 70 buildInspectorObjectCommon( V8Debugger* debugger, const std::vector<std::shared_ptr<StackFrame>>& frames, const String16& description, const std::shared_ptr<AsyncStackTrace>& asyncParent, const V8StackTraceId& externalParent, int maxAsyncDepth) buildInspectorObjectCommon() argument 269 V8StackTraceImpl( std::vector<std::shared_ptr<StackFrame>> frames, int maxAsyncDepth, std::shared_ptr<AsyncStackTrace> asyncParent, const V8StackTraceId& externalParent) V8StackTraceImpl() argument 380 const std::vector<std::shared_ptr<StackFrame>>& frames = m_parent->frames(); next() local 409 std::vector<std::shared_ptr<StackFrame>> frames; capture() local 438 AsyncStackTrace( const String16& description, std::vector<std::shared_ptr<StackFrame>> frames, std::shared_ptr<AsyncStackTrace> asyncParent, const V8StackTraceId& externalParent) AsyncStackTrace() argument [all...] |