From patchwork Fri Oct 2 10:34:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 9907 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 A5380C3B5C for ; Fri, 2 Oct 2020 10:34:30 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7479763B2A; Fri, 2 Oct 2020 12:34:30 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=uajain.com header.i=@uajain.com header.b="jhFwNoW/"; dkim-atps=neutral Received: from mail.uajain.com (static.126.159.217.95.clients.your-server.de [95.217.159.126]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 949276035D for ; Fri, 2 Oct 2020 12:34:29 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1601634869; bh=FEtRYcTQyqtjJVRf8peI8iYjMXb3nWgf8n3fk4TttBI=; h=From:To:Cc:Subject:In-Reply-To:References; b=jhFwNoW/bszkMnjcn6Q8MdabnUj2gvifpptDGgkABmQ8/KWwhDV+/8L826Zovas3f rYEx906KwVG0+qXp3avo7be3wEBB6xDYgJ0paVLMldV1p4jhvM9fBY75ZE7hyzs5WE +3b6t062rOdpEM6tr427wgxVyWtKLkexTgI34el962dz4te/+Yd+zJt3zq4OLfOtwE IwLBJrZXv5ZnPhuHrnmMa3nRZMrmsmuJer0JEepOUyzjlsFqY5K8KzqZzn+Cto6A0T mR31/T8iXhOqAmYqvfmySlK6nYTxoA13eUdwJlqBoDeBlHbssqigiz1zApd3lfVrp/ U0IGueiheAaLA== To: libcamera-devel@lists.libcamera.org Date: Fri, 2 Oct 2020 16:04:16 +0530 Message-Id: <20201002103416.53623-4-email@uajain.com> In-Reply-To: <20201002103416.53623-1-email@uajain.com> References: <20201002103416.53623-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 3/3] [DNI] Add HOWTO scaler instructions for future reference 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" --- scaler-instructions.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scaler-instructions.txt diff --git a/scaler-instructions.txt b/scaler-instructions.txt new file mode 100644 index 0000000..3151db3 --- /dev/null +++ b/scaler-instructions.txt @@ -0,0 +1,18 @@ +# Build uajain/exif-scaler-NV12 tester with -Dandroid=enabled +# Load the vivid module if not done already + +# Capture few frames in NV12 from cam +./build/src/cam/cam -c vivid -C2 -F -s pixelformat=NV12 + +# Note down scaled down image's size from the above capture's o/p $size +# scaled down raw output is written to /tmp + +cd /tmp +~/src/raw2rgbpnm/raw2rgbpnm -s $size -f RGB24 30-09-2020.18-47-29.0.raw thumbnail.ppm + +# View new.ppm +eog thumbnail.ppm + +--- + +raw2rgbpnm git : git://git.retiisi.eu/~sailus/raw2rgbpnm.git