Commit graph

22 commits

Author SHA1 Message Date
Robert Mader
aa9eb76406
temp/libcamera: upgrade to 0.6.0
See https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.6.0

Remove various upstreamed and move downstream tuning files into a
folder instead of wrapping them in patches.

Also sync up a bit to the alpine package by adding dependencies and the
python package.

Note: unfortunately this release does not contain the GPU-ISP. There
are various improvements to the SW-ISP, the simple pipeline handler and
other areas which should improve the experience on various devices with
pmOS, though.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7445>
2025-11-29 02:31:28 +01:00
Robert Mader
3f6919e62d
temp/libcamera: Add tuning files for IMX838 and s5kjn1
Used by the Fairphone 5. Only containing black levels for now, however
adding those already makes the colors look less washed out, in
particular for the front camera.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7241>
2025-10-24 11:57:50 +00:00
Robert Mader
a63aca69b1
temp/libcamera: Backport software ISP fix for 'purple tint'
Backport the series from https://patchwork.libcamera.org/cover/24169/,
fixing 'purple tint' issues on the Pixel 3a and OnePlus6 with Snapshot.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6961>
2025-08-27 09:39:41 +00:00
Robert Mader
307c05c345
temp/libcamera: upgrade to 0.5.2
See
https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.5.2

No significant changes for pmOS use-cases, just a lot of fixes. The
next release, 0.6, will bring bigger changes also affecting our
downstream patches.

Also added py3-sphinxcontrib-doxylink as explicit dependency to
work around build issues.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6896
[ci:skip-build]: already built successfully in CI
2025-08-07 23:17:52 +02:00
fossdd
091f82a317
temp/libcamera: rebuild against gtest-1.17.0-r0
Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6720

[ci:skip-build]: already built successfully in CI
2025-06-26 14:18:14 +02:00
Robert Mader
5677fe9d6d
temp/libcamera: upgrade to 0.5.1
See
https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.5.1

Additional changes:
 - Adopt build to commit "ipa: Move IPA installations to a subdir"
 - Backport a fix for the simple pipeline

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6608
[ci:skip-build]: already built successfully in CI
2025-06-05 12:42:12 +02:00
Robert Mader
cd6ef6e873
temp/libcamera: Enable virtual pipeline
Analog to a recent change in Fedora:
https://src.fedoraproject.org/rpms/libcamera/pull-request/14

This change allows to easily create virtual cameras, which is helpful
for testing and debugging purposes, both for system components like Mesa
and Pipewire as well as various apps.

The virtual cameras can be enabled by:
```
cd /usr/share/libcamera/pipeline/virtual
cp virtual.yaml.example virtual.yaml
systemctl --user restart pipewire
```

Using the test option allows to keep the arch dependent automatic pipeline
selection in place. It also enables building of the vimc pipeline -
which is very small - and all tests, however those don't get included
into the packages.

The new dependency, libyuv, is very small and already installed by
default for DEs like gnome-mobile.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6567
[ci:skip-build]: already built successfully in CI
2025-05-29 21:33:29 +02:00
fossdd
49d5416123
*/*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

See upstream https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/83218
and https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891

[ci:skip-vercheck]
[ci:ignore-count]
[ci:skip-build]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6515
2025-05-15 19:25:15 +02:00
fossdd
450e347047
temp/libcamera: upgrade to 0.5.0
Upstream:
- https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/82366

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6385
2025-04-09 14:30:44 +02:00
Robert Mader
9f93a01375
temp/libcamera: Add workaround for black output without tuning files
Works around
https://bugs.libcamera.org/show_bug.cgi?id=259

Disable qcam RISCV because of ongoing Qt/libicuuc issues.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6328
2025-04-02 00:09:58 +02:00
Robert Mader
250904dd1d
temp/libcamera: Add tuning files for IMX371 and IMX376 (MR 6299)
Only containing black levels for now.

This should only slightly increase image quality, but apparently also
works around a bug in libcamera making the output all black, with
occasional purple or red flashes.
[ci:skip-build]: already built successfully in CI
2025-03-08 18:24:26 +01:00
Oliver Smith
8a14416374
temp/libcamera: rebuild against libgtest (MR 6204)
Our libcamera fork needs a rebuild, as pointed out by the
upstream-compat monitoring job:

Increase 'libcamera' pkgrel (9 -> 10), missing depend(s): so:libgtest.so.1.15.2
[ci:skip-build]: already built successfully in CI
2025-02-12 22:55:36 +01:00
Robert Mader
37dbf850ae
temp/libcamera: Remove libcamera udev rule package (MR 6163)
This is now handled in postmarketos-base-ui.

[ci:skip-build]: already built successfully in CI
2025-02-07 11:56:00 -08:00
Robert Mader
749904dd49
temp/libcamera: upgrade to 0.4.0 (MR 5948)
- drop some upstreamed patches
- add some tuning files with black levels

Release notes:
https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.4.0
2025-01-03 16:56:07 +09:00
Robert Mader
58625e8394
temp/libcamera: backport more swISP patches (MR 5710)
Fixing or related to:
 - https://bugs.libcamera.org/show_bug.cgi?id=234
 - https://bugs.libcamera.org/show_bug.cgi?id=235
 - https://bugs.libcamera.org/show_bug.cgi?id=236

[ci:skip-build]: already built successfully in CI
2024-10-13 16:47:25 +02:00
Pablo Correa Gómez
eb14e3b3e6
temp/libcamera: move udev rules under /usr (MR 5662) 2024-09-29 10:41:34 -07:00
Robert Mader
f736e1e360
temp/libcamera: upgrade to 0.3.2 (MR 5623)
Rebase our downstream patches and drop the two included in the release.

See https://gitlab.freedesktop.org/camera/libcamera/-/tags/v0.3.2 for
release notes.
[ci:skip-build]: already built successfully in CI
2024-09-24 16:20:26 +02:00
Robert Mader
f46655bb48
temp/libcamera: Backport sw-ISP DMABUF sync patch (MR 5615)
Which fixes most glitches sometimes visible when using the sw-ISP with
clients that directly import the buffers to the GPU, such as Snapshot
47.

The patch will be part of the next libcamera release, which however
does not have a clear release date yet.
[ci:skip-build]: already built successfully in CI
2024-09-23 15:35:47 +02:00
Robert Mader
014fdc1d76
temp/libcamera: Change udev rule with uaccess tag for udmabuf (MR 5541)
In upstream discussions regarding dmabuf allocation in was concluded
that using udmabuf, which only uses virtual memory, is the better
option for the time being. Libcamera gained support for that with
version 0.3.1 and it was confirmed that devices currently using the
libcamera softwareISP can sample from them, notably:
 - Librem5
 - PinePhone
 - Pixel 3a

Thus let's follow upstream and allow access to that by default - and
remove access to /dev/dma_heap again.

See also: https://github.com/systemd/systemd/pull/33738
[ci:skip-build]: already built successfully in CI
2024-09-12 11:12:21 -07:00
Robert Mader
c54777db04
temp/libcamera: upgrade to 0.3.1 (MR 5381)
Rebase our downstream patches and drop the one included in the release.

See https://gitlab.freedesktop.org/camera/libcamera/-/releases/v0.3.1

Notes:
 - The abi-compliance checker reports 100% binary and source compatibility,
   so this release does not change the SONAME.
 - qcam has been ported to QT6.
 - This release has some notable improvements to the PPP/rkisp1, however
   lower frame rates might be encountered sometimes. This will hopefully
   get fixed in the imx258 driver in Linux 6.11.
 - The swISP got some fixes but nothing major apart from the patch we
   were already carrying.

[ci:skip-build]: already built successfully in CI
2024-07-25 22:32:58 +02:00
Robert Mader
42640780d4
temp/libcamera: backport swISP RGBA support (MR 5285)
Which can have significant performance impact on affected devices,
such as the Librem5 or the PinePhone.
The patch already landed upstream, however a new release is likely
several weeks or months away, making a backport worthwhile.

[ci:skip-build]: already built successfully in CI
2024-06-26 15:54:55 -07:00
Robert Mader
f77dc643c9
temp/libcamera: fork for temporary downstream patches (MR 5162)
which are probably too experimental to ask Alpine to carry them, while being
very helpful for devices that pmOS targets. The explicit goal is to help
Libcamera development and drop the fork again.

For the dma heaps permissions see the ongoing debate in
https://lore.kernel.org/all/bb372250-e8b8-4458-bc99-dd8365b06991@redhat.com/
It's possible that Libcamera will switch to another solution in a future
release or that memory accounting issues around dma heaps will need to
get fixed in the kernel before the permissions can be set by default by
distros.

Regarding `libcamera: simple:` patches:
 - 0001-0003 can likely be dropped once the Libcamera SoftISP gains
   support for raw (bayer) streams passthrough (on top of converting to
   RGB or YUV formats).
 - 0004 will likely be needed until Megi downstream patches for the
   Pinephone get improved/upstreamed and Libcamera adopted accordingly.

With these patches libcamera and pipewire based applications should work
on the Librem5, Pinephone and - hopefully soon - devices like the OP6.

See https://gitlab.com/postmarketOS/pmaports/-/merge_requests/5162 for
more context.
[ci:skip-build]: already built successfully in CI
2024-05-21 20:23:50 +02:00