Commit Graph

409 Commits

Author SHA1 Message Date
Yassine Oudjana
f107a2ff3f Use mp_pixel_format_width_to_bytes to get row length (MR 13) 2022-06-21 17:31:20 +02:00
Yassine Oudjana
5f65d910f5 camera: Add padding to bytesused calculation (MR 13) 2022-06-21 17:31:19 +02:00
Yassine Oudjana
ba57d91da4 mode: Add a function to get padding bytes per line (MR 13)
Add a function to get extra padding bytes needed to make bytes
per width a multiple of 8.
2022-06-21 17:31:18 +02:00
Yassine Oudjana
7dbc2288d0 io_pipeline: Setup media links and formats (MR 13) 2022-06-21 17:31:16 +02:00
Yassine Oudjana
7716faa801 device: Add functions to set entity links and formats (MR 13)
Move part of mp_device_setup_link to a new function to allow
setting links between entities with entity and port indices,
and add a function to set entity pad formats.
2022-06-21 17:30:17 +02:00
Yassine Oudjana
a4c2c1ec1f Move mode types and functions to a new object (MR 13)
Rename MPCameraMode to a more generic MPMode and move it along
with related functions to a new object in preparation for using
it in the device object.
2022-06-21 17:30:16 +02:00
FeRD (Frank Dana)
cd4ecdd964 README: Fix broken section link (MR 17) 2022-06-21 16:39:46 +02:00
Martijn Braam
899748df46 Change burst length depending on gain
The burst_length is now calculated before taking the first picture
by increasing the number of frames when the sensor gain is raised.
2022-06-21 16:29:23 +02:00
Martijn Braam
3c4aaf9fb5 ci: Fix debian build
The clang-format-12 package no longer exist and only clang-format 11, 13
and 14 remain in the repositories.

Also replace apt with apt-get since apt is not for scripting
2022-06-21 14:55:43 +02:00
Martijn Braam
f66fcc5a71 Update to clang-format 14 2022-06-21 14:50:05 +02:00
Martijn Braam
d41fb6745a save flash state in the exif data 2022-06-21 14:39:08 +02:00
Benjamin Schaaf
0163c00eaa Merge branch '10-bit' into 'master'
Add support for 10-bit packed formats

See merge request postmarketOS/megapixels!10
2022-02-01 12:04:56 +00:00
Yassine Oudjana
7b403f2e79 Set TIFFTAG_CFAPATTERN depending on pixel format
Add a function to get a CFA pattern string that matches a given
pixel format, and use it to set TIFFTAG_CFAPATTERN on capture.
2022-02-01 14:02:05 +04:00
Yassine Oudjana
d8f34f7f89 Fix 10-bit format capture
TIFF/DNG need a different packing format for 10-bit images.
Add a function to repack the raw sensor data into the required
sequencial format.
2022-02-01 14:01:50 +04:00
Yassine Oudjana
212e75ed3c Add debayering support for all bayer CFAs 2022-01-31 16:58:58 +04:00
Yassine Oudjana
c16dbf6810 Add support for BGGR10P debayering 2022-01-31 16:55:41 +04:00
Yassine Oudjana
f8ce7abe98 zbar_pipeline: Add support for 10-bit packed format processing 2022-01-31 15:49:21 +04:00
Yassine Oudjana
b980eb5aea Add mplanes to mp_camera_release_buffer 2022-01-26 17:26:00 +04:00
Benjamin Schaaf
868291e0c6 Possible fix for mplane support 2022-01-26 17:25:21 +04:00
Benjamin Schaaf
07adf898e7 Improve megapixels-list-devices 2022-01-26 17:24:19 +04:00
Benjamin Schaaf
94d673118f Merge branch 'about' into 'master'
Set parent window in About dialog

See merge request postmarketOS/megapixels!8
2022-01-20 12:18:46 +00:00
Pablo Correa Gómez
b86fb80ed8 Update website URL in About dialog 2022-01-16 15:49:45 +01:00
Pablo Correa Gómez
e29b00f068 Set parent window in About dialog
Fixes dialog text not always fitting in screen. Additionally,
the dialog is now centered instead of appearing at the bottom
of the screen.
2022-01-16 15:49:43 +01:00
Benjamin Schaaf
6f41aad20b Merge branch 'add-categories' into 'master'
Add standard categories to desktop file

See merge request postmarketOS/megapixels!6
2021-12-19 08:36:06 +00:00
Benjamin Schaaf
bf0c2f256d Merge branch 'aa13q-master-patch-19505' into 'master'
Fix minor typo in README.md

See merge request postmarketOS/megapixels!7
2021-12-18 04:53:05 +00:00
Alexey Andreyev
bd45fd2247 Fix minor typo in README.md
media-ctl not media-tcl
2021-12-17 13:22:54 +00:00
Pablo Correa Gómez
ab2f787876 Add standard categories to desktop file
The Photography category is probably an obvious one[1].
For the main category, I think Graphics fits better than Office

[1] https://specifications.freedesktop.org/menu-spec/latest/apas02.html
2021-12-16 12:48:48 +01:00
Benjamin Schaaf
c0e76da4b7 Release 1.4.3 2021-12-13 23:04:07 +11:00
Benjamin Schaaf
e494302cdc Disable flash by default
The current flash implementation isn't great so should be disabled by
default for now.
2021-12-13 22:58:53 +11:00
Benjamin Schaaf
e1d9e49f06 Fix formatting 2021-12-13 22:43:12 +11:00
Benjamin Schaaf
c1701921e5 Fix GVariant leak when display config is changed, ie. device is rotated 2021-12-13 22:35:31 +11:00
Benjamin Schaaf
fd64a9312c Merge branch 'gerror' into 'master'
Avoid g_error_free

See merge request postmarketOS/megapixels!4
2021-12-13 11:30:29 +00:00
Guido Günther
c6db1ab680 flash: Fix GVariant leaks
All functions used there are transfer: full but only two of
them were freed.
2021-11-16 14:47:54 +01:00
Guido Günther
9c5b9d67aa Avoid g_error_free
Rely on g_autoptr() instead. This avoids having to free the
error.
2021-11-16 14:46:14 +01:00
Benjamin Schaaf
34885afac0 Release 1.4.2 2021-11-17 00:08:27 +11:00
Benjamin Schaaf
c277342f74 Fix incorrectly freeing GError 2021-11-16 23:22:32 +11:00
Benjamin Schaaf
3fb5eef160 Merge branch 'readme-update' into 'master'
README: update "Developing" section

See merge request postmarketOS/megapixels!3
2021-11-15 10:38:26 +00:00
Oliver Smith
bfc1b00c72 README: update "Developing" section 2021-11-14 16:07:53 +01:00
Oliver Smith
e86a1519cb Release 1.4.1 2021-11-14 15:17:30 +01:00
Guido Günther
d9866f6029 data: Add StartupNotify to desktop file (MR 2)
As a GTK app it supports startup notifications just fine and this allows
phosh to show a proper splash screen while megapixels is starting.

Reference: https://developer-old.gnome.org/integration-guide/stable/startup-notification.html.en
2021-11-14 13:06:59 +01:00
Benjamin Schaaf
41110321da Release 1.4.0 2021-11-13 00:14:18 +11:00
Benjamin Schaaf
772db36877 Make clang-format more aggressive
clang-format always manages to mix spaces into tab-based indentation.
Since we already require an exact tab-width of 8 it makes more sense to
use spaces.
2021-11-13 00:06:11 +11:00
Benjamin Schaaf
a92104e27c Add clang-format as part of CI 2021-11-12 21:47:34 +11:00
Benjamin Schaaf
e78bd99305 Hide flash button when flash not available 2021-11-12 19:41:54 +11:00
Benjamin Schaaf
4e7120f609 Set brightness to 100% when using display flash 2021-11-12 18:29:34 +11:00
Benjamin Schaaf
24835cdc25 Implement flash
Fixes #5
2021-11-12 18:29:34 +11:00
Benjamin Schaaf
8248b7ab47 Fix compiler warning 2021-11-12 18:23:04 +11:00
Benjamin Schaaf
ea43dbcde0 Merge branch 'metadata' into 'master'
Metadata fixes

See merge request postmarketOS/megapixels!1
2021-11-12 07:14:14 +00:00
Benjamin Schaaf
7643a403f1 Fix memory leak when rotating device 2021-11-12 01:18:55 +11:00
Sebastian Krzyszkowiak
35b212b11e process_pipeline: Don't store unspecified ISO values in metadata
When the camera config does not specify ISO range, all we get there
is garbage.
2021-11-10 21:26:48 +01:00