From patchwork Thu Oct 15 17:14:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 10057 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 485ACBE905 for ; Thu, 15 Oct 2020 17:15:07 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9E3BE60F23; Thu, 15 Oct 2020 19:15:06 +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="aAl+6SGG"; 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 7D2C7605BF for ; Thu, 15 Oct 2020 19:15:04 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1602782103; bh=hCH/oCEuBzIXXj2MJWjLUeXduZ4kp9qeGdvsaFoFZVs=; h=From:To:Cc:Subject; b=aAl+6SGGSbRM6sDArCZxGXoMFxetoWuTjIPYwjmXoJE7kAO1Q56F9ixE02oqXKxeM GtrEn61PbV3iDpj4fQLAZ9pHS/cPeoZUor7AKt+KaLr8iXaaxHCrM5/BebtuJpi5cp nFUYuZA7UZe3SpDGF6o7UUq/YZlChT+KOOnFnkxKtShPu9iaOPadVAIeDVw0jyjdqY kYvnzyHSfZ42IpHcMeW7G6g0LGMTm9xAyhSbSprMcYyfhbf4ONQd2BvjMhj248dj2a 0PD7qs+1DpJy1oYLsGRsnuclHNi60maL7QHkXxPaf1GXPXROyIQR1Hs8FnExbdf+gE r+uUhTgvMpgvA== To: libcamera-devel@lists.libcamera.org Date: Thu, 15 Oct 2020 22:44:54 +0530 Message-Id: <20201015171457.75678-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] android: Introduce PostProcessor interface 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" Introduce a PostProcessor interface. This enables to restrict exposure of JPEG specific bits in CameraStream and moves all the JPEG related bits to a derived class from this interface, PostProcessorJpeg. The commits has been tested by Kieran and it seems no regression has been introduced. Umang Jain (3): android: post_processor: Introduce a PostProcessor interface android: jpeg: Port to PostProcessor interface android: CameraStream: Fix nitpick indentation for mutex_ src/android/camera_device.cpp | 1 + src/android/camera_stream.cpp | 77 ++++------------ src/android/camera_stream.h | 6 +- src/android/jpeg/encoder_libjpeg.cpp | 2 +- src/android/jpeg/post_processor_jpeg.cpp | 110 +++++++++++++++++++++++ src/android/jpeg/post_processor_jpeg.h | 36 ++++++++ src/android/meson.build | 1 + src/android/post_processor.h | 28 ++++++ 8 files changed, 198 insertions(+), 63 deletions(-) create mode 100644 src/android/jpeg/post_processor_jpeg.cpp create mode 100644 src/android/jpeg/post_processor_jpeg.h create mode 100644 src/android/post_processor.h