summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* lavu/opt: factor per-type dispatch out of av_opt_get()Anton Khirnov2024-03-08
| | | | Will be useful in following commits.
* avformat/tests/movenc: Constify write functionsAndreas Rheinhardt2024-03-08
| | | | | | Forgotten in 2a68d945cd74265bb71c3d38b7a2e7f7d7e87be5. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavfi/vulkan_filter: fix input formatHaihao Xiang2024-03-08
| | | | | | | | | | | | | | Otherwise s->input_format is always yuv420p. This fixes invalid output format for hwframe download in the command below: ./ffmpeg -init_hw_device vulkan -f lavfi \ -i testsrc=duration=1,format=nv12 \ -vf 'hwupload,format=vulkan,scale_vulkan=1024:768,hwdownload,format=nv12' \ -f null - Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
* avutil/dict: Deduplicate freeing dictionaryAndreas Rheinhardt2024-03-08
| | | | | Reviewed-by: epirat07@gmail.com Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* checkasm/hevc_deblock: Initialize bufferAndreas Rheinhardt2024-03-08
| | | | | | Fixes the hevc_deblock checkasm test with Valgrind. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/ccaption_dec: Avoid relocations for stringsAndreas Rheinhardt2024-03-08
| | | | | | | | | | | | | The longest string here takes four bytes, so using an array of pointers is wasteful even when ignoring the cost of relocations; the lack of relocations also implies that this array will now be put into .rodata and not into .data.rel.ro. Static asserts are used to ensure that all strings are always properly zero-terminated. Tested-by: Marth64 <marth64@proxyid.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vdpau: Deprecate redundant allocators and getter/setterAndreas Rheinhardt2024-03-08
| | | | | | | | | | | The allocators have been superseded by av_vdpau_bind_context(). The latter have only been added "to allow multiple forks to add fields to the structure without breaking ABI" [1], but libav is no more, so this is not needed any longer. [1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2013-August/146954.html Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/vdpau: Remove outdated commentAndreas Rheinhardt2024-03-08
| | | | | | Forgotten in b773a8d8c1dfe4cfc6eabf509e26ab011270b9ed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fftools/ffprobe: add AVFilmGrainParams printingNiklas Haas2024-03-07
|
* avfilter/vf_showinfo: add AVFilmGrainAOMParams supportNiklas Haas2024-03-07
| | | | For testing purposes.
* avcodec/xvmc: Remove headerAndreas Rheinhardt2024-03-07
| | | | | | | Forgotten in a12cd3be98e8aba6e74274192ec6532988aa9444. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavf/matroskadec: add missing linebreaks in error messagesAnton Khirnov2024-03-07
|
* 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>