Commit graph

11236 commits

Author SHA1 Message Date
nyanmisaka
7d7212cb3f fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
refine colorspace conversion handling.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-06-01 23:50:16 +08:00
nyanmisaka
202fd767e2 lavf/rkrga: add alpha_format options for overlay filter
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-05-31 18:18:15 +08:00
nyanmisaka
a7817eed0b fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
allow rkrga io on different hwctx.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-04-22 18:58:34 +08:00
nyanmisaka
4b0e666711 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
enable some YUVJ formats.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2025-01-20 19:23:50 +08:00
nyanmisaka
c5e745e3c1 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
fix nv24/nv42 check on rga2p

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-10-23 21:42:03 +08:00
nyanmisaka
f7617540aa fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
add initial support for rk3576

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-10-16 16:32:04 +08:00
nyanmisaka
27136b05e0 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
fix the draining/eof prematurely.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-03-09 21:24:37 +08:00
nyanmisaka
d43f4f54e6 fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-02-29 23:19:02 +08:00
nyanmisaka
97638cffe1 fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter
Auto fallback to 8-bit formats on RGA2 hardware.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-02-29 22:49:05 +08:00
nyanmisaka
377fa2c622 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
Drain the fifo during filter reset to avoid leaking one fence_fd.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-02-29 17:17:59 +08:00
boogie
28b4194646 lavf/rkrga: add force_yuv=auto option for auto un-compact 2024-01-28 23:00:24 +08:00
boogie
1cb7e3d2e2 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
- Use crop_top to handle MPP decoder AFBC offset_y.
- Apply stride multiplier to drm_prime AFBC frame.

Co-authored-by: nyanmisaka <nst799610810@gmail.com>
2024-01-24 20:36:23 +08:00
nyanmisaka
4c1997e5a8 lavf/rkrga: add force_{yuv,chroma} options for vpp filter
They are used to set the output to an uncompact and linear format while
maintaining the same chroma sub-sampling with the input. The user does
not have to know the input format in advance.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-24 20:06:50 +08:00
nyanmisaka
caef8e7f05 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
Fix the issue that some PGSSUB subtitle have incorrect color.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-23 16:18:33 +08:00
boogie
668585f514 lavf/rkrga: add P210 format support 2024-01-21 18:21:25 +08:00
nyanmisaka
2b2e075476 fixup! lavf/rkrga: add RKRGA scale, vpp and overlay filter
disable `force_{original_aspect_ratio,divisible_by}` options for
the vpp_rkrga filter and leave it to scale_rkrga.

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-19 20:42:22 +08:00
nyanmisaka
78421570bf lavf/rkrga: add RKRGA scale, vpp and overlay filter
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2023-12-28 02:50:06 +08:00
Michael Niedermayer
2929465718
avfilter/buffersink: fix order of operation with = and <0
Reviewed-by: Sean McGovern <gseanmcg@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c0a18e884c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-11-10 02:06:19 +01:00
Michael Niedermayer
d660dd1e0a
avfilter/framesync: fix order of operation with = and <0
Reviewed-by: Sean McGovern <gseanmcg@gmail.com>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9450a4a7fe)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-11-10 02:06:18 +01:00
Marvin Scholz
c5ee01d966 avfilter/vf_tpad: fix check for drawing initialization
The check if drawing needs to be initialized and supported formats
should be drawable ones was flawed, as pad_stop/pad_start is only
populated from stop_duration/start_duration after these checks.

To fix that, check the _duration variants as well and for better
readability and maintainability break the check out into its own
helper.

Fixes a regression from 86b252ea9d
Fix #10621

Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 6667741029)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2023-11-09 11:30:39 +01:00
Lynne
86c4d04051 nlmeans_vulkan: fix offsets calculation and various stride issues
We calculated offsets as pairs, but addressed them in the shader
as single float values, while reading them as ivec2s.

Also removes unused code (was provisionally added if cooperative matrices
could be used, but that turned out to be impossible).

(cherry picked from commit 99fcdee5e8)
2023-11-09 09:16:55 +01:00
Lynne
4e5f3e6b8e bwdif_vulkan: fix artifacts on vulkan decode images
Due to making the decode frames context use the coded size, the
filter started to display those artifacts as it reused the input frame's size.

Change it to instead output the real image size for images, not the input.

(cherry picked from commit 0e8abf2698)
2023-10-31 21:40:42 +01:00
Michael Niedermayer
efac4e2c44
Bump versions prior to 6.1
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-10-29 16:19:39 +01:00
Kyle Swanson
e5f774268a avfilter/libvmaf: fix broken cuda build
Signed-off-by: Kyle Swanson <kswanson@netflix.com>
2023-10-27 15:00:58 -07:00
Gyan Doshi
2b300eb533 avfilter/vidstab: add option for file format specification
The vidstab library added support in Nov 2020 for writing/reading
the transforms data in binary in addition to ASCII. The library default
was changed to binary format but no changes were made to the AVfilters
resulting in data file for writing or reading being always opened as text.
This effectively broke the filters.

Option added to vidstabdetect to specify file format and open files in
both filters with the correct attributes.
2023-10-26 15:46:18 +05:30
Martin Storsjö
93cda5a9c2 aarch64: Lowercase UXTW/SXTW and similar flags
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-10-21 23:25:23 +03:00
Martin Storsjö
184103b310 aarch64: Consistently use lowercase for vector element specifiers
Signed-off-by: Martin Storsjö <martin@martin.st>
2023-10-21 23:25:18 +03:00
Niklas Haas
2d1aeba8f2 avfilter/vf_scale: fix interlaced chroma for other formats
This logic only covers the case of yuv420p. Extend this logic to cover
*all* vertically subsampled YUV formats, which require the same
interlaced scaling logic.

Fortunately, we can get away with re-using the same code for both JPEG
and MPEG range YUV, because the only difference here is the horizontal
alignment. (Which I omit touching for now, to avoid introducing possibly
unintended changes in default behavior)
2023-10-20 15:20:09 +02:00
Niklas Haas
90d327d607 avfilter/vf_showinfo: also print chroma loc
Curiously absent.
2023-10-14 00:16:57 +02:00
Kyle Swanson
2e33f5ced0 avfilter/libvmaf: update pix_fmts
Signed-off-by: Kyle Swanson <kswanson@netflix.com>
2023-10-12 10:37:36 -07:00
Lynne
f31d0f1141
nlmeans_vulkan: parallelize workgroup invocations 2023-10-11 16:53:06 +02:00
Lynne
658b01b5ee
nlmeans_vulkan: reduce dispatches by parallelizing the planes 2023-10-11 16:53:04 +02:00
Lynne
6bc8ff7d93
nlmeans_vulkan: fix width/height for chroma plane weights calculation 2023-10-11 16:53:00 +02:00
Kyle Swanson
6028728bb8 avfilter/libvmaf: remove deprecated options 2023-10-10 11:00:20 -07:00
Timo Rothenpieler
8b6ee74d50 avfilter/ddagrab: create secondary xor mouse texture 2023-10-09 20:17:50 +02:00
Timo Rothenpieler
0e7ae95cc2 avfilter/ddagrab: actually use provided texture pointer 2023-10-09 20:17:49 +02:00
Andreas Rheinhardt
f62c441e7a avfilter/vulkan_filter: Remove unused label
Unused since 81cc0e1345.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-10-06 12:28:45 +02:00
Lynne
81cc0e1345
hwcontext_vulkan: properly support STORAGE usage for mutliplane images
Fixes multiplane support on Nvidia.

Also, remove the ENCODE usage, even if the driver signals it as supported.
Currently, it's not used, and when it is used, it'll be gated behind
two extension checks.
2023-10-05 23:50:30 +02:00
Anton Khirnov
63bc6430a6 lavfi/yadif: update output frame durations 2023-10-03 16:57:02 +02:00
Andreas Rheinhardt
f58038d498 avcodec/avcodec: Avoid codec_desc.h, codec_par.h inclusions
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>
2023-10-03 01:59:07 +02:00
Niklas Haas
443471356f avfilter/vf_iccdetect: use ff_icc_profile_sanitize 2023-10-03 00:28:50 +02:00
Paul B Mahol
41f5b73903 avfilter/f_ebur128: do not print summary log if nothing was processed 2023-09-29 18:40:54 +02:00
Paul B Mahol
7ce2e5f3ea avfilter/vf_pseudocolor: add support for more planar alpha formats 2023-09-28 23:09:31 +02:00
Paul B Mahol
0aa75a85e6 avfilter/vf_zscale: fix adding >8 bit alpha plane 2023-09-28 22:46:56 +02:00
Paul B Mahol
086c280901 avfilter/vf_zscale: add more planar formats with alpha 2023-09-28 22:46:55 +02:00
Paul B Mahol
35b6d9d80c avfilter/vf_negate: add support for more planar with alpha 2023-09-28 22:46:54 +02:00
Paul B Mahol
3a5171c9f4 avfilter/vf_extractplanes: add GBRAP14 support 2023-09-28 19:37:58 +02:00
杨亚磊 via ffmpeg-devel
ee8d2ece7b lavfi/framequeue: remove redundant logic code
In this logical branch, fq->queued and fq->allocated must be equal.
Deleting this code will make it easier to understand the logic
(copy the data before tail to the newly requested space)

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
2023-09-28 09:25:02 +02:00
Andreas Rheinhardt
97cd698ee4 avfilter/bwdifdsp: Avoid including ff_bwdif_filter_line3_c()
This function is used by the AARCH64 code to filter a few
remaining lines in case the dimensions are not suitably
aligned; it is furthermore also used by checkasm to actually
test the AARCH64 code against. But it is normally not used
and this patch therefore moves it in bwdifdsp.h as a static
inline function so that it can be avoided if possible
or inlined where necessary.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-09-28 00:17:47 +02:00
Andreas Rheinhardt
fa06f48371 avfilter/bwdifdsp: Constify
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2023-09-28 00:17:47 +02:00