aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
Commit message (Collapse)AuthorAgeFilesLines
* all: fix typos found by codespellTimo Rothenpieler7 days1-2/+2
|
* avcodec: remove remaining references to avcodec_close()James Almer2025-04-041-8/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_BUFFER_MIN_SIZEJames Almer2025-03-281-11/+0
| | | | | | Deprecated since 2024-02-20. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AVCODEC_CLOSEJames Almer2025-03-281-18/+0
| | | | | | Deprecated since 2024-02-09. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_FF_PROFILE_LEVELJames Almer2025-03-281-140/+1
| | | | | | Deprecated since 2023-09-06. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_DROPCHANGEDJames Almer2025-03-281-9/+0
| | | | | | Deprecated since 2023-07-15. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_TICKS_PER_FRAMEJames Almer2025-03-281-17/+0
| | | | | | Deprecated since 2023-05-15. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: deprecate AVCodecContext propertiesMarton Balint2025-01-051-0/+3
| | | | | | | | These properties are unreliable because they depend on the frames decoded so far, users should check directly the presence of the decoded AVFrame side data or AVFrame flags. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavc: improve AVCodecContext.extradata/subtitle_header documentationAnton Khirnov2024-12-151-12/+28
| | | | | | | Mention they are always owned and freed by the codec, except when using deprecated avcodec_close(). Reported-By: DEATH on IRC
* avcodec: add an export_side_data flag to export picture enhancement layersJames Almer2024-09-231-0/+6
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add avcodec_get_supported_config()Niklas Haas2024-09-081-0/+30
| | | | | | | | | | | | | | | | This replaces the myriad of existing lists in AVCodec by a unified API call, allowing us to (ultimately) trim down the sizeof(AVCodec) quite substantially, while also making this more trivially extensible. In addition to the already covered lists, add two new entries for color space and color range, mirroring the newly added negotiable fields in libavfilter. Once the deprecation period passes for the existing public fields, the rough plan is to move the commonly used fields (such as pix_fmt/sample_fmt) into FFCodec, possibly as a union of audio and video configuration types, and then implement the rarely used fields with custom callbacks.
* avcodec/avcodec: Warn about data returned from get_buffer*()Michael Niedermayer2024-08-181-0/+4
| | | | | Text based on suggestion by: epirat07@gmail.com Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/aarch64/fdct: add neon-optimized fdct for aarch64Ramiro Polla2024-05-131-0/+1
| | | | | | | The code is imported from libjpeg-turbo-3.0.1. The neon registers used have been changed to avoid modifying v8-v15. Reviewed-by: Martin Storsjö <martin@martin.st>
* avcodec/hevcdec: export global side data in AVCodecContextJames Almer2024-04-111-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add frame side data array to AVCodecContextJan Ekström2024-03-201-0/+13
| | | | This allows configuring an encoder by using AVFrameSideData.
* avcodec: Fix doxygen comment markerMark Thompson2024-03-131-1/+1
|
* lavc: add a decoder option for configuring side data preferenceAnton Khirnov2024-03-081-0/+34
| | | | This and the following commits fix #10857
* lavc: move AVCodecContext.pts_correction* to DecodeContextAnton Khirnov2024-03-071-10/+0
| | | | | These fields are documented to be non-public and are only used in decode.c
* avcodec/avcodec: Reorder AVCodecContext and AVSubtitleRect fieldsAndreas Rheinhardt2024-03-071-293/+292
| | | | | | Move related fields closer together and try to plug holes. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil: remove deprecated FF_API_REORDERED_OPAQUEJames Almer2024-03-071-16/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_OLD_CHANNEL_LAYOUTJames Almer2024-03-071-29/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_SLICE_OFFSETJames Almer2024-03-071-18/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AVCTX_FRAME_NUMBERJames Almer2024-03-071-15/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AVCODEC_CHROMA_POSJames Almer2024-03-071-28/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_IDCT_NONEJames Almer2024-03-071-4/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/avcodec: downgrade multi-member comment to non-Doxygen commentAndrew Sayers2024-03-041-1/+1
| | | | | | | Doxygen only associates this comment with "pts_correction_num_faulty_pts", causing it to display incorrectly. Signed-off-by: Andrew Sayers <ffmpeg-devel@pileofstuff.org>
* fix /// comments that should be ///<Andrew Sayers2024-03-041-4/+4
| | | | | | Actual command: sed -i -e "s/\([;,] *\)<* *\/\/\/ *<* */\1\/\/\/< /" $( git grep -l "[;,] */// " ) Signed-off-by: Andrew Sayers <ffmpeg-devel@pileofstuff.org>
* avcodec/avcodec: Deprecate AV_INPUT_BUFFER_MIN_SIZEAndreas Rheinhardt2024-02-211-0/+4
| | | | | | | | | | | It used to be used with preallocated packet buffers with the old encode API, but said API is no more and therefore there is no reason for this to be public any more. So deprecate it and use an internal replacement for the encoders using it as an upper bound for the size of their headers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavc: deprecate avcodec_close()Anton Khirnov2024-02-091-1/+4
| | | | | Its use has been discouraged since 2016, but now is no longer used in avformat, so there is no reason to keep it public.
* avcodec/hevcdec: check for DOVI configuration record in AVCodecContext side dataJames Almer2023-10-061-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavc: clarify meaning of avctx.level optionStefano Sabatini2023-10-061-2/+4
|
* avcodec/avcodec: Avoid codec_desc.h, codec_par.h inclusionsAndreas Rheinhardt2023-10-031-5/+9
| | | | | | | | | Instead, use forward declarations; and in order not to affect any user include these headers for them, but not internally. This has the advantage of removing implicit inclusions of these headers from almost all files providing codecs. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/defs: Add AV_PROFILE_* defines, deprecate FF_PROFILE_* definesAndreas Rheinhardt2023-09-071-0/+10
| | | | | | | | | These defines are also used in other contexts than just AVCodecContext ones, e.g. in libavformat. Furthermore, given that these defines are public, the AV-prefix is the right one, so deprecate (and not just move) the FF-macros. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Revert "avcodec/mpeg12dec: Do not alter avctx->rc_buffer_size"James Almer2023-09-061-1/+1
| | | | | | | This reverts commit eb88ccb92e05018b1060cf8126b30eeeff551d3b. AVCodecContext fields are the proper place for a decoder to export such values. This change is in preparation for the following commits.
* lavc/avcodec.h: fix typos in AVCodecContext.pkt_timebase descriptionStefano Sabatini2023-09-061-3/+3
|
* avcodec/avcodec: Add FFHWAccel, hide internals of AVHWAccelAndreas Rheinhardt2023-08-071-133/+0
| | | | | | | | | This commit is the AVHWAccel analogue of commit 20f972701806be20a77f808db332d9489343bb78: It moves the private fields of AVHWAccel to a new struct FFHWAccel extending AVHWAccel in an internal header (namely hwaccel_internal.h). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/avcodec: Remove unnecessary forward declarationAndreas Rheinhardt2023-08-051-2/+0
| | | | | | | This would only be necessary if this header declared a function that takes a (pointer to) struct AVCodecContext as parameter. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavc: deprecate AV_CODEC_FLAG_DROPCHANGEDAnton Khirnov2023-07-151-3/+4
| | | | | | | | This decoding flag makes decoders drop all frames after a parameter change, but what exactly constitutes a parameter change is not well defined and will typically depend on the exact use case. This functionality then does not belong in libavcodec, but rather in user code
* avcodec: MPEG-5 EVC codec registrationDawid Kozinski2023-05-291-0/+3
| | | | | | | | | | | Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec Signed-off-by: Dawid Kozinski <d.kozinski@samsung.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add AVHWAccel.flush callbackLynne2023-05-291-0/+5
|
* avcodec: add AVHWAccel.free_frame_priv callbackLynne2023-05-291-0/+8
|
* lavc/pthread_frame: add support for thread-safe hwaccelsAnton Khirnov2023-05-291-0/+6
|
* lavc: deprecate AVCodecContext.ticks_per_frameAnton Khirnov2023-05-151-0/+8
| | | | | | | | For encoding, this field is entirely redundant with AVCodecContext.framerate. For decoding, this field is entirely redundant with AV_CODEC_PROP_FIELDS.
* lavc: clarify color_range semanticsStefano Sabatini2023-04-021-2/+5
| | | | | | Extend description for decoding and encoding use cases. Address issue: http://trac.ffmpeg.org/ticket/443
* lavc: turn mentions of AV_CODEC_FLAG_RECON_FRAME in doxy into linksAnton Khirnov2023-03-281-2/+2
|
* lavc: expand doxy for AV_CODEC_FLAG_RECON_FRAMEAnton Khirnov2023-03-281-0/+9
|
* lavc/avcodec: fix documentation typoAnton Khirnov2023-03-281-1/+1
|
* lavc/avcodec.h: extend documentation for avcodec_open2()Stefano Sabatini2023-03-121-5/+31
| | | | | | | | | In particular, clarify how to set options in the codec context, and mention when to use avcodec_parameters_to_context(). Fix trac issues: http://trac.ffmpeg.org/ticket/5781 http://trac.ffmpeg.org/ticket/5838
* lavc: disable an obsolete hack for real videoAnton Khirnov2023-03-021-0/+4
| | | | | | AVCodecContext.slice_{count,offset} are unneeded since 2007, commit 383b123ed37df4ff99010646f1fa5911ff1428cc and following. Deprecate those fields.
* avcodec/dca_xll: add detection of DTS:X and DTS:X IMAXMarth642023-03-021-6/+9
| | | | Signed-off-by: Marth64 <marth64@proxyid.net>