Lines Matching defs:unit

273             const AVOption *o_named = av_opt_find(target_obj, i ? buf : val, o->unit, 0, search_flags);
280 if (o->unit) {
283 o_named->unit &&
284 !strcmp(o_named->unit, o->unit)) {
286 av_log(obj, AV_LOG_ERROR, "const_values array too small for %s\n", o->unit);
1141 field ? field->unit : NULL, 0, 0);
1200 static const char *get_opt_const_name(void *obj, const char *unit, int64_t value)
1204 if (!unit)
1207 if (opt->type == AV_OPT_TYPE_CONST && !strcmp(opt->unit, unit) &&
1213 static char *get_opt_flags_string(void *obj, const char *unit, int64_t value)
1219 if (!unit)
1222 if (opt->type == AV_OPT_TYPE_CONST && !strcmp(opt->unit, unit) &&
1234 static void opt_list(void *obj, void *av_log_obj, const char *unit,
1247 * Only print items from the requested unit.
1249 if (!unit && opt->type == AV_OPT_TYPE_CONST)
1251 else if (unit && opt->type != AV_OPT_TYPE_CONST)
1253 else if (unit && opt->type == AV_OPT_TYPE_CONST && strcmp(unit, opt->unit))
1255 else if (unit && opt->type == AV_OPT_TYPE_CONST)
1382 char *def_flags = get_opt_flags_string(obj, opt->unit, opt->default_val.i64);
1400 const char *def_const = get_opt_const_name(obj, opt->unit, opt->default_val.i64);
1441 if (opt->unit && opt->type != AV_OPT_TYPE_CONST)
1442 opt_list(obj, av_log_obj, opt->unit, req_flags, rej_flags, opt->type);
1771 const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
1774 return av_opt_find2(obj, name, unit, opt_flags, search_flags, NULL);
1777 const AVOption *av_opt_find2(void *obj, const char *name, const char *unit,
1796 if (o = av_opt_find2(&child, name, unit, opt_flags, search_flags, NULL))
1801 if (o = av_opt_find2(child, name, unit, opt_flags, search_flags, target_obj))
1808 ((!unit && o->type != AV_OPT_TYPE_CONST) ||
1809 (unit && o->type == AV_OPT_TYPE_CONST && o->unit && !strcmp(o->unit, unit)))) {