From patchwork Thu Aug 5 13:45:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 13207 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 5E1B6C3235 for ; Thu, 5 Aug 2021 13:45:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A9F296881B; Thu, 5 Aug 2021 15:45:40 +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="htHLeuSV"; dkim-atps=neutral Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 617856026D for ; Thu, 5 Aug 2021 15:45:39 +0200 (CEST) Received: by mail-pj1-x102b.google.com with SMTP id pj14-20020a17090b4f4eb029017786cf98f9so9558363pjb.2 for ; Thu, 05 Aug 2021 06:45:39 -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=cmd0zDBo81MxKCRiUyCDQT1Xk5q4MO736FRVh5E+Dk0=; b=htHLeuSVwLSiNBuepcu3s/eQTZkOUMb0eOGHAsIGPUItuMp7eBra2bt7hWNbbbnzoK T3nsCiRiK/06mnM4Jpc8+JHcSBt9CQAQhZlMlQmMBpxAR5GMBbjuKWjGRe8TUSY9UVXJ rneBn1pIij5qBFuxCc/l+SLWmsce40LI0CfqA= 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=cmd0zDBo81MxKCRiUyCDQT1Xk5q4MO736FRVh5E+Dk0=; b=YGcGfMUS9rchxY1CG5c234XeUk5pB953JC2RG8e+jMAMdXpvkrOz3vWtd6/BU9+vX3 8Mka9uDiTj7xmFEPeX4vhSd6bbeq1BlizNsCwHdN55V0G4QoKUYJajwYIeOOw7jOmtDv K/bIoYGCJYaY6nRRA3PPRJrKAwUUfc8zBeZnpZeYj/4LviHWZbKY5S2ioU899J+o1C98 hQw8Zw8S0rAjgcewOCUR/U1gbZSUNo0uEVwicRp0WH1Pc2JR8SnWW3vewAm5hjQENznu 12Sb34KfMildKkmBBHNMkVkhfuG+uCkfcJIPlaJQHsqNRADWuk6wOiW3yEF+F/vtmuKE NgDw== X-Gm-Message-State: AOAM533h//JekECvlrlceqRzCArWKvn/2ZTD3XHJfXBDtdzcOXZTWBrE OBwYLe5liRXDh+k5d/BWsCsrRq3sEZW3PA== X-Google-Smtp-Source: ABdhPJxrofP5rgDB5vOc/RE810+7LZHLthBz4Elfc3Tyd/ize99hT7sGAcrmEm5S+P/In9p8fmNayg== X-Received: by 2002:a65:6118:: with SMTP id z24mr446452pgu.325.1628171137609; Thu, 05 Aug 2021 06:45:37 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:203:490b:61c8:a52a:e6eb]) by smtp.gmail.com with ESMTPSA id b8sm6029381pjo.51.2021.08.05.06.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Aug 2021 06:45:37 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Thu, 5 Aug 2021 22:45:27 +0900 Message-Id: <20210805134530.825065-1-hiroh@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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 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 | 27 ++++++++++++++++++---- src/android/camera_device.h | 1 + src/android/camera_stream.cpp | 43 +++++++++++++++++++++-------------- 3 files changed, 49 insertions(+), 22 deletions(-) --- 2.32.0.554.ge1b32706d8-goog