From patchwork Thu Aug 19 20:12:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 13404 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 5C580BD87C for ; Thu, 19 Aug 2021 20:12:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B447968895; Thu, 19 Aug 2021 22:12:24 +0200 (CEST) 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="cYGq+1+J"; dkim-atps=neutral Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 412AF60264 for ; Thu, 19 Aug 2021 22:12:23 +0200 (CEST) Received: by mail-pj1-x1033.google.com with SMTP id m24-20020a17090a7f98b0290178b1a81700so5596684pjl.4 for ; Thu, 19 Aug 2021 13:12:23 -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=wIH+D+vIGCOFzqbWJOqkQ6ULnrm5A8yy5FF0gVmhXgs=; b=cYGq+1+JuptjkZwn2CmAyD9sAIzJ9ufHRrpVR3uXnLYcrpv8ScL9PPLUbac0wuoL9b ZxAF952gOCcAzEKh24TTk2kVxPrruXwSdEOxng2afMQ9R1hnvrct8hSmiMDr/0wXkRLI KoFvyAihPDp7uE8ypJ86nAvgtPJZM23IMMcBY= 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=wIH+D+vIGCOFzqbWJOqkQ6ULnrm5A8yy5FF0gVmhXgs=; b=N31IgsGUjvo89DDM1/uYj2ilNrBVNGp3LSwL2ho77hKh1DcN5CUN0zd+F2hy+QbF4Q o7fFx3VBUXX2c9A1VNljZmAVB5yazvgpVI6P6jt74PwNZBmRarAAjPQaK1+Mb/YkfL6E alXWGFf7j2J50OV7p88Aa5OJdvGAICs9iNR5lEUsTtjfOPosOVKG4WWhh3vuYPhbDykF D3X1u0v1pD4d0vTb/3XZZIDSY7zRZq6Pp1a9Qu5Kkwq1YRbBL+hGwOjhwQXVWBXkgQRl 0EkFlaufrBxndwAGhBUxPn0hXZ/kQcPCm1ZUCvOTu3gtkdsXPgGw6xRnDwpOCQkawvvI 5zHQ== X-Gm-Message-State: AOAM5310hByKVzc6YnbJ5d8MWSebvaCofMqYjwJYW+J/IQCTRJi99xq0 03oQBHasZjFTTAmIKsx+DDXP2odmF4HbGQ== X-Google-Smtp-Source: ABdhPJwcPgmcPQY+WG4Q5fVcW8glthpcpiqtXP+7WufaZB306sJt4CiIDJPT5dr8MzWaaSq8dDeKjg== X-Received: by 2002:a17:90b:60f:: with SMTP id gb15mr508426pjb.81.1629403941048; Thu, 19 Aug 2021 13:12:21 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:203:4298:71ae:6ebb:72eb]) by smtp.gmail.com with ESMTPSA id i11sm4303695pfo.29.2021.08.19.13.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 13:12:20 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Fri, 20 Aug 2021 05:12:11 +0900 Message-Id: <20210819201214.1554322-1-hiroh@chromium.org> X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/3] android: Request one stream for identica stream requests 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" Android HAL client may request multiple streams, whose formats and resolutions are same. This patch series confgiures one stream for the identical stream requests so that the requests can be accepted as much as possible. With this patch series, 10 tests out of 18 CTS tests requesting multiple streams newly pass. [1/18] android.hardware.camera2.cts.RobustnessTest#testMandatoryOutputCombinations pass [2/18] android.hardware.cts.CameraTest#testFocusDistances pass [3/18] android.hardware.cts.CameraTest#testImmediateZoom fail [4/18] android.hardware.cts.CameraTest#testPreviewCallback pass [5/18] android.hardware.cts.CameraTest#testPreviewCallbackWithBuffer fail [6/18] android.hardware.cts.CameraTest#testPreviewCallbackWithPicture pass [7/18] android.hardware.cts.CameraTest#testPreviewFormats pass [8/18] android.hardware.cts.CameraTest#testPreviewFpsRange pass [9/18] android.hardware.cts.CameraTest#testPreviewPictureSizesCombination fail [10/18] android.hardware.cts.CameraTest#testSetOneShotPreviewCallback pass [11/18] android.hardware.cts.CameraTest#testSetPreviewDisplay pass [12/18] android.hardware.cts.CameraTest#testVideoSnapshot fail [13/18] android.hardware.cts.CameraGLTest#testSetPreviewTextureBothCallbacks pass [14/18] android.hardware.cts.CameraGLTest#testSetPreviewTexturePreviewCallback pass [15/18] android.hardware.multiprocess.camera.cts.CameraEvictionTest#testMediaRecorderCameraActivityEviction fail [16/18] android.hardware.camera2.cts.StillCaptureTest#testStillPreviewCombination fail [17/18]android.hardware.camera2.cts.SurfaceViewPreviewTest#testDeferredSurfaces fail [18/18] android.hardware.camera2.cts.ImageReaderTest#testAllOutputYUVResolutions fail change in v2: - Address Jacopo's comments Hirokazu Honda (3): android: camera_stream: Create post porcessor in configure() android: camera_stream: Support PostProcessorYuv in CameraStream android: camera_device: Configure one stream for identical stream requests src/android/camera_device.cpp | 28 ++++++++++++++++---- src/android/camera_device.h | 1 + src/android/camera_stream.cpp | 50 +++++++++++++++++++++-------------- 3 files changed, 54 insertions(+), 25 deletions(-) --- 2.33.0.rc2.250.ged5fa647cd-goog