Lines Matching defs:name

52     if (!last && class && class->option && class->option[0].name)
54 if (last && last[1].name)
108 num, o->name, o->min, o->max);
116 num*intnum/den, o->name);
278 o_named->name, o_named->help);
289 const_names [ci ] = o_named->name;
439 fmt, o->name, desc, min, max);
487 int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
491 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
510 av_log(obj, AV_LOG_WARNING, "The \"%s\" option is deprecated: %s\n", name, o->help);
552 usecs / 1000000.0, o->name, o->min / 1000000.0, o->max / 1000000.0);
592 #define OPT_EVAL_NUMBER(name, opttype, vartype) \
593 int av_opt_eval_ ## name(void *obj, const AVOption *o, \
594 const char *val, vartype *name ## _out) \
598 return set_string_number(obj, obj, o, val, name ## _out); \
608 static int set_number(void *obj, const char *name, double num, int den, int64_t intnum,
612 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
624 int av_opt_set_int(void *obj, const char *name, int64_t val, int search_flags)
626 return set_number(obj, name, 1, 1, val, search_flags);
629 int av_opt_set_double(void *obj, const char *name, double val, int search_flags)
631 return set_number(obj, name, val, 1, 1, search_flags);
634 int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags)
636 return set_number(obj, name, val.num, val.den, 1, search_flags);
639 int av_opt_set_bin(void *obj, const char *name, const uint8_t *val, int len, int search_flags)
642 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
669 int av_opt_set_image_size(void *obj, const char *name, int w, int h, int search_flags)
672 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
678 "The value set by option '%s' is not an image size.\n", o->name);
683 "Invalid negative size value %dx%d for size '%s'\n", w, h, o->name);
691 int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags)
694 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
700 "The value set by option '%s' is not a video rate.\n", o->name);
705 return set_number(obj, name, val.num, val.den, 1, search_flags);
708 static int set_format(void *obj, const char *name, int fmt, int search_flags,
712 const AVOption *o = av_opt_find2(obj, name, NULL, 0,
720 "The value set by option '%s' is not a %s format", name, desc);
730 fmt, name, desc, min, max);
737 int av_opt_set_pixel_fmt(void *obj, const char *name, enum AVPixelFormat fmt, int search_flags)
739 return set_format(obj, name, fmt, search_flags, AV_OPT_TYPE_PIXEL_FMT, "pixel", AV_PIX_FMT_NB);
742 int av_opt_set_sample_fmt(void *obj, const char *name, enum AVSampleFormat fmt, int search_flags)
744 return set_format(obj, name, fmt, search_flags, AV_OPT_TYPE_SAMPLE_FMT, "sample", AV_SAMPLE_FMT_NB);
749 int av_opt_set_channel_layout(void *obj, const char *name, int64_t cl, int search_flags)
752 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
758 "The value set by option '%s' is not a channel layout.\n", o->name);
767 int av_opt_set_dict_val(void *obj, const char *name, const AVDictionary *val,
772 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
786 int av_opt_set_chlayout(void *obj, const char *name,
791 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
837 int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val)
840 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
849 av_log(obj, AV_LOG_WARNING, "The \"%s\" option is deprecated: %s\n", name, o->help);
958 static int get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum,
962 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
978 int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_val)
984 if ((ret = get_number(obj, name, NULL, &num, &den, &intnum, search_flags)) < 0)
993 int av_opt_get_double(void *obj, const char *name, int search_flags, double *out_val)
999 if ((ret = get_number(obj, name, NULL, &num, &den, &intnum, search_flags)) < 0)
1005 int av_opt_get_q(void *obj, const char *name, int search_flags, AVRational *out_val)
1011 if ((ret = get_number(obj, name, NULL, &num, &den, &intnum, search_flags)) < 0)
1021 int av_opt_get_image_size(void *obj, const char *name, int search_flags, int *w_out, int *h_out)
1024 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
1029 "The value for option '%s' is not an image size.\n", name);
1039 int av_opt_get_video_rate(void *obj, const char *name, int search_flags, AVRational *out_val)
1045 if ((ret = get_number(obj, name, NULL, &num, &den, &intnum, search_flags)) < 0)
1055 static int get_format(void *obj, const char *name, int search_flags, int *out_fmt,
1059 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
1064 "The value for option '%s' is not a %s format.\n", desc, name);
1073 int av_opt_get_pixel_fmt(void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt)
1075 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_PIXEL_FMT, "pixel");
1078 int av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt)
1080 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_SAMPLE_FMT, "sample");
1085 int av_opt_get_channel_layout(void *obj, const char *name, int search_flags, int64_t *cl)
1088 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
1093 "The value for option '%s' is not a channel layout.\n", name);
1104 int av_opt_get_chlayout(void *obj, const char *name, int search_flags, AVChannelLayout *cl)
1107 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
1112 "The value for option '%s' is not a channel layout.\n", name);
1120 int av_opt_get_dict_val(void *obj, const char *name, int search_flags, AVDictionary **out_val)
1124 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
1209 return opt->name;
1226 av_strlcatf(flags, sizeof(flags), "%s", opt->name);
1256 av_log(av_log_obj, AV_LOG_INFO, " %-15s ", opt->name);
1260 opt->name);
1347 if (av_opt_query_ranges(&r, obj, opt->name, AV_OPT_SEARCH_FAKE_OBJ) >= 0) {
1530 opt->type, opt->name);
1686 av_log(ctx, AV_LOG_ERROR, "No option name near '%s'\n", opts);
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))
1807 if (!strcmp(o->name, name) && (o->flags & opt_flags) == opt_flags &&
1837 void *av_opt_ptr(const AVClass *class, void *obj, const char *name)
1839 const AVOption *opt= av_opt_find2(&class, name, NULL, 0, AV_OPT_SEARCH_FAKE_OBJ, NULL);
2175 av_log(obj, AV_LOG_WARNING, "Not supported option type: %d, option name: %s\n", o->type, o->name);
2181 int av_opt_is_set_to_default_by_name(void *obj, const char *name, int search_flags)
2187 o = av_opt_find2(obj, name, NULL, 0, search_flags, &target);
2223 if ((ret = av_opt_get(obj, o->name, 0, &buf)) < 0) {
2230 av_bprint_escape(&bprint, o->name, special_chars, AV_ESCAPE_MODE_BACKSLASH, 0);