From patchwork Wed Jun 22 12:37:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 16310 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 D8C4EBE173 for ; Wed, 22 Jun 2022 12:37:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 314D565635; Wed, 22 Jun 2022 14:37:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655901438; bh=idhb4mZlZ6lKuJg2UvLxxiB46cjWsK+QjCRXJKuA3DY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=t5qWl9R47bMIMIjo69GDkSl4oNe56cgyOE1cmdslcFJApAHFJrXs8lMgj9M6Q2EtK 0aKy7RhW3anY2zYborhOzt967FM0TJJeTyLS21TzFty7DhDOS8x5fZ+l9ti9PwS0G5 toC2KyauPxZ7znPGmtKVwTmZABhhf0GDyvyBuIxVTev3zXgQFEKqTxJpmQ4I9gLNSY ZZmdqb5gf4kyjJ491YF8R//H3hzH8jMxGfIz03B2J8QL456pLSvop71uMGEOC3nIGU 6aqFdMmSxHlVEIAfRwOwBs7Rx/ZefF6/5ougtNPjFm2oxnc5vQ36UE8Z6hr7kx4DG4 P4mHIvfSN7dow== Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4F5C61FB2 for ; Wed, 22 Jun 2022 14:37:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="HqrzTeeN"; dkim-atps=neutral Received: by mail-pl1-x633.google.com with SMTP id i15so15288255plr.1 for ; Wed, 22 Jun 2022 05:37:16 -0700 (PDT) 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=oSw7aJJI7aBvGVnNovR/St3zx7rHk0B+KUro1fI0oyg=; b=HqrzTeeNIwmBK+mtAk1XocqgvphsQyryqZTUacarwKxug12Swll52Frh03FBw/aV41 pK5xuHeVHM5z4nltfKqSOFhRKJu2DnIGKIkMEomP+bUt+IRPWfRHohFDq8tTAT3dQtd1 ehM+fsppLVgm8GVIGwSmVlcQnow8iIgmew0S8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oSw7aJJI7aBvGVnNovR/St3zx7rHk0B+KUro1fI0oyg=; b=XFx5kxq9UvIfxzj+2Ay5T0sHOfzgYEfJ6XQVHufp6ke5fh2AIStmU1b+MOFFOQle8K eJ451zWq8jJqN20Gifald+AKbQnr1XXkoCgjt06RARcG5sTzyeVVJEMtFVBsw2RCX1LM EDGb9UywmA6w3dt/CGk2dq5PrQZv5Q6+38X16G0yI5gvCL/ubtUziMjNoLnszoGsmH6N Ovw1Z6WNMhooPmGa/fIwGy7vCbZ/R17CXk5RSPwcwegUdQWbiB//f9eX5O9O0DFmJMSE +c62KXQ6+xqOQrth0+5TR3JwHpRkLYXHYOUX2F/4lTFTx9nbw86rNReZYweSS9qwqCs0 7wyA== X-Gm-Message-State: AJIora9UsKhP0nNAwXst8xBYbj28p3kGzqJMy8rcGYaeDHaAFhADSSir kIESgQTHJVPF5Rf7sH689ojZq1BzgWlAnA== X-Google-Smtp-Source: AGRyM1vPW2wiTRMx/l42MiLbV9j8vrkIUf9JH4cEJtKgMbYFvlV6p4SDIwVE1xaQNbjjOSTZIxv59g== X-Received: by 2002:a17:902:aa0c:b0:168:faa0:50a1 with SMTP id be12-20020a170902aa0c00b00168faa050a1mr33936358plb.57.1655901434888; Wed, 22 Jun 2022 05:37:14 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (21.160.199.104.bc.googleusercontent.com. [104.199.160.21]) by smtp.gmail.com with ESMTPSA id j3-20020a170903024300b0016378bfeb90sm12684038plh.227.2022.06.22.05.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 05:37:11 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Wed, 22 Jun 2022 12:37:00 +0000 Message-Id: <20220622123706.2946976-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.37.0.rc0.104.g0611611a94-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 0/6] Add CrOS JEA implementation 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: , X-Patchwork-Original-From: Harvey Yang via libcamera-devel From: Harvey Yang Reply-To: Harvey Yang Cc: Harvey Yang Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi everyone, Fixed some indentations and jpeg_set_defaults() issues. Please help review the patches and merge them if possible :) Thanks! BR, Harvey Harvey Yang (6): Allow inheritance of FrameBuffer Add HALFrameBuffer and replace FrameBuffer in src/android Add meson.build in src/android/jpeg Move generateThumbnail from PostProcessorJpeg to Encoder Pass StreamBuffer to Encoder::encoder Add JEA implementation include/libcamera/framebuffer.h | 3 +- src/android/camera_device.cpp | 3 +- src/android/cros/camera3_hal.cpp | 2 + src/android/cros_mojo_token.h | 12 ++ src/android/frame_buffer_allocator.h | 7 +- src/android/hal_framebuffer.cpp | 23 +++ src/android/hal_framebuffer.h | 27 ++++ src/android/jpeg/encoder.h | 10 +- src/android/jpeg/encoder_jea.cpp | 86 +++++++++++ src/android/jpeg/encoder_jea.h | 35 +++++ src/android/jpeg/encoder_libjpeg.cpp | 133 ++++++++++++++---- src/android/jpeg/encoder_libjpeg.h | 33 ++++- src/android/jpeg/meson.build | 16 +++ src/android/jpeg/post_processor_jpeg.cpp | 65 ++------- src/android/jpeg/post_processor_jpeg.h | 11 +- src/android/meson.build | 6 +- .../mm/cros_frame_buffer_allocator.cpp | 14 +- .../mm/generic_frame_buffer_allocator.cpp | 12 +- 18 files changed, 384 insertions(+), 114 deletions(-) create mode 100644 src/android/cros_mojo_token.h create mode 100644 src/android/hal_framebuffer.cpp create mode 100644 src/android/hal_framebuffer.h create mode 100644 src/android/jpeg/encoder_jea.cpp create mode 100644 src/android/jpeg/encoder_jea.h create mode 100644 src/android/jpeg/meson.build