aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/options_table.h
Commit message (Collapse)AuthorAgeFilesLines
* lavc: add API for exporting reconstructed frames from encodersAnton Khirnov2022-08-021-0/+1
|
* avcodec: add API for automatic handling of icc profilesNiklas Haas2022-07-301-0/+1
| | | | | | | | | | | | | | | This functionally already exists, but as pointed out in #9672 and #9673, requiring users to manually include filters is clumsy, error-prone and hard to use together with tools like ffplay. To streamline ICC profile support, add a new AVCodecContext flag to globally enable reading and writing ICC profiles, automatically, for all appropriate media types. Note that this commit only includes the new API. The implementation is split off to separate commits for readability. Signed-off-by: Niklas Haas <git@haasn.dev>
* configure: Use a separate config_components.h header for $ALL_COMPONENTSMartin Storsjö2022-03-161-0/+2
| | | | | | | | This avoids unnecessary rebuilds of most source files if only the list of enabled components has changed, but not the other properties of the build, set in config.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavcodec: Split version.hMartin Storsjö2022-03-161-1/+1
| | | | | | | | | | | | | | This avoids including version.h in all source files, avoiding unnecessary rebuilds when the version number is bumped. Only version_major.h is included by the main header, which defines availability of e.g. FF_API_* macros, and which is bumped much less often. This isn't done for libavutil/version.h, because that header needs to be included essentially everywhere due to LIBAVUTIL_VERSION_INT being used wherever an AVClass is constructed. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: switch to the new channel layout APIVittorio Giovara2022-03-151-0/+5
| | | | | | | | Since the request_channel_layout is used only by a handful of codecs, move the option to codec private contexts. Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/avcodec, options_table: Deprecate sub_text_formatAndreas Rheinhardt2021-09-201-1/+3
| | | | | | | | Unused since 1f63665ca567fbc49fa80166d468a822c2999efa. Found-by: Soft Works <softworkz@hotmail.com> Reviewed-by: Soft Works <softworkz@hotmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavc: deprecate AV_CODEC_(FLAG|CAP)_TRUNCATEDAnton Khirnov2021-09-201-1/+3
| | | | | | | | | | It is supported only by a few decoders (h263, h263p, mpeg(1|2|)video and mpeg4) and is entirely redundant with parsers. Furthermore, using it leads to missing frames, as flushing the decoder at the end does not work properly. Co-authored-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/options_table: Treat (request_)channel_layout as channel layoutAndreas Rheinhardt2021-08-151-2/+2
| | | | | | | Also adapt some FATE tests to already cover this. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec: Remove deprecated old encode/decode APIsAndreas Rheinhardt2021-04-271-3/+0
| | | | | | | | Deprecated in commits 7fc329e2dd6226dfecaa4a1d7adf353bf2773726 and 31f6a4b4b83aca1d73f3cfc99ce2b39331970bf3. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Remove deprecated ASS with inline timingAndreas Rheinhardt2021-04-271-7/+0
| | | | | | | Deprecated in 22ebbda637257a432c99330ca4c6024665418f0e. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Remove private options from AVCodecContextAndreas Rheinhardt2021-04-271-48/+0
| | | | | | | | | Several options that were too codec-specific were deprecated between 0e6c8532215790bbe560a9eea4f3cc82bb55cf92 and 0e9c4fe254073b209970df3e3cb84531bc388e99. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Remove deprecated coder type optionsAndreas Rheinhardt2021-04-271-7/+0
| | | | | | | Deprecated in be00ec832c519427cd92218abac77dafdc1d5487. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Remove deprecated stat-bits fieldsAndreas Rheinhardt2021-04-271-11/+0
| | | | | | | Deprecated in 16216b713f9a21865cc07993961cf5d0ece24916. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: Remove sidedata-only-packet cruftAndreas Rheinhardt2021-04-271-3/+0
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: enable usage of err_recognition for encodersJan Ekström2021-03-051-9/+9
| | | | | | | | Enables the usage of such values as AV_EF_EXPLODE in encoders, which can be useful in cases such as subtitle encoders where they have the responsibility to validate the correctness of an incoming ASS dialog line. Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
* lavc: shedule old encoding/decoding API for removalAnton Khirnov2021-01-261-0/+2
| | | | | | | | It has been deprecated for 4 years and certain new codecs do not work with it. Also include AVCodecContext.refcounted_frames, as it has no effect with the new API.
* avcodec: remove long dead debug_mv codeJames Almer2021-01-251-7/+0
| | | | | | FF_API_DEBUG_MV has been zero since ffmpeg 4.0 Signed-off-by: James Almer <jamrial@gmail.com>
* libavcodec: add a new AV_CODEC_EXPORT_DATA_FILM_GRAIN flag and optionLynne2020-11-251-0/+1
| | | | | | This introduces a new field to allow decoders to export their film grain parameters. Will be used by the next patch.
* libavcodec/options_table: Add missing colorspace optionsHarry Mallon2020-09-101-15/+18
| | | | | | | * chroma-derived-nc / chroma-derived-c and ictcp Signed-off-by: Harry Mallon <harry.mallon@codex.online> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
* avcodec/options_table: make AVCodecContext->level search for child constantsJames Almer2020-07-291-2/+2
| | | | | | | | | | This change makes it possible for child encoders to define custom level option names which can be used for setting the AVCodecContext->level. Based on 337fe4bcc2 Reviewed-by: jkqxz Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: move mpeg4 profiles to profiles.hMarton Balint2020-05-221-4/+0
| | | | | | Also bump micro version after the recent option changes. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec: move msbc profile to encoderMarton Balint2020-05-221-1/+0
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/options_table: remove dts profilesMarton Balint2020-05-221-5/+0
| | | | | | Our encoder (dcaenc) does not use any of these. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec: move aacenc profiles to profiles.hMarton Balint2020-05-221-10/+0
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/options_table: make AVCodecContext->profile search for child constantsMarton Balint2020-05-221-23/+25
| | | | | | | | | This change makes it possible for child encoders to define custom profile option names which can be used for setting the AVCodecContext->profile. Also rename unit name to something rather unique, so it won't be used elsewhere. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/option_table: mark venc_params as a video decoder flag opt typeJames Almer2020-05-141-1/+1
| | | | | | | It's not meant for audio or subtitles, or for encoders of any kind. Reviewed-by: mypopy@gmail.com <mypopy@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavc: add a flag for exporting AVVideoEncParams from decodersAnton Khirnov2020-05-121-0/+1
|
* remove CHAR_MIN/CHAR_MAX usagePaul B Mahol2020-03-171-3/+3
| | | | It is not needed at all.
* avcodec: add an AVCodecContext flag to export PRFT side data on demandJames Almer2020-02-221-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add an AVCodecContext field to signal types of packet, frame, and ↵James Almer2020-02-221-0/+2
| | | | | | | | coded stream side data to export Add an initial mvs flag to is, analog to the export_mvs flags2 one. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/options_table: err_detect compliant and aggressive should also ↵Michael Niedermayer2019-12-311-2/+2
| | | | | | enable the weaker checks Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/options_table: Correct the flags for AVCodecContext.flags2Jun Zhao2019-10-061-2/+2
| | | | | | | Correct the flags for AVCodecContext.flags2. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avcodec: add max_samplesMichael Niedermayer2019-09-251-0/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Support EBU Tech. 3213-E primaries valuesRaphaël Zumer2019-09-011-0/+1
| | | | | Signed-off-by: Raphaël Zumer <rzumer@tebako.net> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add AV_CODEC_FLAG_DROPCHANGED to flagsGyan Doshi2019-04-201-0/+1
| | | | Discard decoded frames which differ from first decoded frame in stream.
* avcodec: Add discard_sample_percentageMichael Niedermayer2019-01-281-0/+1
| | | | | Suggested-by: BBB Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/options_table: Change some options location in opt table.Jun Zhao2018-12-201-24/+24
| | | | | | | Change the some options location in avcodec_options to make code more readable. And update the fate test with this change. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avcodec: add a subcharenc mode that disables UTF-8 checkwm42018-03-251-0/+1
| | | | | | | | This is for applications which want to explicitly check for invalid UTF-8 manually, and take actions that are better than dropping invalid subtitles silently. (It's pretty much silent because sporadic avcodec error messages are so common that you can't reasonably display them in a prominent and meaningful way in a application GUI.)
* sbc: implement SBC encoder (low-complexity subband codec)Aurelien Jacobs2018-03-071-0/+1
| | | | This was originally based on libsbc, and was fully integrated into ffmpeg.
* Merge commit '5b145290df2998a9836a93eb925289c6c8b63af0'Mark Thompson2018-02-121-0/+1
|\ | | | | | | | | | | | | * commit '5b145290df2998a9836a93eb925289c6c8b63af0': lavc: Add support for increasing hardware frame pool sizes Merged-by: Mark Thompson <sw@jkqxz.net>
| * lavc: Add support for increasing hardware frame pool sizesMark Thompson2018-02-111-0/+1
| | | | | | | | | | | | | | | | | | | | AVCodecContext.extra_hw_frames is added to the size of hardware frame pools created by libavcodec for APIs which require fixed-size pools. This allows the user to keep references to a greater number of frames after decode, which may be necessary for some use-cases. It is also added to the initial_pool_size value returned by avcodec_get_hw_frames_parameters() if a fixed-size pool is required.
* | Merge commit '0648dec19db83bc8c87814d195e32cbad5698a40'James Almer2017-10-231-3/+0
|\| | | | | | | | | | | | | * commit '0648dec19db83bc8c87814d195e32cbad5698a40': lavc: Drop deprecated stream codec tag Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated stream codec tagVittorio Giovara2017-03-231-3/+0
| | | | | | | | Deprecated in 07/2015.
* | Merge commit '94eed68ace9f2416af8457fcbf142b175928c06b'James Almer2017-10-231-47/+0
|\| | | | | | | | | | | | | * commit '94eed68ace9f2416af8457fcbf142b175928c06b': lavc: Drop deprecated options moved to private contexts Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated options moved to private contextsVittorio Giovara2017-03-231-46/+0
| | | | | | | | Deprecated in 10/2014 and 07/2015.
* | avcodec: drop deprecated vismv optionJames Almer2017-10-231-6/+0
| | | | | | | | | | | | Deprecated in 08/2014. Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '5182a28b5de060c51c21b36053ab205bfbbbbe31'James Almer2017-10-231-3/+0
|\| | | | | | | | | | | | | * commit '5182a28b5de060c51c21b36053ab205bfbbbbe31': lavc: Drop deprecated global afd field Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated global afd fieldVittorio Giovara2017-03-231-3/+0
| | | | | | | | Deprecated in 08/2014.
* | Merge commit 'bb45d11282d93af0e8d4c8fd6bc6405f7439a940'James Almer2017-10-231-12/+0
|\| | | | | | | | | | | | | * commit 'bb45d11282d93af0e8d4c8fd6bc6405f7439a940': lavc: Drop deprecated codec flags Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated codec flagsVittorio Giovara2017-03-231-12/+0
| | | | | | | | Deprecated between 04/2014 - 05/2015.