From 5f798ad905e6d0cc800385339b8f66cdc2395aae Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Wed, 7 Dec 2022 22:18:24 +0100 Subject: [PATCH] fixed: dumpfile is not setting the frame size to the videodev.conf_height and width variable --- simpleskycam.ui | 9 ++++++--- videodev-dumpfile.cc | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/simpleskycam.ui b/simpleskycam.ui index 55794dd..53ddfd6 100644 --- a/simpleskycam.ui +++ b/simpleskycam.ui @@ -610,15 +610,18 @@ on True - FLAT - was anderes + Light + Bias + Dark + Flat + DarkFlat False False 6 - FLAT + Light diff --git a/videodev-dumpfile.cc b/videodev-dumpfile.cc index 0859820..eed818e 100644 --- a/videodev-dumpfile.cc +++ b/videodev-dumpfile.cc @@ -114,9 +114,10 @@ int VideoDev_Dumpfile::Open() { return VDEV_STATUS_ERROR; } i = 0; - w = ntohl(inbuf[i++]); - h = ntohl(inbuf[i++]); + conf_width = w = ntohl(inbuf[i++]); + conf_height = h = ntohl(inbuf[i++]); pixformat = ntohl(inbuf[i++]); + conf_format = convert_from_pixelformat (pixformat); return VDEV_STATUS_OK; };