FFmpeg
|
opt.h
Go to the documentation of this file.
175 * offsetof(child_struct, flags_opt), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT_MIN, INT_MAX, "test_unit" },
176 * { "flag1", "This is a flag with value 16", 0, AV_OPT_TYPE_CONST, { .i64 = 16 }, 0, 0, "test_unit" },
228 AV_OPT_TYPE_BINARY, ///< offset must point to a pointer immediately followed by an int for the length
230 AV_OPT_TYPE_IMAGE_SIZE = MKBETAG('S','I','Z','E'), ///< offset must point to two consecutive integers
243 FF_OPT_TYPE_BINARY, ///< offset must point to a pointer immediately followed by an int for the length
281 #define AV_OPT_FLAG_ENCODING_PARAM 1 ///< a generic parameter which can be set by the user for muxing or encoding
282 #define AV_OPT_FLAG_DECODING_PARAM 2 ///< a generic parameter which can be set by the user for demuxing or decoding
283 #define AV_OPT_FLAG_METADATA 4 ///< some data extracted or inserted into the file like title, comment, ...
284 #define AV_OPT_FLAG_AUDIO_PARAM 8
287 #define AV_OPT_FLAG_FILTERING_PARAM (1<<16) ///< a generic parameter which can be set by the user for filtering
303 double value_min, value_max; ///< For string ranges this represents the min/max length, for dimensions this represents the min/max pixel count
304 double component_min, component_max; ///< For string this represents the unicode range for chars, 0-127 limits to ASCII
333 const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
364 int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out);
373 attribute_deprecated const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len);
654 int av_opt_set_bin (void *obj, const char *name, const uint8_t *val, int size, int search_flags);
656 int av_opt_set_pixel_fmt (void *obj, const char *name, enum AVPixelFormat fmt, int search_flags);
657 int av_opt_set_sample_fmt(void *obj, const char *name, enum AVSampleFormat fmt, int search_flags);
698 int av_opt_get_image_size(void *obj, const char *name, int search_flags, int *w_out, int *h_out);
699 int av_opt_get_pixel_fmt (void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt);
700 int av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt);
726 * AV_OPT_SEARCH_FAKE_OBJ indicates that the obj is a double pointer to a AVClass instead of a full instance
741 * AV_OPT_SEARCH_FAKE_OBJ indicates that the obj is a double pointer to a AVClass instead of a full instance
offset must point to a pointer immediately followed by an int for the length
Definition: opt.h:243
Definition: opt.h:223
int av_opt_eval_float(void *obj, const AVOption *o, const char *val, float *float_out)
attribute_deprecated const AVOption * av_set_int(void *obj, const char *name, int64_t n)
Definition: opt.c:385
int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags)
Definition: opt.c:404
Definition: opt.h:239
void * av_opt_child_next(void *obj, void *prev)
Iterate over AVOptions-enabled children of obj.
Definition: opt.c:1270
Definition: opt.h:222
const AVClass * av_opt_child_class_next(const AVClass *parent, const AVClass *prev)
Iterate over potential AVOptions-enabled children of parent.
Definition: opt.c:1278
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
Definition: opt.c:942
Definition: opt.h:231
int av_set_options_string(void *ctx, const char *opts, const char *key_val_sep, const char *pairs_sep)
Parse the key/value pairs list in opts.
Definition: opt.c:1062
external API header
int av_opt_set_bin(void *obj, const char *name, const uint8_t *val, int size, int search_flags)
Definition: opt.c:409
Accept to parse a value without a key; the key will then be returned as NULL.
Definition: opt.h:511
int av_opt_get_q(void *obj, const char *name, int search_flags, AVRational *out_val)
Definition: opt.c:711
Definition: opt.h:221
attribute_deprecated const char * av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len)
Definition: opt.c:531
int av_opt_get_video_rate(void *obj, const char *name, int search_flags, AVRational *out_val)
Definition: opt.c:745
int av_opt_set_from_string(void *ctx, const char *opts, const char *const *shorthand, const char *key_val_sep, const char *pairs_sep)
Parse the key-value pairs list in opts.
Definition: opt.c:1142
Public dictionary API.
Definition: opt.h:229
attribute_deprecated const AVOption * av_next_option(void *obj, const AVOption *last)
Definition: opt.c:57
attribute_deprecated const AVOption * av_set_double(void *obj, const char *name, double n)
Definition: opt.c:369
int av_opt_eval_int64(void *obj, const AVOption *o, const char *val, int64_t *int64_out)
int av_opt_set_double(void *obj, const char *name, double val, int search_flags)
Definition: opt.c:399
AVRational av_get_q(void *obj, const char *name, const AVOption **o_out)
Definition: opt.c:661
Definition: opt.h:226
int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags)
Definition: opt.c:461
Definition: opt.h:236
int av_opt_get_pixel_fmt(void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt)
Definition: opt.c:779
Definition: dict.c:28
int av_opt_set_pixel_fmt(void *obj, const char *name, enum AVPixelFormat fmt, int search_flags)
Definition: opt.c:515
void * av_opt_ptr(const AVClass *avclass, void *obj, const char *name)
Gets a pointer to the requested field in a struct.
Definition: opt.c:1285
int av_opt_eval_flags(void *obj, const AVOption *o, const char *val, int *flags_out)
Definition: opt.h:237
Definition: opt.h:225
const AVOption * av_opt_next(void *obj, const AVOption *prev)
Iterate over all AVOptions belonging to obj.
Definition: opt.c:63
int av_opt_set_int(void *obj, const char *name, int64_t val, int search_flags)
Definition: opt.c:394
double av_get_double(void *obj, const char *name, const AVOption **o_out)
Definition: opt.c:650
const AVOption * av_opt_find(void *obj, const char *name, const char *unit, int opt_flags, int search_flags)
Look for an option in an object.
Definition: opt.c:1223
int av_opt_eval_double(void *obj, const AVOption *o, const char *val, double *double_out)
int av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt)
Definition: opt.c:784
struct AVOptionRange AVOptionRange
A single allowed range of values, or a single allowed value.
attribute_deprecated const AVOption * av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags)
Look for an option in obj.
Definition: opt.c:44
Definition: opt.h:241
int64_t av_get_int(void *obj, const char *name, const AVOption **o_out)
Definition: opt.c:675
int av_opt_eval_q(void *obj, const AVOption *o, const char *val, AVRational *q_out)
attribute_deprecated const AVOption * av_set_q(void *obj, const char *name, AVRational n)
Definition: opt.c:377
offset must point to a pointer immediately followed by an int for the length
Definition: opt.h:228
int av_opt_query_ranges_default(AVOptionRanges **, void *obj, const char *key, int flags)
Get a default list of allowed ranges for the given option.
Definition: opt.c:1307
int is_range
if set to 1 the struct encodes a range, if set to 0 a single value
Definition: opt.h:305
int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_val)
Definition: opt.c:687
Definition: opt.h:224
void av_opt_freep_ranges(AVOptionRanges **ranges)
Free an AVOptionRanges struct and set it to NULL.
Definition: opt.c:1374
int offset
The offset relative to the context structure where the option value is stored.
Definition: opt.h:264
int av_opt_set_dict(void *obj, struct AVDictionary **options)
Set all the options from a given dictionary on an object.
Definition: opt.c:1202
int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags)
Show the obj options.
Definition: opt.c:930
int av_opt_eval_int(void *obj, const AVOption *o, const char *val, int *int_out)
Definition: opt.h:232
Definition: opt.h:234
int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags)
Get a list of allowed ranges for the given option.
Definition: opt.c:1293
rational numbers
Definition: opt.h:240
int av_opt_get_double(void *obj, const char *name, int search_flags, double *out_val)
Definition: opt.c:699
Definition: opt.h:242
pixel format definitions
attribute_deprecated int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out)
Set the field of obj with the given name to value.
Definition: opt.c:243
int av_opt_get(void *obj, const char *name, int search_flags, uint8_t **out_val)
Definition: opt.c:566
int av_opt_get_key_value(const char **ropts, const char *key_val_sep, const char *pairs_sep, unsigned flags, char **rkey, char **rval)
Extract a key-value pair from the beginning of a string.
Definition: opt.c:1120
Definition: opt.h:238
int av_opt_flag_is_set(void *obj, const char *field_name, const char *flag_name)
Check whether a particular flag is set in a flags field.
Definition: opt.c:789
Definition: opt.h:227
const AVOption * av_opt_find2(void *obj, const char *name, const char *unit, int opt_flags, int search_flags, void **target_obj)
Look for an option in an object.
Definition: opt.c:1229
Definition: opt.h:244
int av_opt_set_sample_fmt(void *obj, const char *name, enum AVSampleFormat fmt, int search_flags)
Definition: opt.c:520
attribute_deprecated void av_opt_set_defaults2(void *s, int mask, int flags)
Definition: opt.c:948
int av_opt_set_image_size(void *obj, const char *name, int w, int h, int search_flags)
Definition: opt.c:439
int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
Definition: opt.c:252
int av_opt_get_image_size(void *obj, const char *name, int search_flags, int *w_out, int *h_out)
Definition: opt.c:727
Generated on Fri Dec 20 2024 06:56:05 for FFmpeg by 1.8.11