aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opt.h
Commit message (Collapse)AuthorAgeFilesLines
* all: fix typos found by codespellTimo Rothenpieler4 days1-4/+4
|
* lavu/opt: deprecate av_opt_ptr()Anton Khirnov2024-10-161-0/+5
| | | | | | It has no more internal callers, and we do not want to support direct pointer access via AVOptions, as that constrains AVOption API extensions.
* lavu: deprecate av_opt_set_int_list() and related infrastructureAnton Khirnov2024-09-301-0/+2
| | | | It has no more users and is replaced by array-type options.
* lavu/opt: add API for setting array-type option valuesAnton Khirnov2024-09-061-0/+56
| | | | | | Previously one could only replace the entire array with a new one deserialized from a string. The new API allows inserting, replacing, and removing arbitrary element ranges.
* lavu/opt: add API for retrieving array-type option valuesAnton Khirnov2024-08-271-0/+40
| | | | | Previously one could only convert the entire array to a string, not access individual elements.
* lavu/opt: document underlying C types for enum AVOptionTypeAnton Khirnov2024-08-271-3/+75
|
* avutil/opt: add a note about the av_opt_{get,set}_chlayout() behaviorJames Almer2024-05-071-0/+8
| | | | | | Based on the one for av_opt_set_dict_val(). Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opt: add an unsigned option typeJames Almer2024-05-041-0/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opt: Clarify type of integersMarcus B Spencer2024-05-041-1/+1
| | | | | | | Clarify comment regarding type of integers regarding AV_OPT_TYPE_IMAGE_SIZE. Signed-off-by: Marcus B Spencer <marcus@marcusspencer.xyz> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavu/opt: Clarify the scope of AVOptionsAndrew Sayers2024-05-011-0/+10
| | | | | | | See discussion on the mailing list: https://ffmpeg.org/pipermail/ffmpeg-devel/2024-April/326054.html Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/opt: add support for children objects in av_opt_serializeJames Almer2024-04-231-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/opt: add array optionsAnton Khirnov2024-03-081-2/+54
|
* lavu/opt: distinguish between native and foreign access for AVOption fieldsAnton Khirnov2024-03-081-0/+14
| | | | | | | | Native access is from the code that declared the options, foreign access is from code that is using the options. Forbid foreign access to AVOption.offset/default_val, for which there is no good reason, and which should allow us more freedom in extending their semantics in a compatible way.
* avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinelsAndreas Rheinhardt2024-03-071-1/+1
| | | | | | Make AVOptionType start with 1 instead. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil: remove deprecated FF_API_OLD_CHANNEL_LAYOUTJames Almer2024-03-071-11/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/opt: cosmetics, group option reading function togetherAnton Khirnov2024-03-011-36/+46
|
* lavu/opt: cosmetics, group option setting function togetherAnton Khirnov2024-03-011-48/+54
|
* lavu/opt: cosmetics, group (un)init and management functions togetherAnton Khirnov2024-03-011-144/+154
|
* lavu/opt: document AVOption.flagsAnton Khirnov2024-03-011-0/+3
|
* lavu/opt: cosmetics, move AV_OPT_FLAG_* out of AVOptionAnton Khirnov2024-03-011-35/+34
| | | | Also drop an obsolete FIXME.
* lavu/opt: cosmetics, change option flags to (1 << N) styleAnton Khirnov2024-03-011-12/+36
| | | | | It is easier to read. Also, change their doxy comments to use the same style.
* Revert "all: Don't set AVClass.item_name to its default value"Anton Khirnov2024-01-201-0/+2
| | | | | | | Some callers assume that item_name is always set, so this may be considered an API break. This reverts commit 0c6203c97a99f69dbaa6e4011d48c331e1111f5e.
* all: Don't set AVClass.item_name to its default valueAndreas Rheinhardt2023-12-221-2/+0
| | | | | | | | Unnecessary since acf63d5350adeae551d412db699f8ca03f7e76b9; also avoids relocations. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavu: support AVChannelLayout AVOptionsAnton Khirnov2022-03-151-0/+12
| | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/opt: Document actual behaviour of av_opt_copy a bit moreAndreas Rheinhardt2021-08-171-0/+7
| | | | | | | | | In particular, document that av_opt_copy() always disentangles allocated options even on error; this guarantee is needed to e.g. properly free duplicated thread contexts in libavcodec on error. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove obsolete version.h inclusionsAndreas Rheinhardt2021-07-221-1/+0
| | | | | | | These have mostly been added because of FF_API_*; yet when these were removed, removing the header has been forgotten. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil: remove deprecated AVClass.child_class_nextJames Almer2021-04-271-13/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavu/opt: add a more general child class iteration APIAnton Khirnov2020-06-101-8/+23
| | | | | | | Use opaque iteration state instead of the previous child class. This mirrors similar changes done in lavf/lavc. Deprecate the av_opt_child_class_next() API.
* avutil/opt: add AV_OPT_FLAG_CHILD_CONSTSMarton Balint2020-05-221-0/+1
| | | | | | | | This will be used for AVCodecContext->profile. By specifying constants in the encoders we won't have to use the common AVCodecContext options table and different encoders can use the same profile name even with different values. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/opt: add full support for AV_OPT_TYPE_DICTMarton Balint2019-12-271-3/+7
| | | | | | | Now it is possible to set them from a string, to serialize them and to use a default value. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/opt: add AV_OPT_FLAG_RUNTIME_PARAM flagPaul B Mahol2019-10-141-0/+1
|
* lavu/opt: add AV_OPT_FLAG_DEPRECATEDClément Bœsch2018-04-261-0/+1
|
* lavu/opt: add AV_OPT_FLAG_BSF_PARAMJun Zhao2018-03-161-0/+1
| | | | | | | add AV_OPT_FLAG_BSF_PARAM for bit stream filter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/opt: remove ABI hackswm42018-02-131-9/+9
| | | | | These were needed for ABI compatibility with Libav. We don't need them anymore.
* Merge commit '619a433eca2c5655c41b799e0b06380020fb1498'James Almer2017-10-231-3/+0
|\ | | | | | | | | | | | | * commit '619a433eca2c5655c41b799e0b06380020fb1498': lavu: Drop deprecated option type Merged-by: James Almer <jamrial@gmail.com>
| * lavu: Drop deprecated option typeVittorio Giovara2017-03-231-3/+0
| | | | | | | | Deprecated in 02/2014.
* | avutil/opt: Add AV_OPT_TYPE_UINT64Michael Niedermayer2016-11-231-0/+1
| | | | | | | | | | | | | | Requested-by: wm4 ([FFmpeg-devel] [PATCH] avutil/opt: Support max > INT64_MAX in write_number() with AV_OPT_TYPE_INT64) Requested-by: ronald ([FFmpeg-devel] [PATCH] avutil/opt: Support max > INT64_MAX in write_number() with AV_OPT_TYPE_INT64) Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavutil/opt: Small bugfix in example.Kacper Michajłow2016-07-241-2/+2
| | | | | | | | | | | | Fix const corectness and zero init the struct. This example code would actually crash when initializing string. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-1/+1
|\| | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-1/+1
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * opt: Add av_opt_copy()Michael Niedermayer2016-03-241-0/+13
| | | | | | | | | | | | | | This includes documentation and other modifications by Lukasz Marek and Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
| * opt: Add const to av_opt_nextLukasz Marek2016-03-241-1/+1
| | | | | | | | | | | | | | Also add const to pointers in static functions within opt.c where possible/necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
* | lavu/opt: add flag to return NULL when applicable in av_opt_getRodger Combs2015-10-091-0/+10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavu/opt: switch AV_OPT flags to shift-based formattingRodger Combs2015-10-091-4/+4
| |
* | avutil/opt: add AV_OPT_TYPE_BOOLClément Bœsch2015-09-081-0/+1
| |
* | lavu: Drop old deprecated AVOption APIHendrik Leppkes2015-09-051-56/+0
| | | | | | | | Deprecated in 2011/10
* | Remove FF_CONST_AVUTIL55 cruftHendrik Leppkes2015-09-051-3/+3
| |
* | Undeprecate av_opt_set_defaults2().Ronald S. Bultje2015-08-181-3/+9
| |
* | options: mark av_get_{int,double,q} as deprecated.Ronald S. Bultje2015-08-181-0/+3
| | | | | | | | Convert last users to av_opt_get_*() counterparts.
* | doc: avoid incorrect phrase 'allows to'Andreas Cadhalpun2015-06-161-1/+1
| | | | | | | | | | | | | | | | Also fix typo found by Lou Logan: Sacrifying -> Sacrificing Reviewed-by: Lou Logan <lou@lrcd.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>