Commit Graph

19 Commits

Author SHA1 Message Date
Kristian Vos
64f93cd8f2 Run clang-format on a few files 2024-08-05 00:32:21 +00:00
Kristian Vos
3280c1d113 Refactor camera control functions to use MPControl, store fd in MPControl 2024-08-05 00:32:21 +00:00
Kristian Vos
cd392d85cd Allow getting/querying/setting controls on non-sensor devices 2024-08-05 00:32:21 +00:00
Kristian Vos
e41dc80a71 Fix various compile errors 2024-06-29 18:04:42 +02:00
Martijn Braam
9d189b88b4 Support rendering YUV formatted frames 2023-11-26 14:19:29 +01:00
Martijn Braam
3ee314a68d Add libmegapixels 2023-07-11 23:43:23 +02:00
ArenM
f43fcdb241 Set bridge resolution when setting the mode (MR 31)
sun6i-csi-bridge will return EINVAL if the resolution it is configured
with is different than the resolution the camera is configured with. So
we have to set it's resolution when changing the camera resolution.
2023-05-28 13:42:20 -04:00
Yassine Oudjana
5f65d910f5 camera: Add padding to bytesused calculation (MR 13) 2022-06-21 17:31:19 +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
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
212e75ed3c Add debayering support for all bayer CFAs 2022-01-31 16:58:58 +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
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
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
WebFreak001
ccbaaad72b keep track of bg tasks for clean up 2021-07-30 17:48:18 +02:00
WebFreak001
1282a75db9 run most camera control setting in background
makes trigger focus, continuous focus, autogain, gain ctrl, auto
exposure, exposure ctrl run in background to not block the UI thread.

The camera updates the image while this is in progress, so you can for
example see the camera live focus as on common other phones.
2021-07-30 17:48:17 +02:00
Benjamin Schaaf
91817b167a Reorganization, replacing CPU debayering entirely 2021-04-18 23:13:56 +10:00