summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* libs: bump major version for all librariesJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavc: move AVCodecContext.pts_correction* to DecodeContextAnton Khirnov2024-03-07
| | | | | These fields are documented to be non-public and are only used in decode.c
* avformat/avformat: Reorder AVFormatContext fieldsJames Almer2024-03-07
| | | | | | Move related fields closer together. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/avformat: remove AVFormatContext.ts_idJames Almer2024-03-07
| | | | | | It's been replaced by a demuxer exported private option. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/codec_par: Reorder AVCodecParameters fieldsJames Almer2024-03-07
| | | | | | Move related fields closer together. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/avcodec: Reorder AVCodecContext and AVSubtitleRect fieldsAndreas Rheinhardt2024-03-07
| | | | | | Move related fields closer together and try to plug holes. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext: Allocate AVHWFramesCtx jointly with its internalsAndreas Rheinhardt2024-03-07
| | | | | | | | | | | This is possible because the lifetime of these structures coincide. It has the advantage of allowing to remove AVHWFramesInternal from the public header; given that AVHWFramesInternal.priv is no more, most accesses to AVHWFramesInternal are no more; indeed, the only field accessed of it outside of hwcontext.c is the internal frame pool, making this commit very simple. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext_internal: Remove unused AVHWFramesInternal.privAndreas Rheinhardt2024-03-07
| | | | | | | | It is no longer used by any hwcontext, as they all allocate their private data together with their public data and access it via AVHWFramesContext.hwctx. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext_d3d12va: Allocate pub and priv frames hwctx togetherAndreas Rheinhardt2024-03-07
| | | | | | | | | This is possible because the lifetime of both coincide. Besides reducing the number of allocations this also simplifies access to D3D12VAFramesContext as one no longer has to go through AVHWFramesInternal. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext: Allocate AVHWDevCtx jointly with its internalsAndreas Rheinhardt2024-03-07
| | | | | | | | | | This is possible because the lifetime of these structures coincide. It has the advantage of allowing to remove the AVHWDeviceInternal from the public header; given that AVHWDeviceInternal.priv is no more, all accesses to it happen in hwcontext.c, so that this commit moves the joint structure there. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext: Remove unused AVHWDeviceInternal.privAndreas Rheinhardt2024-03-07
| | | | | | | | It is no longer used by any hwcontext, as they all allocate their private data together with their public data and access it via AVHWDeviceContext.hwctx. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/hwcontext_d3d12va: Allocate pub and priv device hwctx togetherAndreas Rheinhardt2024-03-07
| | | | | | | | | This is possible because the lifetime of both coincide. Besides reducing the number of allocations this also simplifies access to D3D12VADevicePriv as one no longer has to go through AVHWDeviceInternal. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter/avfilter: Reorder structure fieldsAndreas Rheinhardt2024-03-07
| | | | | | Move related fields closer together and try to plug holes. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avfilter/avfilter: Remove always-NULL pointers to internal contextsAndreas Rheinhardt2024-03-07
| | | | | | | Made possible by db98b0e04e04079be3ee51d14659b660c0f7f77a and 03567ed80cf1cfdbf59f902cbf1dd2c35cc3de6a. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/demux: Use enum AVCodecID for raw_codec_idAndreas Rheinhardt2024-03-07
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinelsAndreas Rheinhardt2024-03-07
| | | | | | Make AVOptionType start with 1 instead. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/avformat: Add FFInputFormat, hide internals of AVInputFormatAndreas Rheinhardt2024-03-07
| | | | | | | | | | | | | | | | | | | | | This commit does for AVInputFormat what commit 59c9dc82f450638a3068deeb1db5c56f6d155752 did for AVOutputFormat: It adds a new type FFInputFormat, moves all the internals of AVInputFormat to it and adds a now reduced AVInputFormat as first member. This does not affect/improve extensibility of both public or private fields for demuxers (it is still a mess due to lavd). This is possible since 50f34172e0cca2cabc5836308ec66dbf93f5f2a3 (which removed the last usage of an internal field of AVInputFormat in fftools). (Hint: tools/probetest.c accesses the internals of FFInputFormat as well, but given that it is a testing tool this is not considered a problem.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Revert "avcodec: Rename ff_kbd_window_init() as it will be needed from ↵Andreas Rheinhardt2024-03-07
| | | | | | | | | | | | | | | | | | outside libavcodec" This reverts commits fd5aa93a37b3fa21195c6d7b22ef655124020e09 and cf00f60bab1f79213c274a6cd4357b32bd5c0101 ("avcodec/kbdwin: Support arbitrary sized windows"). The change in question has only been made for libavradio. in anticipation of merging it into the main tree. This has not happened, so this commit reverts the changes to kbdwin that are not used for anything else. In particular, these functions are no longer exported (as avpriv functions); notice that the fixed-point function has been exported despite having never been used outside of lavc. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/version_major: postpone some deprecations until the next bumpJames Almer2024-03-07
| | | | | | They are too recent. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/version_major: postpone some deprecations until the next bumpJames Almer2024-03-07
| | | | | | They are either too recent, or are not trivial to remove. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/version_major: postpone some deprecations until the next bumpJames Almer2024-03-07
| | | | | | They are either too recent, or can't be removed yet. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_FRAME_PICTURE_NUMBERJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_REORDERED_OPAQUEJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_PKT_DURATIONJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_AV_FOPEN_UTF8James Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_OLD_CHANNEL_LAYOUTJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_XVMCJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_FIFO_OLD_APIJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: remove deprecated FF_API_FIFO_PEEK2James Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter: remove deprecated FF_API_LIBPLACEBO_OPTSJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: remove deprecated FF_API_AVIO_WRITE_NONCONSTJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: remove deprecated FF_API_AVFORMAT_IO_CLOSEJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: remove deprecated FF_API_AVIODIRCONTEXTJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: remove deprecated FF_API_GET_END_PTSJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_CODEC_CRYSTAL_HDJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_SLICE_OFFSETJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AVCTX_FRAME_NUMBERJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_VT_HWACCEL_CONTEXTJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AVCODEC_CHROMA_POSJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_VT_OUTPUT_CALLBACKJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_AYUV_CODECIDJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_SVTAV1_OPTSJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: remove deprecated FF_API_IDCT_NONEJames Almer2024-03-07
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/hq_hqa: Make VLC tables staticAndreas Rheinhardt2024-03-07
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hq_hqadata: Move data in a headerAndreas Rheinhardt2024-03-07
| | | | | | | | It is only used by hq_hqa.c, so said header can simply be included there. Also move the code to initialize the VLCs to hq_hqa.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vulkan_decode: Remove always-false checkAndreas Rheinhardt2024-03-07
| | | | | | | | These fields are set for all Vulkan decoding hwaccels; they would be useless if it were different. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vulkan_decode: Un-sparse extensions tableAndreas Rheinhardt2024-03-07
| | | | | | | | | Only three of the 226 (== AV_CODEC_ID_AV1) entries have been used. Unsparsing this table is especially important given that this array lives in .data.rel.ro. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vulkan_video: Merge dec part of FFVkCodecMap and extension propsAndreas Rheinhardt2024-03-07
| | | | | | | | | | | | | | | | All the fields of FFVkCodecMap are either decoder-only or encoder-only (with the latter being unused and unset for now). Yet there is already a per-decoder struct containing static information about these decoders, namely VkExtensionProperties. This commit merges the decoder-parts of FFVkCodecMap with the VkExtensionProperties into a common structure. Given that FFVkCodecMap is now unused, it is removed. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vulkan_video: Remove unused arrayAndreas Rheinhardt2024-03-07
| | | | | Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/options: Deprecate av_fmt_ctx_get_duration_estimation_method()Andreas Rheinhardt2024-03-06
| | | | | | Forgotten in b7785d10b00c88029d8af7dbddac09ab0d6f2b7f. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>