From patchwork Mon Jun 20 21:06:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16294 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 2B1FEBD808 for ; Mon, 20 Jun 2022 21:07:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 299BB65636; Mon, 20 Jun 2022 23:07:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759240; bh=0JIyDhQhxEerDqxhDQkeUopl/nxkgDfJJfIfF2OYUiQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=vTyYJhQ73JbfNJxrO7PQEOYcVfCRdU9nYJkN1c7yQ0TKe2/WdNXYmTH7Ml99C8Xi8 ewOuQ+9T7Pu0AqYlAN7fE25KIDrQ4jZmFSd+eUFbLhCzblD7K/lNco/YwIGG4Z5gP7 1ZGeTsmqT0d1n17LMa352kHIY/Bg47QxszscDoI8au1VM0XJdiGOtHRTnIumdtSxzY jxLHI65nCXPUilT7JkeadiYTprQIlEfpnVqs9ZoZDTQoHN6mYlYeWLzASBUR4ydOS6 g9+gqEUJtKhHcmENytyxYjXZmAKxGaB2Cc9f3/Dep1g02SYRmtUTIHSwDuv5Qt/lTz 0ICDikSN6Q2QQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CBE7F65632 for ; Mon, 20 Jun 2022 23:07:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ueX+cMwR"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6389B104 for ; Mon, 20 Jun 2022 23:07:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759237; bh=0JIyDhQhxEerDqxhDQkeUopl/nxkgDfJJfIfF2OYUiQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ueX+cMwRjMjrim2ULLmFtQ3l97R9ATd2oTOO6vOjmh+R0k3XERQsvravmRUdb+ZQK 2RVk1cxthZRxjXXfh0OJZFtATj8d8KtrDKrcG9ijEwbz0Kieagn01fPzJme4I11pJn iIgjrvim2Ozs8VmUwJOs5jj5YrKMW+fVDWOiErdw= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:55 +0300 Message-Id: <20220620210658.20288-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/4] utils: rkisp1: Remove frames before starting capture 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: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Delete frames previously captured before starting a new capture, to avoid mixing old and new frames. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index 4d09f5d5f01b..d5ebe5b1d1ba 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -88,6 +88,7 @@ capture_frames() { if [[ $save_file -eq 1 ]]; then file_op="--file=/tmp/frame-#.bin" + rm -f /tmp/frame-*.bin fi yavta -c$frame_count -n5 -I -f $capture_format -s $capture_size \