Lines Matching defs:mode
44 enum PhaseMode mode;
56 { "mode", "set phase mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=AUTO_ANALYZE}, PROGRESSIVE, AUTO_ANALYZE, FLAGS, "mode" },
57 CONST("p", "progressive", PROGRESSIVE, "mode"),
58 CONST("t", "top first", TOP_FIRST, "mode"),
59 CONST("b", "bottom first", BOTTOM_FIRST, "mode"),
60 CONST("T", "top first analyze", TOP_FIRST_ANALYZE, "mode"),
61 CONST("B", "bottom first analyze", BOTTOM_FIRST_ANALYZE, "mode"),
62 CONST("u", "analyze", ANALYZE, "mode"),
63 CONST("U", "full analyze", FULL_ANALYZE, "mode"),
64 CONST("a", "auto", AUTO, "mode"),
65 CONST("A", "auto analyze", AUTO_ANALYZE, "mode"),
115 static enum PhaseMode analyze_plane(void *ctx, enum PhaseMode mode, AVFrame *old, AVFrame *new)
126 if (mode == AUTO) {
127 mode = new->interlaced_frame ? new->top_field_first ?
129 } else if (mode == AUTO_ANALYZE) {
130 mode = new->interlaced_frame ? new->top_field_first ?
134 if (mode <= BOTTOM_FIRST) {
147 switch (mode) {
219 if (mode == TOP_FIRST_ANALYZE) {
221 } else if (mode == BOTTOM_FIRST_ANALYZE) {
223 } else if (mode == ANALYZE) {
228 mode = BOTTOM_FIRST;
230 mode = TOP_FIRST;
232 mode = PROGRESSIVE;
236 av_log(ctx, AV_LOG_DEBUG, "mode=%c tdiff=%f bdiff=%f pdiff=%f\n",
237 mode == BOTTOM_FIRST ? 'b' : mode == TOP_FIRST ? 't' : 'p',
239 return mode;
247 enum PhaseMode mode;
269 mode = PROGRESSIVE;
271 mode = analyze_plane(ctx, s->mode, s->frame, in);
280 memcpy(to, mode == (top ? BOTTOM_FIRST : TOP_FIRST) ? buf : from, s->linesize[plane]);