Commit Graph

63 Commits

Author SHA1 Message Date
Pavel Machek
99eab6ee54 Prepare for supporting multiple YUV formats. 2024-05-07 14:22:50 +02:00
Pavel Machek
bc9085ffad Pass dng/grw mode down to mpegize. 2024-05-06 22:18:45 +02:00
Pavel Machek
f0d8834b4a Pipe for scripts<->application communication, write UYVY files
Got pipe to work between movie subprocess and main code. We use it to
display progress from the scripts. Write "gstreamer raw" files, that
can be worked with easily from gstreamer.
2024-05-06 13:50:44 +02:00
Pavel Machek
1c9202c4cf Add support for short movies
Short movies can now be recorded (~30 seconds, depending on disk
space), with audio. New button is added, for that, depending on state
it shows "Rec" (you can record), "Stop" (you are recording) and "Busy"
(movie is being converted).
2024-04-30 18:09:42 +00:00
Pavel Machek
b23ec208f0 Comment mentions different filenames than code, fix that. 2024-04-30 18:09:42 +00:00
Martijn Braam
b615d23de1 Replace segfault with actual error message 2024-02-07 13:50:29 +01:00
Martijn Braam
7e3d9e9063 Change control loop for AAA 2024-01-23 17:30:34 +01:00
Martijn Braam
b140ebd9b7 Use the aaav2 code in libmegapixels 2024-01-18 15:57:18 +01:00
Martijn Braam
dbacf8a005 Write YUV frames to jpeg directly instead of DNG 2024-01-18 03:12:57 +01:00
Martijn Braam
e0e94a62b2 Set names for the pipeline threads 2024-01-18 02:35:51 +01:00
Martijn Braam
8ca9028d45 Change app-id to me.gapixels.Megapixels 2023-12-02 12:30:06 +01:00
Martijn Braam
da68a1c96a Write more metadata using libdng 2023-12-02 12:30:04 +01:00
Martijn Braam
90321888c8 Use libdng to write the output images 2023-12-02 12:30:03 +01:00
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