Home
last modified time | relevance | path

Searched refs:nb_frames (Results 1 – 25 of 89) 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 …]
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 …]
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()
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_thumbnail.c96 int nb_frames = s->n; in get_best_frame() local
101 for (i = 0; i < nb_frames; i++) in get_best_frame()
103 avg_hist[j] /= nb_frames; in get_best_frame()
107 for (i = 0; i < nb_frames; i++) { in get_best_frame()
114 for (i = 0; i < nb_frames; i++) { in get_best_frame()
125 picref->pts * av_q2d(s->tb), nb_frames); in get_best_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_zoompan.c96 int nb_frames; member
233 if (s->current_frame >= s->nb_frames) { in output_single_frame()
240 s->prev_nb_frames = s->nb_frames; in output_single_frame()
241 s->nb_frames = 0; in output_single_frame()
274 double zoom = -1, dx = -1, dy = -1, nb_frames; in activate() local
297 if ((ret = av_expr_parse_and_eval(&nb_frames, s->duration_expr_str, in activate()
304 s->var_values[VAR_DURATION] = s->nb_frames = nb_frames; in activate()
Dvf_psnr.c43 uint64_t nb_frames; member
78 static inline double get_psnr(double mse, uint64_t nb_frames, int max) in get_psnr() argument
80 return 10.0 * log10(pow_2(max) / (mse / nb_frames)); in get_psnr()
174 s->nb_frames++; in do_psnr()
204 fprintf(s->stats_file, "n:%"PRId64" mse_avg:%0.2f ", s->nb_frames, mse); in do_psnr()
374 if (s->nb_frames > 0) { in uninit()
382 get_psnr(s->mse_comp[c], s->nb_frames, s->max[c])); in uninit()
386 get_psnr(s->mse, s->nb_frames, s->average_max), in uninit()
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()
Dvf_ssim.c55 uint64_t nb_frames; member
301 s->nb_frames++; in do_ssim()
321 fprintf(s->stats_file, "n:%"PRId64" ", s->nb_frames); in do_ssim()
467 if (s->nb_frames > 0) { in uninit()
473 av_strlcatf(buf, sizeof(buf), " %c:%f (%f)", s->comps[i], s->ssim[c] / s->nb_frames, in uninit()
474 ssim_db(s->ssim[c], s->nb_frames)); in uninit()
477 s->ssim_total / s->nb_frames, ssim_db(s->ssim_total, s->nb_frames)); 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()
/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()
143 p->nb_frames < 1 || in read_header()
148 p->nb_frames > INT_MAX / sizeof(uint32_t) || in read_header()
152 p->blocks_count_table = av_mallocz(p->nb_frames * in read_header()
154 p->frames_offset_table = av_mallocz(p->nb_frames * in read_header()
178 ret = read_table(s, p->blocks_count_table, p->nb_frames); in read_header()
181 ret = read_table(s, p->frames_offset_table, p->nb_frames); in read_header()
209 if (p->current_frame >= p->nb_frames) in read_packet()
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()
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()
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()
Dmvdec.c149 st->nb_frames = var_read_int(pb, size); in parse_audio_var()
181 st->nb_frames = st->duration = var_read_int(pb, size); in parse_video_var()
268 for (i = 0; i < st->nb_frames; i++) { in read_index()
311 vst->nb_frames = avio_rb32(pb); in mv_read_header()
331 ast->nb_frames = vst->nb_frames; in mv_read_header()
354 for (i = 0; i < vst->nb_frames; i++) { in mv_read_header()
Davienc.c201 int n, au_byterate, au_ssize, au_scale, nb_frames = 0; in avi_write_counters() local
218 nb_frames = FFMAX(nb_frames, avist->packet_count); in avi_write_counters()
223 avio_wl32(pb, nb_frames); in avi_write_counters()
262 int bitrate, n, i, nb_frames, au_byterate, au_ssize, au_scale; in avi_write_header() local
322 nb_frames = 0; in avi_write_header()
337 avio_wl32(pb, nb_frames); /* nb frames, filled later */ in avi_write_header()
916 int i, n, nb_frames; in avi_write_trailer() local
939 for (n = nb_frames = 0; n < s->nb_streams; n++) { in avi_write_trailer()
944 if (nb_frames < avist->packet_count) in avi_write_trailer()
945 nb_frames = avist->packet_count; in avi_write_trailer()
[all …]
/third_party/ffmpeg/tests/ref/fate/
Dmxf-probe-dnxhd19 nb_frames=N/A
55 nb_frames=N/A
91 nb_frames=N/A
146 nb_frames=N/A
Dmxf-probe-dv2538 nb_frames=N/A
79 nb_frames=N/A
120 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