Commit Graph

50 Commits

Author SHA1 Message Date
Martijn Braam
e964b923c7 Write WB gains to the DNG file 2023-08-16 15:18:34 +02:00
Martijn Braam
a6de61f475 Implement whitebalance 2023-08-16 14:45:57 +02:00
Martijn Braam
d13cdd5dcb Add color correction to the gles shader 2023-07-27 00:54:33 +02:00
Martijn Braam
59f18d7bd2 Fix build issues 2023-07-25 14:05:28 +02:00
Martijn Braam
e9681e1eea Use calibration for preview 2023-07-23 16:29:59 +02:00
Martijn Braam
9a685eb839 Use xfer function from libmegapixels instead of v4l 2023-07-22 16:41:38 +02:00
Martijn Braam
128a3696c4 Add a switch between SRGB and linear colors in the debayer shader 2023-07-22 16:29:23 +02:00
Martijn Braam
c62ac5950f Decouple capture frame counter from the burst length 2023-07-22 16:01:52 +02:00
Martijn Braam
16dfb9ba19 Close the AAA loop 2023-07-21 14:06:32 +02:00
Martijn Braam
f26f81e3f1 Refactor controls more 2023-07-21 13:19:26 +02:00
Martijn Braam
d4806d6ab6 Don't make stats a pointer 2023-07-21 12:18:47 +02:00
Martijn Braam
e90f16dcfa AE stats 2023-07-21 12:08:12 +02:00
Martijn Braam
6e8293116b Process pipeline refactoring 2023-07-20 17:40:00 +02:00
Martijn Braam
d51a2fb263 Refactor controls 2023-07-20 16:36:58 +02:00
Martijn Braam
c4969cec6c Continue refactoring of global state 2023-07-20 11:39:30 +02:00
Martijn Braam
78cccdd596 Pass the correct buffer size through the pipeline again 2023-07-12 15:30:03 +02:00
Martijn Braam
3ee314a68d Add libmegapixels 2023-07-11 23:43:23 +02:00
Martijn Braam
b5161db18e Add DCP calibration files for sensors
Read .dcp files stored in the same directory as the camera configuration
files and copy over the calibration curves into the DNG files after
taking a picture.
2023-07-07 17:14:24 +02:00
Martijn Braam
ee26b8e6f7 Add postprocessor setting dropdown (MR 18) 2022-06-24 15:38:56 +02:00
Martijn Braam
46b07c6c4d Move postprocessor script to a gsetting (MR 18) 2022-06-24 14:38:11 +02:00
Yassine Oudjana
cf0f02228a process_pipeline: Skip padding when repacking 10-bit image (MR 13) 2022-06-21 17:31:21 +02:00
Yassine Oudjana
81859e54e7 Crop out padding on preview processing (MR 13) 2022-06-21 17:31:21 +02:00
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
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
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
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
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
c277342f74 Fix incorrectly freeing GError 2021-11-16 23:22:32 +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
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
Sebastian Krzyszkowiak
c03fade3cd process_pipeline: Store a default whitelevel in the DNG file
This helps unpacked 10-bit formats, as otherwise applications
assume the image to be 16-bit because of TIFFTAG_BITSPERSAMPLE.
2021-11-10 21:26:48 +01:00
Martijn Braam
5ad97d03f6 Add save-dng setting 2021-06-14 00:32:55 +02:00
Sebastian Krzyszkowiak
b29f04c05d process_pipeline: Drop unnecessary malloc 2021-06-13 17:01:58 +02:00
Sebastian Krzyszkowiak
9179b29f7c process_pipeline: Handle non-RAW8 images when saving DNG 2021-06-13 17:01:58 +02:00
Sebastian Krzyszkowiak
3691ece911 process_pipeline: Correctly set BlackLevel TIFF tag 2021-06-13 17:01:58 +02:00
Sebastian Krzyszkowiak
52cc52437e process_pipeline: Set the thumbnail row buffer to correct size
Otherwise it's saving 2*image->width bytes of uninitialized memory
image->height times into the DNG file.
2021-06-13 17:01:58 +02:00
Guido Günther
0046986e3e Use g_get_user_config_dir
Instead of opencoding rely on glib which handles XDG_CONFIG_HOME and
such. This also prevents xdg_config from leaking.
2021-05-03 21:45:12 +02:00
Martijn Braam
59dde6bb74 Fix crash on musl and clean up dependency 2021-05-03 18:57:08 +02:00
Benjamin Schaaf
64b75bcbe5 Preview rotation follows device 2021-05-04 00:06:55 +10:00
Benjamin Schaaf
46bfb39dfd Cleanup 2021-05-01 23:36:31 +10:00
Benjamin Schaaf
8ccf1451ed Fix image capture 2021-05-01 21:32:32 +10:00
Benjamin Schaaf
d03d4b99e3 Make pressing the preview work again 2021-04-26 19:07:59 +10:00
Benjamin Schaaf
44fc390b99 Get zbar working again 2021-04-26 18:09:04 +10:00
Benjamin Schaaf
d42ee3e1c0 Progress on GTK4 port 2021-04-20 00:04:53 +10:00
Benjamin Schaaf
91817b167a Reorganization, replacing CPU debayering entirely 2021-04-18 23:13:56 +10:00