From patchwork Fri Jul 15 14:38:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 16647 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 B64F8BE173 for ; Fri, 15 Jul 2022 14:38:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EC02563312; Fri, 15 Jul 2022 16:38:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657895910; bh=im1KhiiJpvnlFuNufISlk+w/ZA2I5C/1Qo9OWZbLvBw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RSE1iOUPRNLoyDDY4U07jQqgtsgdF/o0kgSfeq+9X6PcjwpgfhG8QnBEt5eqPDglh SzwTTx0g+SuHj4TsNLRQmhj52VWqtjzkTLn8JcPpXEWa1BTAUqoInVXJXtWuNekBxq MTe3nGdBq6SNU6Dnf/nf826QV4XttkmykENmSGaso0e8vFRSusc1ZK7J56921BScQu Y5yvkOceiw6rQt75jOIthyzGtc4wOeET7s8+W3zgv5LX3DGQMo/wIWwHDjPRCgbBU6 1JdNO8Dorj7r06gMTPF+hg+6+9AhBiz/+btkKG9kwvnDRtXVOBdtqeMwhzbfWcYgIR a8m6LQTG+lIzQ== Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C79806330A for ; Fri, 15 Jul 2022 16:38:29 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="WTY27Lxq"; dkim-atps=neutral Received: by mail-pj1-x102e.google.com with SMTP id p9so5815165pjd.3 for ; Fri, 15 Jul 2022 07:38:29 -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=iHbCCuBujm9zy1AutYODcls9qU1ClDymmou0mXNu1qY=; b=WTY27LxqePZQbV0m86IawI/e8uaQZ/86Cv+he9VDoNbEnFXq2HOTcRfkkzDqfOhOIT sJH1GE7r18Xa1HXFOrEI61xJ91KAUdfbyYAdEGwTwK+BAhYtcQkUAq86Pma8F5n7OSR3 J6LZ+9upJ/zwf9GlpZFI5YR/SY1XzKNUzODw0= 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=iHbCCuBujm9zy1AutYODcls9qU1ClDymmou0mXNu1qY=; b=P682h/j5c3vS8B7NATPO+ZaWU4K7ov6NHjSDzS7fUziGOibsJnXa9pD/L71p0iYbDa +Ytvi2sTVze7dsMhBxpxSJ4WF8lyZAgXvN81R8y5Afurhklj9RJ1zNDw8+aDmPL3fJuS 1Ba7k2xySehRMnsrjORKwbxbyZnTLkYuCIUPMD+Rq8tBdi56elRByhawLSZyfxm8brIE maplamfInnjrSv6S38FSe6SfSG9uDKzyRrdq2ukT2AKarmKNbV4jgAS3Gni2Lg/kU83Q FTioisA/q1QN0FIVBQ6KE92b18heuZuhPQuTHkP8RgBvSpedskHD0ZAf5tukp/U+jcqT r+0A== X-Gm-Message-State: AJIora8cxYnMCbXkrz3n2Pidm4l0/0eOdmahLItoKO2m1eeWpCv/Xm1J WGr4KTX8a6N+vd70TLgmBMs4kxCq6mssCg== X-Google-Smtp-Source: AGRyM1shEqTfeb46Ene9x4+lq4GdVSzXsMJCw9ARfe3Nj4bMZ9yUrRLY5zFqj21xhOBxJIyNlX4VLQ== X-Received: by 2002:a17:903:120e:b0:16b:8167:e343 with SMTP id l14-20020a170903120e00b0016b8167e343mr13978234plh.112.1657895907956; Fri, 15 Jul 2022 07:38:27 -0700 (PDT) Received: from chenghaoyang-low.c.googlers.com.com (208.158.221.35.bc.googleusercontent.com. [35.221.158.208]) by smtp.gmail.com with ESMTPSA id f15-20020aa7968f000000b00528c22fbb45sm3972782pfk.141.2022.07.15.07.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 07:38:27 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Fri, 15 Jul 2022 14:38:16 +0000 Message-Id: <20220715143822.672321-1-chenghaoyang@google.com> X-Mailer: git-send-email 2.37.0.170.g444d1eabd0-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 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 all, Fixed thumbnail buffer issue. Please help review 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 | 93 ++++++++++++ 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, 391 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 Reviewed-by: Han-Lin Chen