From 7bc77048d2bac80b675dbc0270a1a83559cb4b0f Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Tue, 11 Nov 2025 09:33:37 +0100 Subject: build for radxa zero 3e on native debian --- src/camera/ov9281.cpp | 4 ++-- src/image.cpp | 3 +++ src/main.cpp | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/camera/ov9281.cpp b/src/camera/ov9281.cpp index a629a91..8f84255 100644 --- a/src/camera/ov9281.cpp +++ b/src/camera/ov9281.cpp @@ -119,8 +119,8 @@ bool OV9281::validateConfig() << std::endl; std::cout << __func__ << ":\tbufferCount: " << streamConfig.bufferCount << std::endl; - std::cout << __func__ << ":\torientation: " << m_config->orientation - << std::endl; + // std::cout << __func__ << ":\torientation: " << m_config->orientation + // << std::endl; break; } case CameraConfiguration::Status::Invalid: { diff --git a/src/image.cpp b/src/image.cpp index 9c258c6..e5265c7 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -227,6 +227,8 @@ void Image::copyFromData(const void *src, size_t size) // data = (uint8_t *) src; break; } +#define RADXA_HAS_NO_R16 +#ifndef RADXA_HAS_NO_R16 case libcamera::formats::R16: { // std::cout << "R16" << std::endl; // data_t &d = *data; @@ -239,6 +241,7 @@ void Image::copyFromData(const void *src, size_t size) } break; } +#endif // RADXA_HAS_NO_R16 default: throw std::logic_error(__func__ + std::string(": unsupported pixel format")); break; diff --git a/src/main.cpp b/src/main.cpp index aab134e..bc0c00b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,7 @@ #include "imagealgos.h" #include "laser.h" #include "macro.h" -#include "pigpio.h" +// #include "pigpio.h" #include "printerclient.h" #include "profile.h" #include "rotaryencoder.h" -- cgit v1.2.3-70-g09d2