From patchwork Tue Oct 5 09:27:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 14053 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 A685ABDC71 for ; Tue, 5 Oct 2021 09:28:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 20187691AD; Tue, 5 Oct 2021 11:28:06 +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="XBx3ekWK"; dkim-atps=neutral Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B437A684C6 for ; Tue, 5 Oct 2021 11:28:04 +0200 (CEST) Received: by mail-pj1-x102a.google.com with SMTP id v19so13642578pjh.2 for ; Tue, 05 Oct 2021 02:28:04 -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=lHmCOb9LDaBb1gevUX7WH5ZVRnHula99IDaQfH6pz30=; b=XBx3ekWKe3cVyOieumxiv+8v6Roo7B3hfMFJKiV8Vezo7JFLTiggk/1NbJhFqiVlY9 DKh6amadj/nkg73O2nQjM147yKD98ZCgKo75FTdhBEQo55JKgOenJ7HfUwATcNBC6PbZ wSuDq3xv+MqCcC0qe91mCMbkJ1br4ISnIVxhU= 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=lHmCOb9LDaBb1gevUX7WH5ZVRnHula99IDaQfH6pz30=; b=NpG1woo68egdFiIPr98H94rhP50f8CEf3GnTbZei4k1k+xEOBc1U1xkDeo1WQBqLyZ QCJwPCQGa1fvo//AaBj1zUL85jOSzhY1URkpmf8pj5F6bPD38tOCq+mQvaMsz8+tm96c PoSzLG+Ffa6YKvTGy1eLPRqmtmX+YOkRLQMqKSvug2ll6nzCtA8qfOtU86sOV8MUhbfe 6UTR/pSNGvFiX53/6gBr8kp60bCNe1LlfjS6I069KBJ7fkyBOvhO/Kb2vvZGqoRPx+8q FkLraf0ebZv0l01SA2VJdmS/a1Ufo0E+LHeBbP2U5EiOleZrKhC/vJHa7NjvVzm1ugSS hTVQ== X-Gm-Message-State: AOAM533w1gnumN3oTTyJUhoa5R34ifQUibALkf9l4gUk3tHJYBBDufdg 7pWf6p8z+nFB/Y/angNe+sBUIw/cgdGZjQ== X-Google-Smtp-Source: ABdhPJzCTVLADNKncW3LBJm0qvpaowPT/IXo5sWhhFjrz7nCv1WITHnyQTAEdSGZ2jznnfkVdKk0IQ== X-Received: by 2002:a17:90a:2ecb:: with SMTP id h11mr2577797pjs.196.1633426082889; Tue, 05 Oct 2021 02:28:02 -0700 (PDT) Received: from hiroh2.tok.corp.google.com ([2401:fa00:8f:203:debc:d0db:3bd8:f961]) by smtp.gmail.com with ESMTPSA id m73sm4997371pfd.152.2021.10.05.02.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 02:28:02 -0700 (PDT) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Tue, 5 Oct 2021 18:27:57 +0900 Message-Id: <20211005092757.747697-1-hiroh@chromium.org> X-Mailer: git-send-email 2.33.0.800.g4c38ced690-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] android: camera_stream: Set right format for processor output buffer 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 always sets the format of processor output buffer to MJPEG. This fixes the issue. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Reviewed-by: Umang Jain --- src/android/camera_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp index e80f842d..db8d854b 100644 --- a/src/android/camera_stream.cpp +++ b/src/android/camera_stream.cpp @@ -168,7 +168,7 @@ int CameraStream::process(const FrameBuffer &source, * separate thread. */ const StreamConfiguration &output = configuration(); - CameraBuffer dest(*camera3Dest.buffer, formats::MJPEG, output.size, + CameraBuffer dest(*camera3Dest.buffer, output.pixelFormat, output.size, PROT_READ | PROT_WRITE); if (!dest.isValid()) { LOG(HAL, Error) << "Failed to map android blob buffer";