From patchwork Fri Oct 2 10:34:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 9904 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 E66AEC3B5C for ; Fri, 2 Oct 2020 10:34:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6C4F9623B6; Fri, 2 Oct 2020 12:34:23 +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="qxGYQcly"; 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 6123D6035D for ; Fri, 2 Oct 2020 12:34:22 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1601634861; bh=gUaLFqfJRj+M+9OLnXMKkaP0Dxg5rU6q+y9+60dKi7M=; h=From:To:Cc:Subject; b=qxGYQclyN6zLvNiNHSfrnQGm2A7cKrB8m2hFhyKPiB2TEDvpBLmdP+MqEjAyDjJcz IFAX2Uui+XKdssjg9T/Og6GJ8cVp7wzLT53Vp9ss18NMcmp8N5MGvmzD5nB0MNDacT 2m2/9O8h5fGPBX4YacM9IlPhuhbNMGhKMIJL335frCbz4nQGMfpBFpd02+XG6OMisT GO6RTSWDbuHvksBxQ/gHHhgWriXvHqReNlNXsUNVZNIA4j4a9kpGqGbJN4uzuTtMd3 zupt4CVQ7Mh7Ofnx/LcxIKrAI6RwdKB1g5PejdGp4tjBEs7e4tHjD6LypjK3yQ+vCu wQRROs9lxiYtg== To: libcamera-devel@lists.libcamera.org Date: Fri, 2 Oct 2020 16:04:13 +0530 Message-Id: <20201002103416.53623-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 0/3] Basic NV12 image thumbnailer 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" Hi, This series targets generation of a image thumbnail for the EXIF metadata of the frames captured via android HAL. The thumbnailer is takes in a NV12 buffer and outputs the same but with scaled down(or up, if you want) buffer. Embedding the buffer via libexif is still a follow-up task I am looking into, you will find a \todo in that regard. Two [DNI] patches for dev-info are also included, if anyone is interested in building / trying out locally. You shall get the dev branch on my fork: https://github.com/uajain/libcamera. Thanks. Umang Jain (3): android: jpeg: Add a basic NV12 image thumbnailer [DNI] jpeg/thumbnailer: write thumbnail to file [DNI] Add HOWTO scaler instructions for future reference scaler-instructions.txt | 18 ++++ src/android/jpeg/encoder_libjpeg.cpp | 12 +++ src/android/jpeg/thumbnailer.cpp | 128 +++++++++++++++++++++++++++ src/android/jpeg/thumbnailer.h | 34 +++++++ src/android/meson.build | 1 + 5 files changed, 193 insertions(+) create mode 100644 scaler-instructions.txt create mode 100644 src/android/jpeg/thumbnailer.cpp create mode 100644 src/android/jpeg/thumbnailer.h