From: Yogesh Tyagi <[email protected]>

The libxcam repository has been archived by Intel on May 5, 2025
and is now read-only. No further updates will be available.

Repository: https://github.com/intel/libxcam

Signed-off-by: Yogesh Tyagi <[email protected]>
---
 ..._v4l2_device.h-fix-narrowing-warning.patch | 94 -------------------
 recipes-core/libxcam/libxcam_1.5.0.bb         | 38 --------
 2 files changed, 132 deletions(-)
 delete mode 100644 
recipes-core/libxcam/libxcam/0001-fake_v4l2_device.h-fix-narrowing-warning.patch
 delete mode 100644 recipes-core/libxcam/libxcam_1.5.0.bb

diff --git 
a/recipes-core/libxcam/libxcam/0001-fake_v4l2_device.h-fix-narrowing-warning.patch
 
b/recipes-core/libxcam/libxcam/0001-fake_v4l2_device.h-fix-narrowing-warning.patch
deleted file mode 100644
index f15d5cc7..00000000
--- 
a/recipes-core/libxcam/libxcam/0001-fake_v4l2_device.h-fix-narrowing-warning.patch
+++ /dev/null
@@ -1,94 +0,0 @@
-From d4c97b50b577ea16b9ff6d9a352ab474a119310e Mon Sep 17 00:00:00 2001
-From: Naveen Saini <[email protected]>
-Date: Wed, 18 May 2022 15:41:24 +0800
-Subject: [PATCH] fake_v4l2_device.h: fix narrowing warning
-
-Use uint32_t instead of int for IOCTLs commands.
-
-Warning log:
-| ../../../git/xcore/fake_v4l2_device.h: In member function 'virtual int 
XCam::FakeV4l2Device::io_control(int, void*)':
-| ../../../git/xcore/fake_v4l2_device.h:42:14: error: narrowing conversion of 
'3225441794' from 'long unsigned int' to 'int' [-Wnarrowing]
-|    42 |         case VIDIOC_ENUM_FMT:
-|       |              ^~~~~~~~~~~~~~~
-| make[4]: *** [Makefile:685: libgstxcamsrc_la-gstxcamsrc.lo] Error 1
-
-Issue: https://github.com/intel/libxcam/issues/801
-Upstream-Status: Submitted [https://github.com/intel/libxcam/pull/802]
-
-Signed-off-by: Naveen Saini <[email protected]>
----
- xcore/base/xcam_common.h | 2 +-
- xcore/fake_v4l2_device.h | 2 +-
- xcore/v4l2_device.cpp    | 2 +-
- xcore/v4l2_device.h      | 2 +-
- xcore/xcam_common.cpp    | 2 +-
- 5 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/xcore/base/xcam_common.h b/xcore/base/xcam_common.h
-index 1f16e1e..4aa6cb9 100644
---- a/xcore/base/xcam_common.h
-+++ b/xcore/base/xcam_common.h
-@@ -75,7 +75,7 @@ void xcam_free (void *ptr);
-   * return, 0 successfully
-   *            else, check errno
-   */
--int xcam_device_ioctl (int fd, int cmd, void *arg);
-+int xcam_device_ioctl (int fd, uint32_t cmd, void *arg);
- const char *xcam_fourcc_to_string (uint32_t fourcc);
- 
- void xcam_set_log (const char* file_name);
-diff --git a/xcore/fake_v4l2_device.h b/xcore/fake_v4l2_device.h
-index f679c19..e29787d 100644
---- a/xcore/fake_v4l2_device.h
-+++ b/xcore/fake_v4l2_device.h
-@@ -33,7 +33,7 @@ public:
-         : V4l2Device ("/dev/null")
-     {}
- 
--    int io_control (int cmd, void *arg)
-+    int io_control (uint32_t cmd, void *arg)
-     {
-         XCAM_UNUSED (arg);
- 
-diff --git a/xcore/v4l2_device.cpp b/xcore/v4l2_device.cpp
-index 395461e..66a8ac6 100644
---- a/xcore/v4l2_device.cpp
-+++ b/xcore/v4l2_device.cpp
-@@ -185,7 +185,7 @@ V4l2Device::close ()
- }
- 
- int
--V4l2Device::io_control (int cmd, void *arg)
-+V4l2Device::io_control (uint32_t cmd, void *arg)
- 
- {
-     if (_fd <= 0)
-diff --git a/xcore/v4l2_device.h b/xcore/v4l2_device.h
-index b4ad7ad..2551a92 100644
---- a/xcore/v4l2_device.h
-+++ b/xcore/v4l2_device.h
-@@ -104,7 +104,7 @@ public:
-     XCamReturn queue_buffer (SmartPtr<V4l2Buffer> &buf);
- 
-     // use as less as possible
--    virtual int io_control (int cmd, void *arg);
-+    virtual int io_control (uint32_t cmd, void *arg);
- 
- protected:
- 
-diff --git a/xcore/xcam_common.cpp b/xcore/xcam_common.cpp
-index 848884d..d4d5093 100644
---- a/xcore/xcam_common.cpp
-+++ b/xcore/xcam_common.cpp
-@@ -53,7 +53,7 @@ void xcam_free(void *ptr)
-         free (ptr);
- }
- 
--int xcam_device_ioctl (int fd, int cmd, void *arg)
-+int xcam_device_ioctl (int fd, uint32_t cmd, void *arg)
- {
-     int ret = 0;
-     int tried_time = 0;
--- 
-2.25.1
-
diff --git a/recipes-core/libxcam/libxcam_1.5.0.bb 
b/recipes-core/libxcam/libxcam_1.5.0.bb
deleted file mode 100644
index 7f67b55b..00000000
--- a/recipes-core/libxcam/libxcam_1.5.0.bb
+++ /dev/null
@@ -1,38 +0,0 @@
-SUMMARY  = "libXCam is a project for extended camera(not limited in camera) \
-features and focus on image quality improvement and video analysis"
-LICENSE  = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8c911f084a3e5f46b21582a6cc9973e6"
-SECTION = "lib"
-
-inherit autotools pkgconfig
-
-SRCREV = "231a1d5243cd45c7a6b511b667f1ec52178fdda8"
-SRC_URI = "git://github.com/intel/libxcam.git;branch=1.5.0;protocol=https \
-            file://0001-fake_v4l2_device.h-fix-narrowing-warning.patch \
-"
-
-COMPATIBLE_HOST:libc-musl = "null"
-
-PACKAGECONFIG ??= " gst \
-                    ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "gles", 
"", d)} \
-                    ${@bb.utils.contains("DISTRO_FEATURES", "vulkan", 
"vulkan", "", d)} \
-                    "
-
-PACKAGECONFIG[gst]    = "--enable-gst, --disable-gst, gstreamer1.0 
gstreamer1.0-plugins-base"
-PACKAGECONFIG[aiq]    = "--enable-aiq, --disable-aiq,"
-PACKAGECONFIG[libcl]  = "--enable-libcl, --disable-libcl,"
-PACKAGECONFIG[opencv] = "--enable-opencv, --disable-opencv, opencv"
-PACKAGECONFIG[render] = "--enable-render, --disable-render,"
-PACKAGECONFIG[gles]   = "--enable-gles, --disable-gles, virtual/mesa"
-PACKAGECONFIG[vulkan] = "--enable-vulkan, --disable-vulkan, vulkan-loader 
virtual/mesa"
-PACKAGECONFIG[dnn]    = "--enable-dnn, --disable-dnn,"
-
-do_install:append () {
-    install -d ${D}${bindir}/libxcam
-    cp -r ${B}/tests/.libs/* ${D}${bindir}/libxcam/
-}
-
-FILES:${PN} += "${libdir}/gstreamer-*/*.so"
-FILES:${PN}-test = "${bindir}/libxcam/*"
-PACKAGES =+ "${PN}-test"
-RDEPENDS:${PN}-test =+ "bash"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8683): 
https://lists.yoctoproject.org/g/meta-intel/message/8683
Mute This Topic: https://lists.yoctoproject.org/mt/117592163/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to