summaryrefslogtreecommitdiffstats
path: root/libavcodec/opt.c
Commit message (Collapse)AuthorAgeFilesLines
* Move eval.c and eval.h from libavcodec to libavutil, and make the evalStefano Sabatini2010-06-051-2/+2
| | | | | | 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-011-3/+3
| | | | | | | | | | | | 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-191-5/+5
| | | | | | 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-161-1/+1
| | | | | | | | | | 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-201-1/+1
| | | | | | | | 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-111-1/+1
| | | | | | 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-271-1/+1
| | | | | | 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-171-13/+0
| | | | | | | | | | 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-161-0/+13
| | | | | | | | 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-051-3/+1
| | | | | | | | | | 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-141-1/+3
| | | | 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-141-2/+2
| | | | | | 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-011-1/+1
| | | | | | | 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-221-1/+0
| | | | | | | 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-211-0/+1
| | | | | | 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-191-0/+2
| | | | | | | 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-191-1/+4
| | | | | | av_set_string3(). Originally committed as revision 16241 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement av_set_string3().Stefano Sabatini2008-12-161-11/+24
| | | | Originally committed as revision 16175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement the av_set_number2() internal function, which makes possibleStefano Sabatini2008-12-151-5/+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-151-1/+1
| | | | | | 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-141-21/+0
| | | | | | | | | | | | 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-051-0/+5
| | | | 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-131-1/+1
| | | | | | | 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-081-1/+10
| | | | Originally committed as revision 14134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mark read-only data as constStefan Gehrer2008-06-241-2/+2
| | | | Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Anoter try to make +- behave sanely.Michael Niedermayer2008-05-241-2/+4
| | | | Originally committed as revision 13281 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix + - bug with non flags.Michael Niedermayer2008-05-231-2/+4
| | | | 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-151-1/+2
| | | | | | 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-141-1/+1
| | | | | | Patch by Stefano Sabatini stefanoTODsabatini-lalaCHEZposteTODit Originally committed as revision 13153 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix a typo.Stefano Sabatini2008-05-131-1/+1
| | | | | | 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-051-3/+3
| | | | Originally committed as revision 12324 to svn://svn.ffmpeg.org/ffmpeg/trunk
* FixLuca Abeni2008-02-151-1/+1
| | | | | | | 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-171-0/+42
| | | | 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-131-0/+1
| | | | | | 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-031-3/+1
| | | | Originally committed as revision 11141 to svn://svn.ffmpeg.org/ffmpeg/trunk
* make the AVOption code work with strings instead of crashMichael Niedermayer2007-12-031-2/+2
| | | | Originally committed as revision 11140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+0
| | | | 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-301-1/+1
| | | | | | | | | | | | 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-301-0/+2
| | | | | | | | | 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-071-1/+7
| | | | | | 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-071-7/+7
| | | | | | 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-211-24/+24
| | | | | | aka "the other Diego" Originally committed as revision 7601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixes:Dominik Mierzejewski2006-10-081-1/+1
| | | | | | | | | | 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-071-4/+6
| | | | | | 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-291-7/+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-291-1/+1
| | | | | | 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-271-73/+24
| | | | 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-201-1/+3
| | | | Originally committed as revision 6295 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for SI (k, M, ...) and IEC/IEEE (Ki, Mi, ...) units.Panagiotis Issaris2006-09-181-21/+54
| | | | Originally committed as revision 6287 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow parameter values (AVOptions) to use the 'k', 'M', 'G'Panagiotis Issaris2006-09-141-2/+29
| | | | | | and 'B' postfixes. Originally committed as revision 6249 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud