From patchwork Fri Jun 24 13:05:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Semkowicz X-Patchwork-Id: 16367 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 3216ABE173 for ; Fri, 24 Jun 2022 13:05:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 56FC765635; Fri, 24 Jun 2022 15:05:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1656075930; bh=GIvK9imxHAxGcS40yI80sly9B3KtoxEethv0dGYIiPE=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=uiIVyZP2RM6rSAq5aKDA5+Uu+787pcCoHy5JFvK8WM5ee6Ts778a89WFx763++DBl OGQ23J+iyVywATvnURRSENrXD9U/z7VYEcgS/W8PtYzscJaG+0A8A5dGPJj4fcj4i5 LvkXGi05B3h/AG+MrAO7txAO0UwyG45d/AcdlpTGLVr4bcupmaCvj/2iDRdLkjZkci vtCkn4cd480XGsv7jrf/vNsL2YamjOEgelm8V+diucThANSIweJHaenOjC6TtCgZpX 48nrmcTgefy4JXtX4jo2tGAwN2VkfYd8s2hPjnAAsF3z8+XHoMlbcsBYsH2wS/zRCo fqSU9WBZgRfww== Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B81CB600EC for ; Fri, 24 Jun 2022 15:05:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=thaumatec-com.20210112.gappssmtp.com header.i=@thaumatec-com.20210112.gappssmtp.com header.b="aufsm+go"; dkim-atps=neutral Received: by mail-wr1-x433.google.com with SMTP id g18so3032277wrb.10 for ; Fri, 24 Jun 2022 06:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thaumatec-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E7poNl8cnJxlJ079fUkeSevrBdOwl9MsyWL2uEG5Gxg=; b=aufsm+goh/CSwrM+ySMnswNTZXAAEwZbUV562K1Ttgt7e881fI42p05ck/l6bfxDau KPg9t/h3qKEdPt96c5S8aKpwoROQbB6QquT5hB42ojLRjJjaHd5c2GNdoJTStqfDhwRM +SLL315cwFQgj4xC+LkmaZCVOV95YOE9mhYvHQxDG8u3hhCD0T9f3fFWdr0d5cq1SSWj 35ZzLuxg2gByhuSToydFkOYPNLoa1LfXQ1V2b6CE5gNymUvvLlZAXIB0HUyRyydEM2Zh bmhSnJkt65dG9a19ew37vZLXwGtK2A/mdI68wvf3hZksdLzTdCaop8Fj1MOuSB3UaZ81 UxMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E7poNl8cnJxlJ079fUkeSevrBdOwl9MsyWL2uEG5Gxg=; b=1xA10t7ZpHz24aQz9ULC1CydXKigWOtybPi6TUTlqmkrxHtpR85DEV5mcy5aZrk/I7 SOi1aAk0VHQEPVz8F2uSodoRVkvQJIYgw3L/szEl278tn6H6SKJiRglJyJYir4O93vRw sdFLzkwRot2wVNyd0SAKWX3EDZ8gGDLcMahplh2pQaMqqmQ5RFI79AxUVU90Er5apyB0 6LQHy6HyetVsw9gcpoWKijqXm2Y+fzJHUWnCKfE1G3LwDxeLuTZmZubHPMkhZhSjbbnV Fks6biugpNuVCgty8xTqWBE3dhkoZsh5cYYOn4ArstEogDdAA+//89ZWUQI9Nqc5SfLq eYvg== X-Gm-Message-State: AJIora/1XrN2TEbr66dfd9W/gyFr7vhkYO0LeVu6HpvZOjbPSZVpvOkk X0IToSDmaZje8r46tyQiWjyvjRZiCbhobzGx X-Google-Smtp-Source: AGRyM1t4iwpF4bBmbvFYDUJ3H3kewUq1o0eKnNvZlTdnSD/yg2K0eXg6ECXtPAksk1V5BB1WvLkPRw== X-Received: by 2002:a5d:648b:0:b0:21b:a2d3:8dff with SMTP id o11-20020a5d648b000000b0021ba2d38dffmr11804747wri.716.1656075929335; Fri, 24 Jun 2022 06:05:29 -0700 (PDT) Received: from localhost.localdomain (ip092042140082.rev.nessus.at. [92.42.140.82]) by smtp.gmail.com with ESMTPSA id m20-20020a05600c4f5400b0039747cf8354sm2889703wmq.39.2022.06.24.06.05.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jun 2022 06:05:28 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jun 2022 15:05:21 +0200 Message-Id: <20220624130523.41535-1-dse@thaumatec.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] cam: Add Rectangle type parsing in capture script X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Daniel Semkowicz via libcamera-devel From: Daniel Semkowicz Reply-To: Daniel Semkowicz Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Changes vs v1: - Move all types unpacking lower to unpackControl() - Use ControlValue::isNone to signalize error condition - Add patch for checking parseFrames() return value Best regards Daniel Semkowicz Daniel Semkowicz (2): cam: Add Rectangle type parsing in capture script cam: capture_script: Check parseFrames() return value for errors src/cam/capture_script.cpp | 113 +++++++++++++++++++++++++++++++++---- src/cam/capture_script.h | 6 +- 2 files changed, 105 insertions(+), 14 deletions(-)