Lines Matching defs:search_flags
272 int search_flags = (o->flags & AV_OPT_FLAG_CHILD_CONSTS) ? AV_OPT_SEARCH_CHILDREN : 0;
273 const AVOption *o_named = av_opt_find(target_obj, i ? buf : val, o->unit, 0, search_flags);
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);
609 int search_flags)
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);
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);
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,
713 search_flags, &target_obj);
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);
768 int search_flags)
772 const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
788 int search_flags)
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);
886 } else if (search_flags & AV_OPT_ALLOW_NULL) {
894 if (!*(uint8_t **)dst && (search_flags & AV_OPT_ALLOW_NULL)) {
943 if (!*(AVDictionary **)dst && (search_flags & AV_OPT_ALLOW_NULL)) {
959 int search_flags)
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);
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);
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);
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);
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);
1742 int av_opt_set_dict2(void *obj, AVDictionary **options, int search_flags)
1752 ret = av_opt_set(obj, t->key, t->value, search_flags);
1772 int opt_flags, int search_flags)
1774 return av_opt_find2(obj, name, unit, opt_flags, search_flags, NULL);
1778 int opt_flags, int search_flags, void **target_obj)
1791 if (search_flags & AV_OPT_SEARCH_CHILDREN) {
1792 if (search_flags & AV_OPT_SEARCH_FAKE_OBJ) {
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))
1811 if (!(search_flags & AV_OPT_SEARCH_FAKE_OBJ))
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);