Lines Matching refs:ratio_expr
67 char *ratio_expr;
76 if (s->ratio_expr && s->aspect_den > 0) {
80 ret = av_expr_parse_and_eval(&num, s->ratio_expr, NULL, NULL,
83 av_log(ctx, AV_LOG_ERROR, "Unable to parse ratio numerator \"%s\"\n", s->ratio_expr);
131 ret = av_expr_parse_and_eval(&res, s->ratio_expr,
135 ret = av_parse_ratio(aspect_ratio, s->ratio_expr, s->max, 0, ctx);
141 "Error when evaluating the expression '%s'\n", s->ratio_expr);
146 "Invalid string '%s' for aspect ratio\n", s->ratio_expr);
163 if (!(s->ratio_expr && s->aspect_den > 0)) {
191 { "dar", "set display aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },
192 { "ratio", "set display aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },
193 { "r", "set display aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },
243 if (!(s->ratio_expr && s->aspect_den > 0)) {
263 { "sar", "set sample (pixel) aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },
264 { "ratio", "set sample (pixel) aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },
265 { "r", "set sample (pixel) aspect ratio", OFFSET(ratio_expr), AV_OPT_TYPE_STRING, { .str = "0" }, .flags = FLAGS },