Home
last modified time | relevance | path

Searched refs:nb_frames (Results 1 – 25 of 98) sorted by relevance

1234

/third_party/ffmpeg/libavfilter/
Dvf_random.c35 int nb_frames; member
47 …{ "frames", "set number of frames in cache", OFFSET(nb_frames), AV_OPT_TYPE_INT, {.i64=30}, 2…
75 if (s->nb_frames_filled < s->nb_frames) { in filter_frame()
81 idx = av_lfg_get(&s->lfg) % s->nb_frames; in filter_frame()
85 memmove(&s->pts[0], &s->pts[1], (s->nb_frames - 1) * sizeof(s->pts[0])); in filter_frame()
87 s->pts[s->nb_frames - 1] = in->pts; in filter_frame()
101 if (ret == AVERROR_EOF && !ctx->is_disabled && s->nb_frames > 0) { in request_frame()
102 AVFrame *out = s->frames[s->nb_frames - 1]; in request_frame()
104 s->nb_frames--; in request_frame()
109 s->frames[s->nb_frames - 1] = NULL; in request_frame()
[all …]
Dvf_tmidequalizer.c37 int nb_frames; member
101 int nb_frames, int radius, int hsize, in compute_contrast_function() argument
112 const int nidx = ((idx - radius + j) % nb_frames); in compute_contrast_function()
113 const float *const h2 = histograms[nidx < 0 ? nidx + nb_frames: nidx]; in compute_contrast_function()
124 for (int j = radius + 1; j < nb_frames; j++) { in compute_contrast_function()
125 const int nidx = (idx - radius + j) % nb_frames; in compute_contrast_function()
126 const float *const h2 = histograms[nidx < 0 ? nidx + nb_frames: nidx]; in compute_contrast_function()
179 …int idx = s->f_frames < s->nb_frames ? s->radius : s->del_frame ? s->del_frame - 1 : s->nb_frames in filter_frame()
181 if (s->f_frames < s->nb_frames) { in filter_frame()
182 s->l_frames = s->nb_frames - s->f_frames; in filter_frame()
[all …]
Df_reverse.c30 int nb_frames; member
61 while (s->nb_frames > 0) { in uninit()
62 av_frame_free(&s->frames[s->nb_frames - 1]); in uninit()
63 s->nb_frames--; in uninit()
76 if (s->nb_frames + 1 > s->pts_size / sizeof(*(s->pts))) { in filter_frame()
83 if (s->nb_frames + 1 > s->frames_size / sizeof(*(s->frames))) { in filter_frame()
90 s->frames[s->nb_frames] = in; in filter_frame()
91 s->pts[s->nb_frames] = in->pts; in filter_frame()
92 s->nb_frames++; in filter_frame()
107 if (ret == AVERROR_EOF && s->nb_frames > 0) { in request_frame()
[all …]
Dvf_tile.c43 unsigned nb_frames; member
57 { "nb_frames", "set maximum number of frame to render", OFFSET(nb_frames),
92 if (tile->nb_frames == 0) { in init()
93 tile->nb_frames = tile->w * tile->h; in init()
94 } else if (tile->nb_frames > tile->w * tile->h) { in init()
100 if (tile->overlap >= tile->nb_frames) { in init()
101 av_log(ctx, AV_LOG_WARNING, "overlap must be less than %d\n", tile->nb_frames); in init()
102 tile->overlap = tile->nb_frames - 1; in init()
105 if (tile->init_padding >= tile->nb_frames) { in init()
106 av_log(ctx, AV_LOG_WARNING, "init_padding must be less than %d\n", tile->nb_frames); in init()
[all …]
Df_loop.c39 int nb_frames; member
316 for (i = 0; i < s->nb_frames; i++) in uninit()
320 s->nb_frames = 0; in uninit()
343 if (s->current_frame >= s->nb_frames) { in push_frame()
363 if (s->nb_frames < s->size) { in filter_frame()
364 if (!s->nb_frames) in filter_frame()
366 s->frames[s->nb_frames] = av_frame_clone(frame); in filter_frame()
367 if (!s->frames[s->nb_frames]) { in filter_frame()
371 s->nb_frames++; in filter_frame()
401 if (!s->eof && (s->nb_frames < s->size || !s->loop || !s->size)) { in activate()
[all …]
Dvf_shuffleframes.c38 int nb_frames; member
78 s->nb_frames = nb_items; in init()
89 if (s->in_frames < s->nb_frames) { in filter_frame()
95 if (s->in_frames == s->nb_frames) { in filter_frame()
98 for (n = 0; n < s->nb_frames; n++) { in filter_frame()
112 for (n = 0; n < s->nb_frames; n++) in filter_frame()
Dvf_untile.c32 unsigned nb_frames; member
59 s->nb_frames = s->w * s->h; in init()
95 outlink->frame_rate = av_mul_q(inlink->frame_rate, av_make_q(s->nb_frames, 1)); in config_output()
99 dt = av_mul_q(inlink->time_base, av_make_q(1, s->nb_frames)); in config_output()
125 if (s->current == s->nb_frames - 1) { in activate()
153 if (++s->current == s->nb_frames) in activate()
Dvf_photosensitivity.c43 int nb_frames; member
62 …{ "frames", "set how many frames to use", OFFSET(nb_frames), …
63 …{ "f", "set how many frames to use", OFFSET(nb_frames), …
213 …s->badness_threshold = (int)(GRID_SIZE * GRID_SIZE * 4 * 256 * s->nb_frames * s->threshold_multipl… in config_input()
233 for (i = 1; i < s->nb_frames; i++) in filter_frame()
234 current_badness += i * s->history[(s->history_pos + i) % s->nb_frames]; in filter_frame()
235 current_badness /= s->nb_frames; in filter_frame()
276 s->history_pos = (s->history_pos + 1) % s->nb_frames; in filter_frame()
Dvf_thumbnail.c100 int nb_frames = s->n; in get_best_frame() local
105 for (i = 0; i < nb_frames; i++) in get_best_frame()
107 avg_hist[j] /= nb_frames; in get_best_frame()
111 for (i = 0; i < nb_frames; i++) { in get_best_frame()
118 for (i = 0; i < nb_frames; i++) { in get_best_frame()
129 picref->pts * av_q2d(s->tb), nb_frames); in get_best_frame()
Dvf_zoompan.c98 int nb_frames; member
239 if (s->current_frame >= s->nb_frames) { in output_single_frame()
246 s->prev_nb_frames = s->nb_frames; in output_single_frame()
247 s->nb_frames = 0; in output_single_frame()
280 double zoom = -1, dx = -1, dy = -1, nb_frames; in activate() local
303 if ((ret = av_expr_parse_and_eval(&nb_frames, s->duration_expr_str, in activate()
310 s->var_values[VAR_DURATION] = s->nb_frames = nb_frames; in activate()
Dvf_vmafmotion.c197 if (!s->nb_frames) { in ff_vmafmotion_process()
207 s->nb_frames++; in ff_vmafmotion_process()
229 "n:%"PRId64" motion:%0.2lf\n", s->data.nb_frames, score); in do_vmafmotion()
297 return s->nb_frames > 0 ? s->motion_sum / s->nb_frames : 0.0; in ff_vmafmotion_uninit()
335 if (s->data.nb_frames > 0) { in uninit()
Dtrim.c54 int64_t nb_frames; member
138 if (s->start_frame >= 0 && s->nb_frames >= s->start_frame) in trim_filter_frame()
153 if (s->end_frame != INT64_MAX && s->nb_frames < s->end_frame) in trim_filter_frame()
169 s->nb_frames++; in trim_filter_frame()
174 s->nb_frames++; in trim_filter_frame()
Dvf_psnr.c43 uint64_t nb_frames; member
80 static inline double get_psnr(double mse, uint64_t nb_frames, int max) in get_psnr() argument
82 return 10.0 * log10(pow_2(max) / (mse / nb_frames)); in get_psnr()
212 s->nb_frames++; in do_psnr()
242 fprintf(s->stats_file, "n:%"PRId64" mse_avg:%0.2f ", s->nb_frames, mse); in do_psnr()
423 if (s->nb_frames > 0) { in uninit()
431 get_psnr(s->mse_comp[c], s->nb_frames, s->max[c])); in uninit()
435 get_psnr(s->mse, s->nb_frames, s->average_max), in uninit()
/third_party/ffmpeg/libavcodec/
Dav1_frame_split_bsf.c45 int nb_frames; member
59 int nb_frames = 0; in av1_frame_split_filter() local
76 nb_frames++; in av1_frame_split_filter()
82 if (nb_frames > 1) { in av1_frame_split_filter()
85 s->nb_frames = nb_frames; in av1_frame_split_filter()
115 if (s->cur_frame < s->nb_frames) in av1_frame_split_filter()
134 s->cur_frame < s->nb_frames) { in av1_frame_split_filter()
150 s->cur_frame < s->nb_frames) { in av1_frame_split_filter()
156 av_assert0(frame && s->cur_frame <= s->nb_frames); in av1_frame_split_filter()
173 if (s->cur_frame == s->nb_frames) { in av1_frame_split_filter()
Dvp9_superframe_split_bsf.c35 int nb_frames; member
57 int nb_frames = 1 + (marker & 0x7); in vp9_superframe_split_filter() local
58 int idx_size = 2 + nb_frames * length_size; in vp9_superframe_split_filter()
65 nb_frames * length_size); in vp9_superframe_split_filter()
67 for (i = 0; i < nb_frames; i++) { in vp9_superframe_split_filter()
81 s->nb_frames = nb_frames; in vp9_superframe_split_filter()
103 if (s->next_frame >= s->nb_frames) in vp9_superframe_split_filter()
/third_party/ffmpeg/libavformat/
Dpaf.c32 uint32_t nb_frames; member
106 vst->nb_frames = in read_header()
108 p->nb_frames = avio_rl32(pb); in read_header()
147 p->nb_frames < 1 || in read_header()
152 p->nb_frames > INT_MAX / sizeof(uint32_t) || in read_header()
156 p->blocks_count_table = av_malloc_array(p->nb_frames, in read_header()
158 p->frames_offset_table = av_malloc_array(p->nb_frames, in read_header()
182 ret = read_table(s, p->blocks_count_table, p->nb_frames); in read_header()
185 ret = read_table(s, p->frames_offset_table, p->nb_frames); in read_header()
213 if (p->current_frame >= p->nb_frames) in read_packet()
Drawdec.c154 int nb_frames = 0; in mjpeg_probe() local
187 nb_frames++; in mjpeg_probe()
199 if (nb_invalid*4 + 1 < nb_frames) { in mjpeg_probe()
207 if (nb_invalid == 0 && nb_frames > 2) in mjpeg_probe()
211 if (!nb_invalid && nb_frames) in mjpeg_probe()
Dgifdec.c57 int nb_frames; member
116 int64_t nb_frames = 0, duration = 0; in gif_read_header() local
180 nb_frames++; in gif_read_header()
195 st->nb_frames = nb_frames; in gif_read_header()
348 gdc->nb_frames ++; in gif_read_packet()
371 if (gdc->nb_frames == 1) { in gif_read_packet()
Doggparseopus.c93 unsigned nb_frames = 1; in opus_duration() local
103 nb_frames = src[1] & 0x3F; in opus_duration()
105 nb_frames = 2; in opus_duration()
108 return frame_size * nb_frames; in opus_duration()
Davs.c40 int nb_frames; member
77 avs->nb_frames = avio_rl32(s->pb); in avs_read_header()
198 avs->st_video->nb_frames = avs->nb_frames; in avs_read_packet()
Davienc.c203 int n, au_byterate, au_ssize, au_scale, nb_frames = 0; in avi_write_counters() local
220 nb_frames = FFMAX(nb_frames, avist->packet_count); in avi_write_counters()
225 avio_wl32(pb, nb_frames); in avi_write_counters()
264 int bitrate, n, i, nb_frames, au_byterate, au_ssize, au_scale; in avi_write_header() local
328 nb_frames = 0; in avi_write_header()
343 avio_wl32(pb, nb_frames); /* nb frames, filled later */ in avi_write_header()
919 int i, n, nb_frames; in avi_write_trailer() local
942 for (n = nb_frames = 0; n < s->nb_streams; n++) { in avi_write_trailer()
947 if (nb_frames < avist->packet_count) in avi_write_trailer()
948 nb_frames = avist->packet_count; in avi_write_trailer()
[all …]
Dmvdec.c149 st->nb_frames = var_read_int(pb, size); in parse_audio_var()
184 st->nb_frames = st->duration = var_read_int(pb, size); in parse_video_var()
273 for (i = 0; i < st->nb_frames; i++) { in read_index()
316 vst->nb_frames = avio_rb32(pb); in mv_read_header()
336 ast->nb_frames = vst->nb_frames; in mv_read_header()
359 for (i = 0; i < vst->nb_frames; i++) { in mv_read_header()
/third_party/ffmpeg/tests/ref/fate/
Dmxf-probe-dnxhd19 nb_frames=N/A
55 nb_frames=N/A
91 nb_frames=N/A
144 nb_frames=N/A
Dmxf-probe-dv2536 nb_frames=N/A
76 nb_frames=N/A
116 nb_frames=N/A
/third_party/ffmpeg/doc/examples/
Dfilter_audio.c278 int err, nb_frames, i; in main() local
286 nb_frames = duration * INPUT_SAMPLERATE / FRAME_SIZE; in main()
287 if (nb_frames <= 0) { in main()
313 for (i = 0; i < nb_frames; i++) { in main()

1234