Home
last modified time | relevance | path

Searched refs:insamples (Results 1 – 13 of 13) sorted by relevance

/third_party/ffmpeg/libavfilter/
Daf_silencedetect.c48 void (*silencedetect)(struct SilenceDetectContext *s, AVFrame *insamples,
68 static void set_meta(AVFrame *insamples, int channel, const char *key, char *value) in set_meta() argument
76 av_dict_set(&insamples->metadata, key2, value, 0); in set_meta()
78 static av_always_inline void update(SilenceDetectContext *s, AVFrame *insamples, in update() argument
87 …s->start[channel] = insamples->pts + av_rescale_q(current_sample / s->channels + 1 - nb_samples_no… in update()
89 set_meta(insamples, s->mono ? channel + 1 : 0, "silence_start", in update()
99 … int64_t end_pts = insamples ? insamples->pts + av_rescale_q(current_sample / s->channels, in update()
103 if (insamples) { in update()
104 set_meta(insamples, s->mono ? channel + 1 : 0, "silence_end", in update()
106 set_meta(insamples, s->mono ? channel + 1 : 0, "silence_duration", in update()
[all …]
Davf_aphasemeter.c168 static inline void add_metadata(AVFrame *insamples, const char *key, char *value) in add_metadata() argument
173 av_dict_set(&insamples->metadata, buf, value, 0); in add_metadata()
176 static inline void update_mono_detection(AudioPhaseMeterContext *s, AVFrame *insamples, int mono_me… in update_mono_detection() argument
182 s->mono_idx[0] = insamples->pts; in update_mono_detection()
188 add_metadata(insamples, "mono_start", av_ts2timestr(s->mono_idx[0], &s->time_base)); in update_mono_detection()
194 s->mono_idx[1] = insamples ? insamples->pts : s->frame_end; in update_mono_detection()
197 if (insamples) { in update_mono_detection()
198 add_metadata(insamples, "mono_end", av_ts2timestr(s->mono_idx[1], &s->time_base)); in update_mono_detection()
199 … add_metadata(insamples, "mono_duration", av_ts2timestr(mono_duration, &s->time_base)); in update_mono_detection()
207 static inline void update_out_phase_detection(AudioPhaseMeterContext *s, AVFrame *insamples, int ou… in update_out_phase_detection() argument
[all …]
Davf_abitscope.c150 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
160 av_frame_free(&insamples); in filter_frame()
167 outpicref->pts = insamples->pts; in filter_frame()
170 switch (insamples->format) { in filter_frame()
173 uint16_t *in = (uint16_t *)insamples->extended_data[ch]; in filter_frame()
179 for (i = 0; i < insamples->nb_samples; i++) in filter_frame()
185 int ww = (s->counter[16 - b - 1] / (float)insamples->nb_samples) * (w - 1); in filter_frame()
196 uint32_t *in = (uint32_t *)insamples->extended_data[ch]; in filter_frame()
202 for (i = 0; i < insamples->nb_samples; i++) in filter_frame()
208 int ww = (s->counter[32 - b - 1] / (float)insamples->nb_samples) * (w - 1); in filter_frame()
[all …]
Davf_avectorscope.c234 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
252 av_frame_free(&insamples); in filter_frame()
260 s->outpicref->pts = insamples->pts; in filter_frame()
267 switch (insamples->format) { in filter_frame()
269 int16_t *samples = (int16_t *)insamples->data[0]; in filter_frame()
271 for (i = 0; i < insamples->nb_samples * 2; i++) { in filter_frame()
279 float *samples = (float *)insamples->data[0]; in filter_frame()
281 for (i = 0; i < insamples->nb_samples * 2; i++) { in filter_frame()
293 for (i = 0; i < insamples->nb_samples; i++) { in filter_frame()
294 int16_t *samples = (int16_t *)insamples->data[0] + i * 2; in filter_frame()
[all …]
Davf_showvolume.c318 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
332 av_frame_free(&insamples); in filter_frame()
337 s->out->pts = insamples->pts; in filter_frame()
357 float *src = (float *)insamples->extended_data[c]; in filter_frame()
361 s->meter(src, insamples->nb_samples, &s->max[c], s->rms_factor); in filter_frame()
378 …r *channel_name = av_get_channel_name(av_channel_layout_extract_channel(insamples->channel_layout,… in filter_frame()
392 float *src = (float *)insamples->extended_data[c]; in filter_frame()
396 s->meter(src, insamples->nb_samples, &s->max[c], s->rms_factor); in filter_frame()
414 …r *channel_name = av_get_channel_name(av_channel_layout_extract_channel(insamples->channel_layout,… in filter_frame()
428 av_frame_free(&insamples); in filter_frame()
Daf_pan.c395 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
398 int n = insamples->nb_samples; in filter_frame()
404 av_frame_free(&insamples); in filter_frame()
408 (void *)insamples->extended_data, n); in filter_frame()
409 av_frame_copy_props(outsamples, insamples); in filter_frame()
414 av_frame_free(&insamples); in filter_frame()
Davf_showwaves.c687 static int showwaves_filter_frame(AVFilterLink *inlink, AVFrame *insamples) in showwaves_filter_frame() argument
692 const int nb_samples = insamples->nb_samples; in showwaves_filter_frame()
694 int16_t *p = (int16_t *)insamples->data[0]; in showwaves_filter_frame()
704 ret = alloc_out_frame(showwaves, p, inlink, outlink, insamples); in showwaves_filter_frame()
734 av_frame_free(&insamples); in showwaves_filter_frame()
833 static int showwavespic_filter_frame(AVFilterLink *inlink, AVFrame *insamples) in showwavespic_filter_frame() argument
838 int16_t *p = (int16_t *)insamples->data[0]; in showwavespic_filter_frame()
844 ret = alloc_out_frame(showwaves, p, inlink, outlink, insamples); in showwavespic_filter_frame()
854 f->frame = insamples; in showwavespic_filter_frame()
863 showwaves->total_samples += insamples->nb_samples; in showwavespic_filter_frame()
[all …]
Df_ebur128.c580 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
586 const int nb_samples = insamples->nb_samples; in filter_frame()
587 const double *samples = (double *)insamples->data[0]; in filter_frame()
594 (const uint8_t **)insamples->data, nb_samples); in filter_frame()
671 const int64_t pts = insamples->pts + in filter_frame()
833 av_dict_set(&insamples->metadata, name, metabuf, 0); \ in filter_frame()
886 return ff_filter_frame(ctx->outputs[ebur128->do_video], insamples); in filter_frame()
Davf_showcqt.c1481 static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) in filter_frame() argument
1490 if (!insamples) { in filter_frame()
1509 remaining = insamples->nb_samples; in filter_frame()
1510 audio_data = (float*) insamples->data[0]; in filter_frame()
1513 i = insamples->nb_samples - remaining; in filter_frame()
1522 av_frame_free(&insamples); in filter_frame()
1527 … int64_t pts = av_rescale_q(insamples->pts, inlink->time_base, av_make_q(1, inlink->sample_rate)); in filter_frame()
1528 pts += insamples->nb_samples - remaining - s->remaining_fill_max; in filter_frame()
1539 av_frame_free(&insamples); in filter_frame()
1558 av_frame_free(&insamples); in filter_frame()
Davf_showspatial.c232 static int draw_spatial(AVFilterLink *inlink, AVFrame *insamples) in draw_spatial() argument
276 outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); in draw_spatial()
Davf_showspectrum.c1277 static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) in plot_spectrum_column() argument
1359 outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base); in plot_spectrum_column()
1371 char *units = get_time(ctx, insamples->pts /(float)inlink->sample_rate, x); in plot_spectrum_column()
1682 static int showspectrumpic_filter_frame(AVFilterLink *inlink, AVFrame *insamples) in showspectrumpic_filter_frame() argument
1688 ret = av_audio_fifo_write(s->fifo, (void **)insamples->extended_data, insamples->nb_samples); in showspectrumpic_filter_frame()
1689 av_frame_free(&insamples); in showspectrumpic_filter_frame()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Daudioresample.c1108 int insamples, outsamples; \
1116 insamples = inmap.size / sizeof(type) & ~1; \
1118 inctx = gst_fft_##ffttag2##_new (insamples, FALSE); \
1120 in = g_new (GstFFT##ffttag##Complex, insamples / 2 + 1); \
1130 inspot = find_main_frequency_spot_##ffttag (in, insamples / 2 + 1); \
1134 fail_unless (is_zero_except_##ffttag (in, insamples / 2 + 1, inspot)); \
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Dgstaudioaggregator.c335 gsize insamples = insize / in_info->bpf; in gst_audio_aggregator_convert_pad_convert_buffer() local
338 insamples); in gst_audio_aggregator_convert_pad_convert_buffer()
355 (gpointer *) & inmap.data, insamples, in gst_audio_aggregator_convert_pad_convert_buffer()