Commit Graph

81 Commits

Author SHA1 Message Date
Benjamin Schaaf 91817b167a Reorganization, replacing CPU debayering entirely 2021-04-18 23:13:56 +10:00
Benjamin Schaaf 337526e9b9 It works! 2021-04-15 23:14:20 +10:00
Benjamin Schaaf 1ffaba5f7e First pass at OpenGL debayering 2021-04-09 22:57:14 +10:00
Martijn Braam a3c8b280f2 Made the QR outline more visible 2021-03-26 22:58:47 +01:00
Martijn Braam 721f943da9 Trigger capture with spacebar 2021-03-26 22:47:00 +01:00
Benjamin Schaaf 867b0c9bef
Use glib to check for a valid URI in bar codes
Fixes #46
2021-03-26 01:20:13 +01:00
Martijn Braam 36193243f5
Fix qr segfault and support gemini urls 2021-02-21 17:32:53 +01:00
Benjamin Schaaf a9d01640bd
Add bar code scanning using zbar
Fixes #41
2021-02-21 16:26:00 +01:00
Benjamin Schaaf cc21f1b538 Use XDG special directory instead of hard-coding ~/Pictures
Fixes #22
2021-01-11 16:59:09 +01:00
Martijn Braam d140e44d73 Fix path for the generated picture and improve error message 2021-01-11 16:43:48 +01:00
Benjamin Schaaf 3f8ee6227f Move thumbnail generation to processing pipeline
This ensures the thumbnail is properly created from the captured frame
instead of whatever the current preview is when the post-processing
finishes.
2021-01-06 23:24:05 +11:00
Benjamin Schaaf 21547ed210 Show spinner while capturing and processing an image 2021-01-06 19:12:43 +11:00
Benjamin Schaaf 153d8c93e2 Wait for postprocess process to complete before updating preview
Fixes #27
Fixes #28
2021-01-06 19:12:11 +11:00
Michal Ciesielski 29ad14c78b Read slider value when changing from auto to manual
The user might have moved the slider while in Auto. When exiting Auto
mode the value and the slider will be desynced. This change syncs the
value with the slider position when entering Manual mode.
2020-12-22 15:19:22 +01:00
Martijn Braam 72105c9491 Code style 2020-12-06 15:44:31 +01:00
Martijn Braam c591e60ebd Add black background behind preview 2020-11-28 16:21:32 +01:00
Benjamin Schaaf 2133a087d5 Fix opening captured image not working 2020-11-28 00:52:13 +11:00
Benjamin Schaaf 065bbcb7e5 Make thumbnail work 2020-11-28 00:40:34 +11:00
Benjamin Schaaf dda7367368 Remove commented out code in main 2020-11-26 22:39:43 +11:00
Benjamin Schaaf dd45690d47 First pass at integrating pipeline with application 2020-11-26 00:34:57 +11:00
Martijn Braam 506b0cfca0 Cleanup after bayer changes 2020-11-11 18:19:40 +01:00
Martijn Braam 89953d1c11 Set MBUS formats on all media entities in the path and define SRGGB10P 2020-11-11 16:46:42 +01:00
Martijn Braam f108fe7d06 Implement MPLANE buffers
The qualcomm driver (on MSM8916 at least) uses an MPLANE buffer
for the video capture with a single plane in it. This detects
such drivers and requests MPLANE buffers from the driver and then
always uses the first plane from that through the normal pipeline.
2020-11-10 19:28:46 +01:00
Martijn Braam 69a98fe9d4 Use the NUM_LINKS constant 2020-11-10 16:42:52 +01:00
Martijn Braam bbb60965f5 Added support for arbitrary media links 2020-11-10 16:37:07 +01:00
Martijn Braam cd7cd8b177 Implement YUV preview 2020-11-09 15:44:18 +01:00
Martijn Braam 6b775ba1f9 Disable camera switch button if only one camera exists 2020-11-09 01:52:10 +01:00
Martijn Braam 926b98fec0 Add n-camera support 2020-11-08 21:18:13 +01:00
AngeloGioacchino Del Regno b56182ca33 megapixels: Implement quick-debayering all Bayer 8-bits pixel formats
This application was supporting only debayering of BGGR8 streams:
this is an issue on cameras that are outputting a different format.

Implement quick-debayering of all Bayer 8-bits pixfmts in order to
solve wrong tint issues on many, many camera sensors.

This was tested on a Sony Exmor-RS IMX300 sensor.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
2020-10-25 23:42:21 +01:00
AngeloGioacchino Del Regno 6a5f1078ef main: Correctly configure mbus for 8-bits Bayer pix fmts
The mbus has to be configured correctly for each of the pixel
formats in order to send the right indications to V4L2.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
2020-10-25 23:42:21 +01:00
Fernando Ramos 6384ac7ded Fix /etc/megapixels.ini fallback (pointer issue) 2020-10-12 22:01:16 +02:00
Martijn Braam 23b1051794 Clean up console output 2020-10-10 02:00:39 +02:00
Martijn Braam 0b3c9f78d6 Correct path for the quick open button 2020-10-07 02:05:21 +02:00
Martijn Braam ed8d390bfc Convert to sRGB for preview 2020-10-07 01:51:38 +02:00
Arnaud Ferraris e7d5da17cb main: use "C" locale for LC_NUMERIC
Some locales use ',' as decimal separator instead of '.', which is taken
into account by sscanf when parsing floating point values.

This can lead to parsing failures for the `colormatrix` and
`forwardmatrix` config options. Setting LC_NUMERIC to "C" solves this
problem.
2020-10-06 16:11:35 +02:00
Martijn Braam 8393a9a906 Seperate the control box better 2020-10-06 16:08:55 +02:00
Martijn Braam 3a12e81688 Show shutter speed as angle 2020-10-03 22:00:14 +02:00
Martijn Braam 77d496a27a Implement correct gain handeling 2020-10-03 21:51:36 +02:00
Martijn Braam 0fb190dbc7 Retrieve camera state when disableing an auto control 2020-10-03 17:38:38 +02:00
Martijn Braam 5d872860f9 Implement manual controls 2020-10-03 17:05:10 +02:00
Martijn Braam d891f44937 Draw controls over the preview 2020-10-03 14:40:41 +02:00
Martijn Braam b7d43be635 Fixed buffer overflow and postprocessing metadata 2020-10-02 21:08:09 +02:00
Martijn Braam 908c677c1e Fix segfault on capture 2020-10-02 15:52:00 +02:00
Martijn Braam 123499092d Leak less memory 2020-10-02 14:09:17 +02:00
Martijn Braam 74ff1c5268 Trigger autofocus if the driver has it 2020-10-02 13:23:06 +02:00
Martijn Braam 8863133fe2 Implement external post processing 2020-10-01 17:25:24 +02:00
Martijn Braam 9cbebee116 Front camera metadata and auto exposure switch 2020-09-27 17:25:31 +02:00
Martijn Braam cca7e6a823 Fixed corrupt last frame and metadata 2020-09-27 16:31:48 +02:00
Martijn Braam ae1d73fa41 Write better EXIF data 2020-09-27 15:29:14 +02:00
Martijn Braam 2345c3bde2 Improve TIFF metadata 2020-09-26 23:46:11 +02:00