From patchwork Wed Jul 20 09:58:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harvey Yang X-Patchwork-Id: 16699 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 2E523BE173 for ; Wed, 20 Jul 2022 09:58:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AB63063314; Wed, 20 Jul 2022 11:58:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1658311101; bh=aFagyNgZWU2QjCz3N5fFjfveJL09uN6a5cOFZJYq98U=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=3BVEghydjEtMBIuwVHx2G6VJZB2Uk6Ow6wkRFPJk6oZ7XzO23CcF1AL3ZD2XaOt2c X00YT15YjIUOACZ9tgxCAtQJeoBPS4T3Gv1gc/w+UlM/dneVZg+Jrk6oBkKeliMaOg w3s0zm7JoUq2cIGFD9/0OPX+X7NvvA69ueT4aqwYDTIp4PnMBTovkL/n9LBS6bLkxF ysoK6XHY73JVf1ana7J4bodXMBg4U20NlVB5Qd+pFWfspYsLqbsozZHUQiJ5MjGS/5 kNXHvGl76iFDRnYvEonhK+oxbHFX8KXvNnNHgwSUVWL64zL9oAPLb56Kvt7hP3fY9x 0knjv1q9GqkcQ== Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EF83960488 for ; Wed, 20 Jul 2022 11:58:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Zt41gyj0"; dkim-atps=neutral Received: by mail-pg1-x52d.google.com with SMTP id r186so15952948pgr.2 for ; Wed, 20 Jul 2022 02:58:19 -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=KKX3brY3MHZ7riadd53oznof0vLrUH0Mde4uDnbTH2Y=; b=Zt41gyj0AebU4AsHiEQzCdQnalz3g+yZxsA7DXukNz0ZrcSErgAqxMJnwjh4zyJ2Yo mvORthhJYoxCWnRidM5bUFSb1ekaFonYJPTB90ZvwKkEkN0Fp1N/5Uc4WusVLoz8Lxuk RNw28ufsDH0GmMZ0bCnzipNhnShVjq4l8GjJk= 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=KKX3brY3MHZ7riadd53oznof0vLrUH0Mde4uDnbTH2Y=; b=u2QD/yKPBS+Zd2GE3XkYYTGlDre7HYbabcHyLxYT4L4zlkKOn7kSQa4zdGKH51aW6J OZsGGGGm+igOXe6xdKPwwr6xz9TdeX1AxaD1QAAJIm+VKOcyO8f9pcQRxG3xcixXPznz eHdI5i0hh3lZggoQDYuxEol0Waze82cnh5mK2r3AvWRai5vnmJBWPQmVEteHoXATkWcM nZyB/z2jDiio1v58lmP7tJfF/vzai2AX/LOS6VflpGENTaczePllnfoQMSlzqThoLngz cHPBCLiMl5uhQp3cdzKf3H93x24XMn2Y829SUrpKPE2xMNCNacnSCXqSOTRi12jW5iho PQXw== X-Gm-Message-State: AJIora872IgpU8XBQdVLSNQrDBF8v+T59xrAHye9pn54hay1vqYfkPpC gkKnUHIdhDr97plvuvqytefPEClGbH9aFg== X-Google-Smtp-Source: AGRyM1v7NzcjwamILtF6zi1SrpOArOI/3NFkhHOYagwR1ojXETpN/lzs/gmW9wW3RkqLDaZIyLbm3w== X-Received: by 2002:a63:595f:0:b0:412:5adc:fb07 with SMTP id j31-20020a63595f000000b004125adcfb07mr33743205pgm.296.1658311097796; Wed, 20 Jul 2022 02:58:17 -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 h15-20020a170902680f00b0016bdeb58611sm13312418plk.112.2022.07.20.02.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 02:58:17 -0700 (PDT) X-Google-Original-From: Harvey Yang To: libcamera-devel@lists.libcamera.org Date: Wed, 20 Jul 2022 09:58:11 +0000 Message-Id: <20220720095812.2380218-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/1] Android adaptor thumbnail buffer lifetime issue 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, Han-lin found that soraka-libcamera cannot pass a cros-camera test: Camera3SimpleStillCaptureTest.JpegExifTest, as the output thumbnail is not a JPEG file. The root cause is the thumbnail buffer's lifetime issue. Please take a look :) BR, Harvey Harvey Yang (1): Fix Android adaptor thumbnail buffer lifetime src/android/jpeg/exif.cpp | 10 ++++++---- src/android/jpeg/exif.h | 10 ++++++++-- src/android/jpeg/post_processor_jpeg.cpp | 6 ++---- 3 files changed, 16 insertions(+), 10 deletions(-)