summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-12-22main: Remove fullscreen option from waylandsinkricefish_18.0.3ricefish_18.0.2ricefish_18.0.1ricefish_18.0.0ricefish/18.0.3ricefish/18.0.2ricefish/18.0.1ricefish/18.0.0quillback_17.1.4quillback_17.1.3quillback_17.1.2quillback_17.1.1quillback_17.1.0quillback_17.0.2quillback_17.0.1quillback_17.0.0quillback/17.1.4quillback/17.1.3quillback/17.1.2quillback/17.1.1quillback/17.1.0quillback/17.0.2quillback/17.0.1quillback/17.0.018.0.318.0.218.0.118.0.017.1.417.1.317.1.217.1.117.1.017.0.217.0.117.0.0Marius Vlad1-1/+1
There's no need for adding that option as we're providing our own window, and not relying on gst-launch. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Iaa8891cabbf1d32f94355fc5c453cba2647d547d
2023-12-22main: Remove raw video media types capsMarius Vlad1-2/+1
And let pipewiresrc figure on its own. Tested out with an uvcvideo driver (USB camera). Bug-AGL: SPEC-5025 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I360f5494a1801fc22802ecf5089195f55e8d19db
2023-12-05app: Fix resizing to window/float and set it up if user requests itMarius Vlad1-0/+11
Make use of the gRPC API and allow the user to start the camera as floating/dialog type of window. This has the side effect requiring an initial resize values. We didn't need to do that because we always had to be resized to a maximum but now we need to have an initial value as well. Bug-AGL: SPEC-4987 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I3df8f0887425d461b6d812a429da6ce10fa1e00d
2023-12-05app: Remove width/height from filesrc fallback sinkMarius Vlad1-1/+1
This assumes we pass more arguments but there's no other arguments passed for this pipeline. Bug-AGL: SPEC-4987 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I610cb8ecf01e8a15fcffa6c1b94564937b4e9b70
2023-11-27app: Convert to meson build system and use gRPCMarius Vlad1-51/+5
This converts to using newer meson build system, and makes use of gRPC API rather using native agl-shell-desktop protocol. We still need to use wayland for window set-up so xdg-shell is still there and supported. Bug-AGL: SPEC-4987 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I81eefe103c67b8d490fd33c14cc8f4b04feceaed
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 Sidipotu1-35/+82
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 Sidipotu1-8/+24
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 Vlad1-1/+22
Bug-AGL: SPEC-4877 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ic35267e93a95589be6af0b3d2e0bb9839303b519
2022-01-17Fix code review comments from ↵marlin_12.92.0marlin/12.92.012.92.0Vasyl Vavrychuk1-1/+1
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 Vavrychuk1-3/+1
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 Vlad1-0/+739
Bug-AGL: SPEC-3629 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ib1a221f03dfac3114bbd3477dc488dd90c86ba35