summaryrefslogtreecommitdiff
path: root/libavcodec/opt.c
Commit message (Collapse)AuthorAge
* Move AVOptions from libavcodec to libavutilMichael Niedermayer2010-09-26
| | | | Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate av_opt_show() in favor of a new function av_opt_show2(),Stefano Sabatini2010-09-24
| | | | | | which allows to specify only a subset of all the options to show. Originally committed as revision 25166 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move eval.c and eval.h from libavcodec to libavutil, and make the evalStefano Sabatini2010-06-05
| | | | | | API public. Originally committed as revision 23485 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_parse_expr() and ff_parse_and_eval_expr() return an intStefano Sabatini2010-06-01
| | | | | | | | | | | | containing an error code. Allow these functions to convey the reason of the failure to the calling function, failure which is not always due to a parsing error but it may depend for example on a memory problem. Also fix several potential memleaks. Originally committed as revision 23402 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change eval API to take parent log context and log level offset.Michael Niedermayer2010-05-19
| | | | | | this is based on stefanos work, especially all bugs are his fault ;) Originally committed as revision 23201 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change the order of parameters for ff_eval_expr() andStefano Sabatini2010-05-16
| | | | | | | | | | ff_parse_and_eval_expr(), place the names for constants/functions before the corresponding values. This looks more readable, as the user is expected to know the names before the values. Originally committed as revision 23149 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename ff_eval2() to ff_parse_and_eval_expr().Stefano Sabatini2010-04-11
| | | | | | The new name better expresses what the function does. Originally committed as revision 22845 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix misc typos, patch byStefano Sabatini2010-01-27
| | | | | | Fabian Greffrath base64_decode(PGZhYmlhbkBncmVmZnJhdGguY29tPg==). Originally committed as revision 21473 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r20249, it seems the union trick works everywhereMichael Niedermayer2009-10-17
| | | | | | | | | | Original commit message: Very evil missuse of svn to test if AVOption and AVOption2 are compatible. If this test triggers anywhere for anyone, revert this commit immedeatly. Ill revert this in a day or 2, its just so we know beforehand if the idea with the union is doable or not without breaking ABI/API. Originally committed as revision 20264 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Very evil missuse of svn to test if AVOption and AVOption2 are compatible.Michael Niedermayer2009-10-16
| | | | | | | | If this test triggers anywhere for anyone, revert this commit immedeatly. Ill revert this in a day or 2, its just so we know beforehand if the idea with the union is doable or not without breaking ABI/API. Originally committed as revision 20249 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert:Michael Niedermayer2009-10-05
| | | | | | | | | | r18826 | stefano | 2009-05-14 20:50:58 +0200 (Thu, 14 May 2009) | 2 lines Make av_set_string3() print a message in case of unknown option. This change led to multiple identical error messages to be printed if an option was not found. Originally committed as revision 20172 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_set_string3() print a message in case of unknown option.Stefano Sabatini2009-05-14
| | | | Originally committed as revision 18826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Provide a context to av_log() calls in av_set_number2() andStefano Sabatini2009-05-14
| | | | | | av_set_string3(). Originally committed as revision 18825 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert r16257:Andreas Öman2008-12-22
| | | | | | | Include "libavutil/common.h" where we use llrint() in case ffmpeg's own llrint() is to be used. Originally committed as revision 16282 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Include "libavutil/common.h" where we use llrint() in case ffmpeg'sAndreas Öman2008-12-21
| | | | | | own llrint() is to be used. Originally committed as revision 16257 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Put under #if LIBAVCODEC_VERSION_MAJOR < 53 the deprecated functionsStefano Sabatini2008-12-19
| | | | | | | av_set_string() and av_set_string2(), they will be dropped at the next major bump. Originally committed as revision 16243 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove calls to deprecated av_set_string2() with calls toStefano Sabatini2008-12-19
| | | | | | av_set_string3(). Originally committed as revision 16241 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_set_string3().Stefano Sabatini2008-12-16
| | | | Originally committed as revision 16175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the av_set_number2() internal function, which makes possibleStefano Sabatini2008-12-15
| | | | | | | to distinguish between a not found option failure and a not valid value failure. Originally committed as revision 16156 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove ending period in a log message, which was inconsistent withStefano Sabatini2008-12-15
| | | | | | most other messages. Originally committed as revision 16155 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove set_all_opt() and its use in av_set_string2(). MakeStefano Sabatini2008-12-14
| | | | | | | | | | | | av_set_string() and av_set_string2() do not accept as parameter the name of a named constant. This avoids av_set_string2() and av_set_string() to misbehave when there is an option and a named constant with the same name. See the thread: "[PATCH] Remove libavcodec/opt.c:set_all_opt()". Originally committed as revision 16134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix FF_OPT_TYPE_INT64 support of defaults.Michael Niedermayer2008-12-05
| | | | Originally committed as revision 16008 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the logic to access the location of a string to free when settingStefano Sabatini2008-07-13
| | | | | | | a new value for a string with av_set_string2(). Fix a segmentation fault. Originally committed as revision 14219 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix the av_set_string() free / alloc issue.Michael Niedermayer2008-07-08
| | | | Originally committed as revision 14134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mark read-only data as constStefan Gehrer2008-06-24
| | | | Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Anoter try to make +- behave sanely.Michael Niedermayer2008-05-24
| | | | Originally committed as revision 13281 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix + - bug with non flags.Michael Niedermayer2008-05-23
| | | | Originally committed as revision 13243 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make av_set_string() fail when number could not be set.Stefano Sabatini2008-05-15
| | | | | | Patch by Stefano Sabatini stefano§sabatini-lalaATposte§it Originally committed as revision 13155 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update offset in the option string later, to have a better error message.Stefano Sabatini2008-05-14
| | | | | | Patch by Stefano Sabatini stefanoTODsabatini-lalaCHEZposteTODit Originally committed as revision 13153 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a typo.Stefano Sabatini2008-05-13
| | | | | | Patch by Stefano Sabatini stefanoDOTsabatini-lalaATpostePOINTit Originally committed as revision 13140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix handling flags with the MSB set.Michael Niedermayer2008-03-05
| | | | Originally committed as revision 12324 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FixLuca Abeni2008-02-15
| | | | | | | opt.c: In function ‘av_set_string’: opt.c:164: warning: passing argument 9 of ‘ff_eval2’ from incompatible pointer type Originally committed as revision 11937 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add FF_OPT_TYPE_BINARY and use it to add a cryptokey optionReimar Döffinger2007-12-17
| | | | Originally committed as revision 11250 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a missing break, before av_set_number would always return NULL forReimar Döffinger2007-12-13
| | | | | | FF_OPT_TYPE_RATIONAL options instead of the corresponding AVOption Originally committed as revision 11213 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplifyMichael Niedermayer2007-12-03
| | | | Originally committed as revision 11141 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make the AVOption code work with strings instead of crashMichael Niedermayer2007-12-03
| | | | Originally committed as revision 11140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-05
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a bug in av_find_opt(). Because some of the AVOption structures have fieldKamil Nowosad2007-03-30
| | | | | | | | | | | | unit = NULL, the function could pass NULL to strcmp and cause a segfault. Patch by Kamil Nowosad, k nowosad % students mimuw edu pl. Original thread: Subject: [PATCH] small bugfix in av_find_opt() Date: 03/23/2007 12:20 PM Originally committed as revision 8553 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add 'all' and 'none' options for partitions configLimin Wang2007-03-30
| | | | | | | | | Patch by Limin Wang % lance P lmwang A gmail P com % Original thread: date: Mar 24, 2007 3:53 PM subject: [Ffmpeg-devel] [PATCH] add all and none options for partitions config Originally committed as revision 8552 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add av_opt_set_defaults2() which sets just defaults from AVOptions whos ↵Michael Niedermayer2007-03-07
| | | | | | flags match a user specified & mask = flags Originally committed as revision 8280 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make av_find_opt() available to the public and add a mask+flags parameter to ↵Michael Niedermayer2007-03-07
| | | | | | search for specific AVOptions Originally committed as revision 8279 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Constantize AVOption, solve few warnings, patch from flameeyes@gentoo.org ↵Luca Barbato2007-01-21
| | | | | | aka "the other Diego" Originally committed as revision 7601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixes:Dominik Mierzejewski2006-10-08
| | | | | | | | | | opt.c:327: warning: no return statement in function returning non-void opt_list return value is never checked. Approved by Michael. Originally committed as revision 6593 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-07
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reformat the output of the list of available AVOptions, by indenting thePanagiotis Issaris2006-09-29
| | | | | | | parameters of certain options and displaying them _right after_ the actual option taking the parameter. Originally committed as revision 6385 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pull out the ff_eval* from the mpegvideo header, as it doesn't belong there andPanagiotis Issaris2006-09-29
| | | | | | put it in a separate file. Originally committed as revision 6383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVOption parsign code use ff_eval2()Panagiotis Issaris2006-09-27
| | | | Originally committed as revision 6357 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Inform the user that a certain AVOption is out of range.Panagiotis Issaris2006-09-20
| | | | Originally committed as revision 6295 to svn://svn.ffmpeg.org/ffmpeg/trunk