{"id":13209,"url":"https://patchwork.libcamera.org/api/patches/13209/?format=json","web_url":"https://patchwork.libcamera.org/patch/13209/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210805134530.825065-3-hiroh@chromium.org>","date":"2021-08-05T13:45:29","name":"[libcamera-devel,2/3] android: camera_stream: Support PostProcessorYuv in CameraStream","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ce64f106b7aa19912d58f6f5777e33e83fbf8511","submitter":{"id":63,"url":"https://patchwork.libcamera.org/api/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/13209/mbox/","series":[{"id":2307,"url":"https://patchwork.libcamera.org/api/series/2307/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2307","date":"2021-08-05T13:45:27","name":"android: Request one stream for identica stream requests","version":1,"mbox":"https://patchwork.libcamera.org/series/2307/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/13209/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/13209/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 20436C3235\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  5 Aug 2021 13:45:46 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CD6F46880D;\n\tThu,  5 Aug 2021 15:45:45 +0200 (CEST)","from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com\n\t[IPv6:2607:f8b0:4864:20::102d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7473B6882A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  5 Aug 2021 15:45:42 +0200 (CEST)","by mail-pj1-x102d.google.com with SMTP id\n\tm10-20020a17090a34cab0290176b52c60ddso9513878pjf.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 05 Aug 2021 06:45:42 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:490b:61c8:a52a:e6eb])\n\tby smtp.gmail.com with ESMTPSA id\n\tb8sm6029381pjo.51.2021.08.05.06.45.39\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 05 Aug 2021 06:45:40 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"hVRWjgjL\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=xbWSfNll0kJr2OmdWkjhhEwP2V0tpQzdIqD465Qd8RE=;\n\tb=hVRWjgjL2s9r/BuVf615jzYxK3/N/vsFQOwXBUEddnZjscqIcVC46bMfO/zpYoXdw3\n\t+oRwAjoVHbBkfSYP9dCjPmRe8wokLFTot70lAz5oqMneX74IebM1SspcvAj3+olCrfM+\n\tKlu+zUUatNh/XNVTU9FGK4Rse2cLRxk0v1nno=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=xbWSfNll0kJr2OmdWkjhhEwP2V0tpQzdIqD465Qd8RE=;\n\tb=YHr+wyrHo5fKxEo6wQaAb7csByL4v7A1BGBN7I7+47bg31raMzUeEu5hPIG6rOkmIH\n\tSaP5h5DY9vgrp9h26177yQbvrD8b6noMHJMOR84MrMQe+wjoH1GcYDBsF/TFuEVTyA7b\n\teMg0Z5vAqywC8xVwO77+DXhPeR5zSEWwTy4ULUJRKelWfdtn6lJTfMt3lL1J0/jMnBS2\n\tNDxXjOmKtNjA1r0S0ls9IvCPcyE5YaaA7kVi3wD0BkKhD84HhjPM8Q21ta+0kRbpSSw6\n\t6owHcX0bV6ZYNCrJipa6HGibh62stagHui8ROJmZMCvV2kvFJg5yWcsrZYlNt7wH6PnE\n\tp7Fg==","X-Gm-Message-State":"AOAM533ba2llDr2N/bysKsUIIQVq0PSLjsV5Mb7YS5pGdLFg36Br1S6T\n\t56EwC4ldQeSS37tW0tfBGLzsuoLF+iHCTA==","X-Google-Smtp-Source":"ABdhPJxGWKd/9WPGNO6Af4A3XaTW5UlYAO8FE4OL6Hc9y6MGkeuDR5cv/uhxDs9HDBtKvMwMlcU4QA==","X-Received":"by 2002:a17:902:7208:b029:12c:9c9d:e0bb with SMTP id\n\tba8-20020a1709027208b029012c9c9de0bbmr4380385plb.44.1628171140579; \n\tThu, 05 Aug 2021 06:45:40 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  5 Aug 2021 22:45:29 +0900","Message-Id":"<20210805134530.825065-3-hiroh@chromium.org>","X-Mailer":"git-send-email 2.32.0.554.ge1b32706d8-goog","In-Reply-To":"<20210805134530.825065-1-hiroh@chromium.org>","References":"<20210805134530.825065-1-hiroh@chromium.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 2/3] android: camera_stream: Support\n\tPostProcessorYuv in CameraStream","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"CameraStream creates PostProcessorYuv if the destination format\nis NV12.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n---\n src/android/camera_stream.cpp | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp\nindex 86263403..8c02cb43 100644\n--- a/src/android/camera_stream.cpp\n+++ b/src/android/camera_stream.cpp\n@@ -11,6 +11,7 @@\n #include \"camera_device.h\"\n #include \"camera_metadata.h\"\n #include \"jpeg/post_processor_jpeg.h\"\n+#include \"yuv/post_processor_yuv.h\"\n \n #include <libcamera/formats.h>\n \n@@ -65,6 +66,12 @@ int CameraStream::configure()\n \t\tStreamConfiguration output = configuration();\n \t\toutput.pixelFormat = outFormat;\n \t\tswitch (outFormat) {\n+\t\tcase formats::NV12:\n+\t\t\tpostProcessor_ = std::make_unique<PostProcessorYuv>();\n+\t\t\toutput.size.width = camera3Stream_->width;\n+\t\t\toutput.size.height = camera3Stream_->height;\n+\t\t\tbreak;\n+\n \t\tcase formats::MJPEG:\n \t\t\tpostProcessor_ = std::make_unique<PostProcessorJpeg>(cameraDevice_);\n \t\t\tbreak;\n","prefixes":["libcamera-devel","2/3"]}