summaryrefslogtreecommitdiff
path: root/libavutil/opt.c
Commit message (Collapse)AuthorAge
* opt: attempt to improve options dump output.Clément Bœsch2013-03-31
| | | | Add some indent and remove the '-' prefix for filters.
* Merge commit 'cf53704c55378cc0dcfc16637cdac7d58f0b3107'Michael Niedermayer2013-03-28
|\ | | | | | | | | | | | | | | | | | | | | | | * commit 'cf53704c55378cc0dcfc16637cdac7d58f0b3107': AVOptions: make av_set_options_string() forward options to child objects win32: Use 64-bit fstat/lseek variants for MSVC as well win32: Make ff_win32_open more robust Conflicts: libavformat/os_support.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVOptions: make av_set_options_string() forward options to child objectsAnton Khirnov2013-03-28
| |
* | lavu/opt: add AV_OPT_TYPE_DURATION.Nicolas George2013-03-20
| |
* | avutil: fix compilationMichael Niedermayer2013-03-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: add AV_OPT_VIDEO_RATE optionPaul B Mahol2013-03-20
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit 'e4a7b2177d14678ae240edcabaacfe2b14619b7b'Michael Niedermayer2013-03-16
|\| | | | | | | | | | | | | | | | | | | | | * commit 'e4a7b2177d14678ae240edcabaacfe2b14619b7b': vf_showinfo: remove its useless init function AVOptions: fix using named constants with child contexts. Conflicts: libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVOptions: fix using named constants with child contexts.Anton Khirnov2013-03-16
| | | | | | | | | | The named constant needs to be searched for in the same object on which the option is set, i.e. target_obj.
| * AVOption: remove an unused function parameter.Anton Khirnov2013-03-16
| |
| * Drop unnecessary 'l' length modifier when printfing double values.Diego Biurrun2012-12-31
| | | | | | | | | | %f denotes a double argument and 'l' does nothing in this case according to the C spec.
* | lavu/opt: fix weird alignStefano Sabatini2013-03-05
| |
* | lavu/opt-test: do not explicitly set default value in test_ctxStefano Sabatini2013-03-05
| | | | | | | | | | Let av_opt_set_defaults() set the value, which is simpler and more idiomatic.
* | Merge commit '418693bdc5edad72b0d055f741931612d797eb05'Michael Niedermayer2012-12-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '418693bdc5edad72b0d055f741931612d797eb05': lavc: rewrite and extend AVFrame doxy opt: avoid segfault in av_opt_next() if the class does not have an option list ttadec: fix last frame handling when seeking alacdec: do not be too strict about the extradata size Conflicts: libavcodec/alac.c libavcodec/avcodec.h libavcodec/tta.c libavutil/opt.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * opt: avoid segfault in av_opt_next() if the class does not have an option listJustin Ruggles2012-12-22
| | | | | | | | CC: libav-stable@libav.org
* | opt: fix memleak on error of range_arrayMichael Niedermayer2012-12-11
| | | | | | | | | | Fixes CID747739 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: change the way ranges are printedStefano Sabatini2012-12-08
| |
* | lavu/opt: make av_opt_query_ranges_default() return a meaningful error codeStefano Sabatini2012-12-08
| |
* | lavu/opt: perform misc cosmetical fixesStefano Sabatini2012-12-08
| |
* | opt_list: fix vertical alignment of typesMichael Niedermayer2012-12-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | opt: print ranges in opt_list()Michael Niedermayer2012-12-08
| | | | | | | | | | | | The formating can and should be improved. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | opt: Add support to query rangesMichael Niedermayer2012-12-08
| | | | | | | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9d5c62ba5b586c80af508b5914934b1c439f6652'Michael Niedermayer2012-12-06
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '9d5c62ba5b586c80af508b5914934b1c439f6652': lavu/opt: do not filter out the initial sign character except for flags eval: treat dB as decibels instead of decibytes float_dsp: add vector_dmul_scalar() to multiply a vector of doubles Conflicts: libavutil/eval.c tests/ref/fate/eval Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu/opt: do not filter out the initial sign character except for flagsJustin Ruggles2012-12-05
| | | | | | | | This allows parsing of special-case negative numbers like decibels.
* | Merge commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967'Michael Niedermayer2012-12-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb45553f577f8e0ebfe05d3287e1b6fa5859b967': Remove pointless #undefs of previously forbidden functions. fate: Add dependencies for bmp, cdxl, dfa, mp3 Conflicts: doc/examples/muxing.c libavfilter/filtfmts.c libavutil/des.c libavutil/eval.c libavutil/log.c libavutil/parseutils.c tests/fate/mp3.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove pointless #undefs of previously forbidden functions.Anton Khirnov2012-12-04
| |
| * lavu: remove disabled avoptions cruftAnton Khirnov2012-10-23
| |
* | lavu/opt: allow to set sample and pixel format with av_opt_set_int()Stefano Sabatini2012-12-01
| | | | | | | | | | | | | | | | | | | | | | This change requires the user to specify min and max value, and makes possible to prevent the user to set AV_{SAMPLE,PIX}_FMT_NONE if forbidden. Add required ifdeffery in case of mixed libraries, when libavutil is updated but not the other libraries. This is a followup of 08d0969c1402ccec4dce44bd430128fb59d7b790.
* | lavu/opt: change the way default pixel and sample format value is setStefano Sabatini2012-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the i64 field rather than the string value. Using a string to set a default sample/pixel format is weird, also the new interface is more consistent with the rest of the API. This is technically an API break, but hopefully there are no applications using this feature outside of FFmpeg. In order to save backward compatibility with mixed libraries in case libavutil is updated but not the other libraries, some ifdeffery hacks are added. Note that the version check is only performed when class->version != 0, since if it is not defined then we assume that no version was defined and the class is not affected by the change. We will luckily get rid of the hack at the next major bump.
* | lavu/opt: add support for reading pixel and sample format through av_get_int()Stefano Sabatini2012-11-25
| | | | | | | | | | Simplify backward compatibility, when switching from AV_OPT_TYPE_INT to AV_OPT_TYPE_SAMPLE/PIXEL_FMT.
* | lavu/opt: fix range shown in set_format() log messageStefano Sabatini2012-11-25
| |
* | lavu/opt: add av_opt_ accessors for pixel/format/image size optionsStefano Sabatini2012-11-25
| | | | | | | | | | The interface is implemented against the style of the other options accessors. Possibly simplify programmatic setting of options.
* | lavu/opt: fix av_opt_get_key_value() API.Nicolas George2012-11-16
| | | | | | | | | | | | | | Do not skip the end delimiter. Reserve positive return values. This is an API break, but the function was introduced less than two weeks ago.
* | lavu/opt: show valid range in case of out-of-range valueStefano Sabatini2012-11-07
| | | | | | | | Improve feedback.
* | lavu/opt: implement av_opt_get_key_value().Nicolas George2012-11-04
| | | | | | | | | | | | | | | | This function does the low-level work of av_opt_set_from_string() but can be used when there is no option context or when a generic handling of unknown keys is needed. av_opt_set_from_string() is changed to make use of it.
* | lavu/opt: parse key into a mallocated buffer.Nicolas George2012-11-04
| | | | | | | | | | It removes the hardcoded limit on the key size without making the code much more complex, and it makes for a more versatile API.
* | lavu/opt: set sample format default value, and accept NULL valueStefano Sabatini2012-11-03
| | | | | | | | | | Fix commit c9eaa98a3e0b1db75680f9ea28e01f21cada1dc3. +10l.
* | lavu/opt: prefer if(){}else{} over if()else{} constructStefano Sabatini2012-11-03
| | | | | | | | Improve consistency.
* | lavu/opt: add AV_OPT_SAMPLE_FMT optionStefano Sabatini2012-11-03
| |
* | av_opt_set_from_string: fix memleakMichael Niedermayer2012-10-11
| | | | | | | | | | Fixes CID733801 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '716d413c13981da15323c7a3821860536eefdbbb'Michael Niedermayer2012-10-08
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '716d413c13981da15323c7a3821860536eefdbbb': Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat Conflicts: doc/examples/muxing.c ffmpeg.h ffmpeg_filter.c ffmpeg_opt.c ffplay.c ffprobe.c libavcodec/8bps.c libavcodec/aasc.c libavcodec/aura.c libavcodec/avcodec.h libavcodec/avs.c libavcodec/bfi.c libavcodec/bmp.c libavcodec/bmpenc.c libavcodec/c93.c libavcodec/cscd.c libavcodec/cyuv.c libavcodec/dpx.c libavcodec/dpxenc.c libavcodec/eatgv.c libavcodec/escape124.c libavcodec/ffv1.c libavcodec/flashsv.c libavcodec/fraps.c libavcodec/h264.c libavcodec/huffyuv.c libavcodec/iff.c libavcodec/imgconvert.c libavcodec/indeo3.c libavcodec/kmvc.c libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/ljpegenc.c libavcodec/mjpegdec.c libavcodec/mjpegenc.c libavcodec/motionpixels.c libavcodec/mpeg12.c libavcodec/mpeg12enc.c libavcodec/mpeg4videodec.c libavcodec/mpegvideo_enc.c libavcodec/pamenc.c libavcodec/pcxenc.c libavcodec/pgssubdec.c libavcodec/pngdec.c libavcodec/pngenc.c libavcodec/pnm.c libavcodec/pnmdec.c libavcodec/pnmenc.c libavcodec/ptx.c libavcodec/qdrw.c libavcodec/qpeg.c libavcodec/qtrleenc.c libavcodec/raw.c libavcodec/rawdec.c libavcodec/rl2.c libavcodec/sgidec.c libavcodec/sgienc.c libavcodec/snowdec.c libavcodec/snowenc.c libavcodec/sunrast.c libavcodec/targa.c libavcodec/targaenc.c libavcodec/tiff.c libavcodec/tiffenc.c libavcodec/tmv.c libavcodec/truemotion2.c libavcodec/utils.c libavcodec/vb.c libavcodec/vp3.c libavcodec/wnv1.c libavcodec/xl.c libavcodec/xwddec.c libavcodec/xwdenc.c libavcodec/yop.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/buffersrc.c libavfilter/drawutils.c libavfilter/formats.c libavfilter/src_movie.c libavfilter/vf_ass.c libavfilter/vf_drawtext.c libavfilter/vf_fade.c libavfilter/vf_format.c libavfilter/vf_hflip.c libavfilter/vf_lut.c libavfilter/vf_overlay.c libavfilter/vf_pad.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_yadif.c libavfilter/video.c libavfilter/vsrc_testsrc.c libavformat/movenc.c libavformat/mxf.h libavformat/utils.c libavformat/yuv4mpeg.c libavutil/imgutils.c libavutil/pixdesc.c libswscale/input.c libswscale/output.c libswscale/swscale_internal.h libswscale/swscale_unscaled.c libswscale/utils.c libswscale/x86/swscale_template.c libswscale/x86/yuv2rgb.c libswscale/x86/yuv2rgb_template.c libswscale/yuv2rgb.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/opt: cosmetic fixes forgotten in the previous patch.Nicolas George2012-09-30
| |
* | opt: implement av_opt_set_from_string().Nicolas George2012-09-30
| | | | | | | | | | | | | | It is similar to av_set_options_string() but accepts a list of options that can be in shorthand: if the key is omitted on the first fields, the keys from the shorthand list are assumed, in order.
* | lavu/opt: reindent after last commitStefano Sabatini2012-09-07
| |
* | lavu/opt: support NULL and special "none" values for size and pixel format ↵Stefano Sabatini2012-09-05
| | | | | | | | | | | | | | options Allow to specify NULL values explicitly, thus overriding the default values set in the context.
* | Merge commit '21bc44038491e525335ad763883b0288402ff6a0'Michael Niedermayer2012-09-05
|\| | | | | | | | | | | | | | | | | | | | | * commit '21bc44038491e525335ad763883b0288402ff6a0': avopt: Explicitly store rational option defaults in .dbl Conflicts: libavfilter/buffersrc.c libavfilter/vsrc_testsrc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avopt: Explicitly store rational option defaults in .dblMartin Storsjö2012-09-04
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'e6153f173a49e5bfa70b0c04d2f82930533597b9'Michael Niedermayer2012-09-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e6153f173a49e5bfa70b0c04d2f82930533597b9': avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member Conflicts: libavcodec/libopenjpegdec.c libavcodec/libopenjpegenc.c libavcodec/libx264.c libavcodec/mpeg12enc.c libavcodec/options_table.h libavcodec/snowenc.c libavcodec/tiffenc.c libavdevice/v4l2.c libavdevice/x11grab.c libavfilter/af_amix.c libavfilter/af_asyncts.c libavfilter/af_join.c libavfilter/buffersrc.c libavfilter/src_movie.c libavfilter/vf_delogo.c libavfilter/vf_drawtext.c libavformat/http.c libavformat/img2dec.c libavformat/img2enc.c libavformat/movenc.c libavformat/mpegenc.c libavformat/mpegtsenc.c libavformat/options_table.h libavformat/segment.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'd58dd4b5b5d31cfd4092e38a5f2c894eee2ab078'Michael Niedermayer2012-09-05
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'd58dd4b5b5d31cfd4092e38a5f2c894eee2ab078': avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member Conflicts: libavcodec/libvpxenc.c libavcodec/options_table.h libavfilter/vf_drawtext.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>