From patchwork Thu Jan 28 22:42:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11045 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 557BABD808 for ; Thu, 28 Jan 2021 22:42:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CE3AA68390; Thu, 28 Jan 2021 23:42:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="SOA8oB0X"; dkim-atps=neutral Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A50646030A for ; Thu, 28 Jan 2021 23:42:24 +0100 (CET) Received: by mail-pg1-x52b.google.com with SMTP id t25so5297243pga.2 for ; Thu, 28 Jan 2021 14:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s3XmegfCKQn9fymzH7R6U1VtDEWbk262OF4MkWyHRHk=; b=SOA8oB0X4TpOHyVBxAQ7e9PjKsiNFLqZYrY9bXGOrg4nMS64HRLhLfyiQ4WB0YlVTA rbXUOgrB93d3BrmsGIExegBVijYj2ZwkBqOkevLwu0vU8dzBpx4WgrbI4H32SfzVu5Zj OK5kBcgNWEKvb/nhiSi20rSn8zGmOaTu/Rv3c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=s3XmegfCKQn9fymzH7R6U1VtDEWbk262OF4MkWyHRHk=; b=Bq77b3Zt8KFJ0Fn1CpsUL8r05W6TnLi+hr/yjmzfi1iBVrRe+Ufvc5SY0jLR3xMGwJ +M8JLtx88u4fxS5xz+hdjr8UXb3i6Wkky5yKvk6JtQmoVLR5JhABFOKnzmVm2LJBIzuq ykYVEjslKl28e0c/HwkL1t6N+RS+w43AlIe0xEbVmm21Etf5ZYfnqeofRf980/fLpdJM XEYUiwM1vgI8pERjTBvEQWxXQLYUTadMz7GSINecZjgTkD53MWPtv5jzP9SP5D7VcQ4L /IaDwtu01oiAbN6ILBKoP6P8d/IjNFidEKJag5xJxiI0EWC3mVd20lcYnJ99DRidau5p bw1A== X-Gm-Message-State: AOAM532YUsEHwDEO00nBQm1HNlXVovD6bSllOSbfIiG6CLyJKbXENMXs Pp1TYb3vlfuzK+tRwOvFYVA7AYRn7AF2zi06 X-Google-Smtp-Source: ABdhPJwzDxMmiXZIbI8RTL2F5uTLgrbMu85keSPWdW7sAEEtyDI7pPFCgMdF+eo7BU/Gb/7k7Wv+7w== X-Received: by 2002:aa7:8602:0:b029:1bb:4dfd:92fc with SMTP id p2-20020aa786020000b02901bb4dfd92fcmr1452457pfn.63.1611873742599; Thu, 28 Jan 2021 14:42:22 -0800 (PST) Received: from hiroh.c.googlers.com.com (128.141.236.35.bc.googleusercontent.com. [35.236.141.128]) by smtp.gmail.com with ESMTPSA id md7sm5866288pjb.52.2021.01.28.14.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 14:42:21 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Jan 2021 22:42:14 +0000 Message-Id: <20210128224217.2919790-1-hiroh@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] Introduce post processor using libyuv 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" This series introduces post processor using libyuv. libyuv [1] is a a software library of various YUV processing (e.g. pixel format conversion and scaling). It will be required in Android HAL adaptation layer. I confirm the new code can be compiled but haven't tested the new post processor. Changes in v3: - a few of code style changes suggested by Laurent. Hirokazu Honda (2): android: post_processor: Change the type destination in process() android: libyuv: Introduce PostProcessorLibyuv src/android/camera_stream.cpp | 4 +- src/android/camera_stream.h | 6 +- src/android/jpeg/post_processor_jpeg.cpp | 6 +- src/android/jpeg/post_processor_jpeg.h | 2 +- src/android/libyuv/post_processor_libyuv.cpp | 123 +++++++++++++++++++ src/android/libyuv/post_processor_libyuv.h | 44 +++++++ src/android/meson.build | 1 + src/android/post_processor.h | 7 +- 8 files changed, 182 insertions(+), 11 deletions(-) create mode 100644 src/android/libyuv/post_processor_libyuv.cpp create mode 100644 src/android/libyuv/post_processor_libyuv.h --- 2.30.0.365.g02bc693789-goog