aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2023-11-08Port to gst-wayland changes in gst 1.22, maintaining backwards compatibilityGeorge Kiagiadakis1-4/+7
This will be relevant when AGL switches to a more recent yocto. Bug-AGL: SPEC-4881 Change-Id: I8a1ae6dcf3099914c961a5b4c0fe702a5ab7cd12 Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
2023-10-25camera-gstreamer: Add fallback sinkAshok Sidipotu3-35/+84
Add a still image fallback sink when the intended camera's are not available. Still image indicates that the camera devices are not available. This should help towards the better user experience of the app. Bug-AGL: SPEC-4881 Change-Id: Id0e4689861fead763366eac4de506f298a0de5e2 Signed-off-by: Ashok Sidipotu <ashok.sidipotu@collabora.com>
2023-10-12camera-gstreamer: Add pipewire source to capture video streamsAshok Sidipotu2-14/+80
Pipewire can be used for capturing camera video streams, add it as one of the sources and make it the default source. V4L2 path can be chosen with an env variable. Enhance the README file with info that helps with the usage of the app. Bug-AGL: SPEC-4881 Change-Id: Ia1d989da229304b1b514d6b25ebbc2530503d370 Signed-off-by: Ashok Sidipotu <ashok.sidipotu@collabora.com>
2023-08-28main: Redo buffer handling in camera-gstreamerMarius Vlad1-56/+111
Using this time a buffer list, similar to what simple-shm is doing to avoid getting back that a buffer is busy, due to *not* prunning older buffers. As such, double buffering seems to be sufficient so we don't need to resort to having 3 buffers. This should fix switching back and forth between other applications and the camera application. Tested with vivid module. Bug-AGL: SPEC-4884 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ia3987782b3e107a0055f9680fecfed0f9a96eec6
2023-08-09main: Destroy the pipeline before window/displayMarius Vlad1-2/+3
Bug-AGL: SPEC-4878 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ided754172557d9c9f92fe7c0e27b08c11f9a81ac
2023-08-09main: Allow to pass different devices and height/widthMarius Vlad2-1/+24
Bug-AGL: SPEC-4877 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ic35267e93a95589be6af0b3d2e0bb9839303b519
2022-03-07Update for app framework removalneedlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin/12.93.013.93.012.93.0Scott Murray7-494/+25
Changes: - Remove the autobuild scripts and config.xml used by the app framework widget build. - Update the CMake files to just build a "camera-gstreamer" binary and install it into /usr/bin by default. - Remove the code in main.cpp that handled reading the WebSocket command-line arguments and passing them to binding related code. - Added installation of a minimal .desktop file to work with the new applaunchd. Bug-AGL: SPEC-4284 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I87816800c117a243a107eecb8895f07d6c90f23a
2022-01-17Fix code review comments from ↵marlin_12.92.0marlin/12.92.012.92.0Vasyl Vavrychuk3-10/+12
https://gerrit.automotivelinux.org/gerrit/c/apps/camera-gstreamer/+/26934. Bug-AGL: SPEC-4148 Change-Id: I18b3029eb91d4c693f1848c0e7eeedcdaae14e7f Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-01-16Explain why need to check for buffer valid.Vasyl Vavrychuk1-0/+2
Fixes https://gerrit.automotivelinux.org/gerrit/c/apps/camera-gstreamer/+/26935/2//COMMIT_MSG#7 Bug-AGL: SPEC-4148 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> Change-Id: I99e5cfb31e24a95b5b9062999a46a962ee8ea9a7
2022-01-16Rearrange buffer valid and busy check.Vasyl Vavrychuk1-1/+1
It is more natural to check buffer validity first before buffer busyness. Fixes https://gerrit.automotivelinux.org/gerrit/c/apps/camera-gstreamer/+/26935/2/app/main.cpp#161 Bug-AGL: SPEC-4148 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com> Change-Id: I0df3dd48c183429b55f49915e6722342a97bd2c5
2021-12-07Freeing main argv is not needed and must not be done.marlin_12.91.0marlin/12.91.0koi_11.0.5koi/11.0.512.91.011.0.5Vasyl Vavrychuk1-3/+3
Was getting: free(): invalid pointer Bug-AGL: SPEC-4148 Change-Id: I81bc58f647c0d4cb57a2d1bd7cecb80e943c05d2 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2021-12-07Fix crash due to 'window->buffers[0].buffer' NULL pointer.Vasyl Vavrychuk1-1/+1
Bug-AGL: SPEC-4148 Change-Id: I353deeea5ef00c6b69f381becd720d517e5a51df Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2021-12-07Automatically detect camera capable v4l2 device.Vasyl Vavrychuk3-3/+51
Bug-AGL: SPEC-4148 Change-Id: I42cf0adf9e55679069992d73f079b916684f8e8b Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2021-12-04Disable buffering on stdout.Andriy Tryshnivskyy1-0/+2
It fix a problem when prints to sdtout are not visible in journalctl. Bug-AGL: SPEC-4166 Change-Id: I5652e84bdfd3307edf53d2d7d07c532f41faa909 Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com>
2021-03-03Init camera-gstreamermarlin_12.90.1marlin_12.90.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.0koi_11.0.4koi_11.0.3koi/11.0.4koi/11.0.3jellyfish_10.0.3jellyfish/10.0.312.90.112.90.011.92.011.91.011.0.411.0.310.0.3Marius Vlad14-0/+1729
Bug-AGL: SPEC-3629 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ib1a221f03dfac3114bbd3477dc488dd90c86ba35
2021-02-26Initial empty repositoryJan-Simon Moeller0-0/+0