From f7c2146d3205a85d626f03c5fef4bd4ed64aa24a Mon Sep 17 00:00:00 2001 From: Steffen Date: Thu, 22 Jan 2026 18:15:47 +0000 Subject: [PATCH] ignore me --- README.md | 19 +++++++++++-------- convert.cc | 2 ++ debayer.cc | 8 ++++---- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 665ae6d..68f3147 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,14 @@ The configuration is loaded in the following order. - program parameters - user defined configurtion file defined in the program parameters -## How to build and install -Meson/Ninja is used for the build process. -To compile and install the application run the following commands: -``` -meson setup build -meson compile -C build -meson install -C build -``` +# INFORMATION + +here are some usefull commands, maybe it helps to set the resolution to a readonable value + +media-ctl --device 3 --set-v4l2 '"imx219 10-0010":0 [fmt:SRGGB10_1X10/3280x2464]' +media-ctl --device 0 --set-v4l2 '"imx219 10-0010":0 [fmt:SRGGB8_1X8/3280x2464]' +./miniwebcam -vdevsize 3280 2464 -vdevformat RG10 + + + + diff --git a/convert.cc b/convert.cc index 46a082e..198ac19 100644 --- a/convert.cc +++ b/convert.cc @@ -29,6 +29,7 @@ uint32_t convert_pixelformats [] = { V4L2_PIX_FMT_SGRBG16, V4L2_PIX_FMT_SRGGB10P, V4L2_PIX_FMT_SRGGB10, + V4L2_PIX_FMT_SGBRG10, V4L2_PIX_FMT_SRGGB8, V4L2_PIX_FMT_SGRBG8, 0 @@ -244,6 +245,7 @@ int Convert (ConvertData *cdata, VideoFrame *dest, unsigned char *ptrsrc, int sr debayer_rggb10packet_bilinear ((uint8_t *)ptrsrc, srcw, srch, ptrdst, srcw, srch); break; + case (V4L2_PIX_FMT_SGBRG10): case (V4L2_PIX_FMT_SRGGB10): if (debayer_mode == 0) debayer_rggb10_simple ((uint8_t *)ptrsrc, srcw, srch, ptrdst, srcw, srch); diff --git a/debayer.cc b/debayer.cc index 6e79fd1..e223fa8 100644 --- a/debayer.cc +++ b/debayer.cc @@ -528,10 +528,10 @@ void debayer_rggb10_simple (uint8_t * src, int src_w, int src_h, } } } - if (pdst - dst > max) { - printf ("debayer error. dpst out of bounds size:%dx%d pos:%dx%d \n", dst_w, dst_h, xd, yd); - } - if ((ys == 10 || ys == 11) && xs < 10) printf ("%dx%d - %d, %d, %d\n", xs, ys, r, g, b); +// if (pdst - dst > max) { +// printf ("debayer error. dpst out of bounds size:%dx%d pos:%dx%d \n", dst_w, dst_h, xd, yd); +// } +// if ((ys == 10 || ys == 11) && xs < 10) printf ("%dx%d - %d, %d, %d\n", xs, ys, r, g, b); pdst[0] = (r); pdst[1] = (g); pdst[2] = (b);