Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

17 changes: 13 additions & 4 deletions packages/aurora-camera-denoise/aurora-camera-denoise.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
%global commit 456c567527d6bbba27d0aaeec1199032e0ec88c3
%global commit 4a2d2402d991837b95ea19f89bdd6965d8622ae4
Name: aurora-camera-denoise
Version: 0.1.0
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Noise filter for the built-in camera on Apple silicon
License: MIT
URL: https://github.com/aurora-silicon/camera-denoise
Source0: https://github.com/aurora-silicon/camera-denoise/archive/%{commit}/%{name}-%{commit}.tar.gz
Source1: 80-aurora-camera-denoise.preset
# camera-denoise#8: no unit for root/system users, bounded restarts
Patch0: 0001-systemd-skip-root-and-system-users.patch
ExclusiveArch: aarch64
BuildRequires: gcc meson ninja-build pkgconf-pkg-config systemd-rpm-macros
BuildRequires: pkgconfig(libpipewire-0.3) >= 1.0
Expand Down Expand Up @@ -57,10 +55,21 @@ install -Dm644 %{SOURCE1} %{buildroot}%{_userpresetdir}/80-aurora-camera-denoise
%{_bindir}/aurora-camera-denoise-metrics
%{_datadir}/aurora-camera-denoise/
%dir %{_libdir}/aurora-camera-denoise
%{_libdir}/aurora-camera-denoise/cdn-backend-ave.so
%{_userunitdir}/aurora-camera-denoise.service
%{_userpresetdir}/80-aurora-camera-denoise.preset

%changelog
* Wed Nov 11 2026 Aurora Silicon <ryan@aurorasilicon.org> - 0.1.0-7
- Update to 4a2d2402d991. The temporal filter now runs by default on the
video encoder's motion-compensated filter, the hardware macOS uses, when
the kernel has its device and the scaler's lossless form (camera-denoise#9,
#10). Its output matches macOS, and on the MacBook Neo it takes 4% of one
core at 30 fps where the CPU filter takes 39%. Other kernels keep the CPU
filter. The plugin is cdn-backend-ave.so.
- Also brings opt-in camera effects controls (camera-denoise#2, #3, #4, #6).
- camera-denoise#8 is upstream now; drop its patch.

* Tue Nov 10 2026 Aurora Silicon <ryan@aurorasilicon.org> - 0.1.0-6
- The user service no longer runs in root's or the greeter's user manager,
where it failed every 2 s without a PipeWire session, and it stops after
Expand Down
8 changes: 4 additions & 4 deletions sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@
},
"aurora-camera-denoise": {
"repository": "https://github.com/aurora-silicon/camera-denoise",
"commit": "456c567527d6bbba27d0aaeec1199032e0ec88c3",
"commit": "4a2d2402d991837b95ea19f89bdd6965d8622ae4",
"version": "0.1.0",
"source_url": "https://codeload.github.com/aurora-silicon/camera-denoise/tar.gz/456c567527d6bbba27d0aaeec1199032e0ec88c3",
"archive_root": "camera-denoise-456c567527d6bbba27d0aaeec1199032e0ec88c3",
"sha256": "14e5dd45487b260ac6abffcfbe0a787df76bfe21c72bad68f20fb8400f548f3a"
"source_url": "https://codeload.github.com/aurora-silicon/camera-denoise/tar.gz/4a2d2402d991837b95ea19f89bdd6965d8622ae4",
"archive_root": "camera-denoise-4a2d2402d991837b95ea19f89bdd6965d8622ae4",
"sha256": "e8fcff64e1c02dab6313ef38091238ea8ff2978e4a42f7e0eaa3e367a42a2d0c"
},
"aurora-kbd-light": {
"repository": "https://github.com/aurora-silicon/kbd-light",
Expand Down
20 changes: 11 additions & 9 deletions tests/test_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,14 +828,16 @@ def test_secure_enclave_ssh_provider_gives_the_sep_key_group_the_node(self):
pins = json.loads((ROOT / 'sources.json').read_text())
self.assertIn(pins['aurora-sep-sk']['commit'], text)
def test_camera_denoise_user_unit_skips_root_and_system_users(self):
d = ROOT / 'packages/aurora-camera-denoise'
spec = (d / 'aurora-camera-denoise.spec').read_text()
patch = re.search(r'^Patch\d*:\s+(\S+)', spec, re.M).group(1)
text = (d / patch).read_text()
for line in ('+ConditionUser=!root', '+ConditionUser=!@system',
'+StartLimitIntervalSec=60', '+StartLimitBurst=5', '+RestartSec=5'):
self.assertIn(line + '\n', text)
self.assertIn('%autosetup -p1 ', spec)
# %check runs the unit test the patch adds.
# camera-denoise#8 (ConditionUser, start limits) is in the pinned
# commit and %check runs its unit test (tests/check-unit.sh).
spec = (ROOT / 'packages/aurora-camera-denoise/aurora-camera-denoise.spec').read_text()
pins = json.loads((ROOT / 'sources.json').read_text())
self.assertIn(pins['aurora-camera-denoise']['commit'], spec)
self.assertNotEqual(pins['aurora-camera-denoise']['commit'],
'456c567527d6bbba27d0aaeec1199032e0ec88c3')
self.assertIn('%meson_test', spec.split('%check', 1)[1].split('%install', 1)[0])
def test_camera_denoise_ships_the_encoder_filter_plugin(self):
spec = (ROOT / 'packages/aurora-camera-denoise/aurora-camera-denoise.spec').read_text()
files = spec.split('%files', 1)[1].split('%changelog', 1)[0]
self.assertIn('%{_libdir}/aurora-camera-denoise/cdn-backend-ave.so', files)
if __name__ == '__main__': unittest.main()
Loading