From patchwork Tue Nov 30 12:44:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 14894 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 2B8BFBDB13 for ; Tue, 30 Nov 2021 12:44:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 668276071A; Tue, 30 Nov 2021 13:44:37 +0100 (CET) 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="Sw4Bn8Fl"; dkim-atps=neutral Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A5F84605C4 for ; Tue, 30 Nov 2021 13:44:36 +0100 (CET) Received: by mail-pg1-x533.google.com with SMTP id q16so19590768pgq.10 for ; Tue, 30 Nov 2021 04:44:36 -0800 (PST) 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=vmz2AhKvkp8L/cNCiZs32OG2NQc0VbxWiA6VhWSoE+M=; b=Sw4Bn8Fl96YbmccZjbSOI6JBDxHyUp4rV6MucP60RE1WseeZZVHE1bx2p6+MDW15rI +rrEiYPJXhmrMNQ0VCLn5x/OIF5yNZQzzHKozkb4JvQOPdodeuYVTVVibhXlaq/vQH95 kwIbrZdrWNK+zSPGzu3QC/oklW7KBk04vqpmU= 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=vmz2AhKvkp8L/cNCiZs32OG2NQc0VbxWiA6VhWSoE+M=; b=ReB6tsvdDwuX3j8fAEQ7iiz5x9j/lcjKpxjZz7xDZIN6lJ1H3nxdk/1zDmmf50J9WD TwtasE+ppJ95Dt8s7VK1fFMRp3i8RIuchpIl72ewqhy1IDtbQVUA0FzqNvxAQGWkoyrs wSYZplGk9iH7LrZCSZ72fIJH3qhJyQJCjtFPHzvQgxKB9mq2kiLp4STxwcp9o5rv88IQ UgK1iItdLl12W0wNowlxSPvor40yByZUVTwZEG1FAYPacs/o5EatCYhazXNLjBfeEVRs wPjMv/JXg6LvGEznSByjl5BmCVbcXsw5LDFDmAEFMLL9I03rmK+xmz2QUKb3CylTuzoE sh6w== X-Gm-Message-State: AOAM531LeZI3VMHlynkw0C1H/gNqwOIocGfK6/hbdd7zAwvFB1iOCGEG G9YI1us7SFEO9UbmIQC+0ijViaJjmpg4Qg== X-Google-Smtp-Source: ABdhPJxAIr8WEWKG+cwkEN9YIAlazsJBr7ip84on6TuRhR85n/3cE4YQ46IhFmD+9rIHol0pUnDF9Q== X-Received: by 2002:a63:8aca:: with SMTP id y193mr26431630pgd.170.1638276274612; Tue, 30 Nov 2021 04:44:34 -0800 (PST) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:203:c90a:5a53:b139:1336]) by smtp.gmail.com with ESMTPSA id bt2sm2424135pjb.33.2021.11.30.04.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 04:44:34 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Tue, 30 Nov 2021 21:44:26 +0900 Message-Id: <20211130124428.2163669-1-hiroh@chromium.org> X-Mailer: git-send-email 2.34.0.rc2.393.gf8c9666880-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Use PlatfromFrameBufferAllocator in CameraStream 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" CameraStream has been using FrameBufferAllocator to create FrameBuffer. FrameBufferAllocator allocats buffers using V4L2 API. It is not allowed to allocate a new buffer while Camera runs. This replaces the allocator in CameraStream with PlatformFrameBufferAllocator. It allocates a buffer in a platform dependent graphic buffer allocation API. I confirm no regression in CtsCameraTestCases is caused with this patch series. Hirokazu Honda (2): android: camera_capabilities: Add function to convert PixelFormat to android format android: camera_stream: Use PlatformFrameBufferAllocator src/android/camera_capabilities.cpp | 18 ++++++++++++++++++ src/android/camera_capabilities.h | 2 ++ src/android/camera_stream.cpp | 24 +++++++++++++----------- src/android/camera_stream.h | 5 +++-- 4 files changed, 36 insertions(+), 13 deletions(-) --- 2.34.0.rc2.393.gf8c9666880-goog