From patchwork Fri Oct 16 05:37:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 10073 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 440FDBE174 for ; Fri, 16 Oct 2020 05:38:02 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C98F860E36; Fri, 16 Oct 2020 07:38:01 +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="E8TqUQKZ"; 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 7B2E560354 for ; Fri, 16 Oct 2020 07:38:00 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1602826679; bh=oqOc1ou1iN27kAwNWMr3IYKMeHI1cObp8dBmkLqN8VU=; h=From:To:Cc:Subject; b=E8TqUQKZLNKM+vk8xciLG+usDGA0bAGPZ9YZX1WFWhk0pwSz6VdKEs9zu7eX5FSUc Vdy5I4YeXhVYxLF00JNz8iraoXKb1dyflPHSKtsXoV75nHTRPbqfldSpbrXYTB6giS sCUMqeN60urHBBNbWpGcehKgyKKLYetUda/8lBs0wezfIVaYToGAj1y3Ju1Mc45ihN VZIJgglRDj7rzLb9KzV25st1u05V5b7a1m1jYgWHeu4Ji+Ugf1ER3fZ463dEQ2qHhE 8whjs9AIniLh9v0p2eP6JgN6Y8HusXqxEp90bo6FlxBVv1mS1AfviGuH/nm6rod8Bl A4icDhz/e7hZw== To: libcamera-devel@lists.libcamera.org Date: Fri, 16 Oct 2020 11:07:52 +0530 Message-Id: <20201016053754.17251-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] 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. Changes in v2: - Drop the nitpick indent patch as already merged - Addressed small review comments, no major rework - Updated tags Umang Jain (2): android: post_processor: Introduce a PostProcessor interface android: jpeg: Port to PostProcessor interface src/android/camera_device.cpp | 1 + src/android/camera_stream.cpp | 77 ++++------------- src/android/camera_stream.h | 4 +- src/android/jpeg/encoder_libjpeg.cpp | 2 +- src/android/jpeg/post_processor_jpeg.cpp | 105 +++++++++++++++++++++++ src/android/jpeg/post_processor_jpeg.h | 36 ++++++++ src/android/meson.build | 1 + src/android/post_processor.h | 28 ++++++ 8 files changed, 192 insertions(+), 62 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