Commit Graph

118387 Commits

Author SHA1 Message Date
Paul B Mahol
0b279cd954 avfilter/af_surround: misc fixes 2024-10-25 22:13:12 +02:00
Paul B Mahol
ea81ac4440 avfilter/af_ardftsrc: fix for possible integer overflow 2024-10-25 18:08:53 +02:00
Paul B Mahol
70079ea501 avfilter/af_surround: fix remaining spread_* issues 2024-10-25 09:14:42 +02:00
Paul B Mahol
035632ed89 avfilter/af_surround: extend minimal spread range 2024-10-24 23:10:49 +02:00
Paul B Mahol
a8d08dd250 avfilter/surround_template: remove useless operations 2024-10-24 22:26:19 +02:00
Paul B Mahol
4cc2f6f7af avfilter/af_aecho: add support for commands 2024-10-24 21:09:37 +02:00
Paul B Mahol
d2283bc734 avfilter/adynamicequalizer_template: use decramped qfactors 2024-10-24 20:38:27 +02:00
Paul B Mahol
30bc6eca9c avfilter/af_biquads: add decramp option 2024-10-24 20:38:27 +02:00
Paul B Mahol
de77159520 avfilter/vf_extractplanes: fix extracting of green component for some packed formats 2024-10-24 11:59:48 +02:00
Paul B Mahol
eea854b510 avfilter/vsrc_testsrc: fix <8 component depth rgb/bgr output for rgbtestsrc 2024-10-24 11:59:41 +02:00
Paul B Mahol
d056630fa2 avfilter/drawutils: fix crash 2024-10-24 11:51:32 +02:00
Paul B Mahol
3aa2bf64c1 avfilter/f_interleave: fix EOF checks 2024-10-24 10:50:57 +02:00
Paul B Mahol
a9a66fd8c5 avfilter/af_aphaser: simplify 2024-10-24 10:08:00 +02:00
James Almer
4c1ff74624 avcodec/vulkan_video: add mapping for AV_PIX_FMT_Y216
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:51 +02:00
James Almer
4c24ddeb1e avutil/hwcontext_vulkan: add support for AV_PIX_FMT_Y216
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:51 +02:00
James Almer
9967516632 avcodec/vulkan_video: add proper maps for XV3{0,6}
Forgotten after fd8b0dcfed61ddf36b9523aa4ba1badc493b7707.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:51 +02:00
Niklas Haas
1373d403e9 swscale/x86: use dedicated int for self-modifying MMX dstW
I want to pull options out of SwsInternal, so we need to make this field
a dedicated int that gets updated as appropriate in ff_swscale().

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
cb73e1667e swscale: add sws_is_noop()
Exactly what it says on the tin.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
e1991402ed swscale: add new frame testing API
Replacing the old sws_isSupported* API with a more consistent family
of functions that follows the same signature and naming convention,
including a placeholder for testing the color space parameters that
we don't currently implement conversions for.

These functions also perform some extra basic sanity checking.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
b71d27b5e9 swscale/utils: add SwsFormat abstraction and helpers
Groups together all relevant color metadata from an AVFrame. While we could
use AVFrame directly, keeping it a separate struct has three advantages:

1. Functions accepting an SwsFormat will definitely not care about the
   data pointers.
2. It clearly separates sanitized and raw metadata, since the function to
   construct an SwsFormat from an AVFrame will also sanitize.
3. It's slightly more lightweight to pass around.

Move these into a new header file "utils.h" to avoid crowding
swscale_internal.h even more, and also to solve a circular dependency issue
down the line.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
b934fd0c30 swscale: add sws_free_context()
Merely a convenience wrapper around sws_freeContext(). The name change is for
parity with the other sws_* functions.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
00f421484c swscale: slightly reorder header
I want to start grouping "legacy" functions which I tend to deprecate
together, away from the new ones.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
Niklas Haas
1b0f9f1191 swscale: publicly typedef struct SwsContext
Slightly more convenient, especially for the upcoming refactor which will
turn SwsContext into a public struct.

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:50 +02:00
James Almer
efc963fee6 swscale/output: add Y216LE output support
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:49 +02:00
James Almer
ace0fec2a5 swscale/input: add Y216LE input support
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:49 +02:00
James Almer
3373ec5ab7 avutil/pixfmt: add Y216 pixel format
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:49 +02:00
Lynne
992bcb6e90 vulkan: move alignment of host-visible allocations outside of ff_vk_alloc_mem
The issue is that if dedicated allocation is used, VkBufferCreateInfo.size
and the actual allocated size mismatched, which is a validation error.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-24 09:57:48 +02:00
Paul B Mahol
8c194523b9 avfilter/surround_template: the Y-axis actually need scaling 2024-10-23 11:42:48 +02:00
Paul B Mahol
acbe018e94 avfilter/surround_template: remove invalid multiplication 2024-10-23 10:52:26 +02:00
Paul B Mahol
351cbe1c07 avfilter/af_aecho: add timeline support 2024-10-23 09:48:09 +02:00
Paul B Mahol
c0c0e4b4c6 avfilter/af_adynamicequalizer: split 'mode' option, and make options array 2024-10-23 08:38:58 +02:00
Paul B Mahol
dc983dc5b0 fftools: add back commands output flag for filters 2024-10-22 22:09:08 +02:00
Paul B Mahol
72ca66da57 avfilter/af_aecho: add slice threading support 2024-10-22 21:46:13 +02:00
Paul B Mahol
657082aa15 avfilter/af_aecho: rewrite into template 2024-10-22 21:23:13 +02:00
Paul B Mahol
d79c97a312 avfilter/avfiltergraph: check that picked audio format is always valid 2024-10-22 09:18:00 +02:00
Emily
71bc88b8ee fate/ffmpeg: add samples dependency to fate-ffmpeg-spec-disposition
This test utilizes an MPEG-TS sample from FATE suite, yet was
marked as not requiring samples.

Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:05 +02:00
James Almer
53be27d887 avutil/pixdesc: fix alpha offset for X2{RGB,BGR}10BE
fixes fate-pixelutils

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:05 +02:00
James Almer
f67c76aaee fate/filter-video: make fate-filter-pixdesc compare the hashed output with and without pixdesctest filtering
This helps detecting inconsistencies in swscale input/output code and
a av_read_image_line()/av_write_image_line() pass.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:05 +02:00
James Almer
1a442ad19a swscale/swscale_unscaled: clear the low bits in planar8ToP01xleWrapper
This makes the unscaled output of p010le and p016le match the generic path.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
James Almer
711d9d5f0f avfilter/vf_pixdesctest: also take into account undefined alpha components
Ensure those bits are copied, which will result in the output being the same as
the input, where swscale set them to the equivalent of fully opaque.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
James Almer
5c2be4b256 avfilter/vsrc_testsrc: use the alpha component information for XV3{0,6} and V30X
And add a few more tests to ensure all the pixfmts affected by this change
are tested.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
James Almer
fb9ac36bf6 avutil/pixdesc: add alpha component information to pixfmts with reserved but undefined alpha bits
This can be useful to simplify certain processes that need to know how many
reserved bits there are and where they are placed, even if they are ultimately
unused, as will be shown in the next commit.
For any other case where the user simply looks at nb_components components, it
will make no difference.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
James Almer
00726673f5 avutil/pixdesc: ensure the component being read or writen to is valid
If depth is 0, then the component is invalid/unset.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
Tomas Härdin
d4ebaa853c lavf/mxfdec: Set a scan direction explicitly
This prevents a theoretical case where seeks to a gap in an index can cause an infinite loop

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2024-10-22 08:53:04 +02:00
Paul B Mahol
325732dfc6 avfilter/af_asdr: change results for aidentity and amda
So they are easily compared with other metrics.
2024-10-22 08:39:10 +02:00
Paul B Mahol
5b198118a5 avfilter: add amda audio filter 2024-10-22 08:25:24 +02:00
Paul B Mahol
b29d2c8ef7 avfilter/vf_extractplanes: extend pixel formats support 2024-10-22 00:31:40 +02:00
Paul B Mahol
37dc25b2c1 avfilter/avfiltergraph: check for same bitdepth only for >8 depth 2024-10-22 00:31:39 +02:00
Paul B Mahol
50a8046685 avfilter/af_ascale: implement channels link option 2024-10-21 22:16:23 +02:00
Paul B Mahol
866daf1422 avfilter/ascale_template: reindent 2024-10-21 22:16:22 +02:00