Show a patch.

GET /api/1.1/patches/13406/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 13406,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/13406/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/13406/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20210819201214.1554322-3-hiroh@chromium.org>",
    "date": "2021-08-19T20:12:13",
    "name": "[libcamera-devel,v2,2/3] android: camera_stream: Support PostProcessorYuv in CameraStream",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "621be1d93e3489b2b6926f68f3b78ad9c2247605",
    "submitter": {
        "id": 63,
        "url": "https://patchwork.libcamera.org/api/1.1/people/63/?format=api",
        "name": "Hirokazu Honda",
        "email": "hiroh@chromium.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/13406/mbox/",
    "series": [
        {
            "id": 2373,
            "url": "https://patchwork.libcamera.org/api/1.1/series/2373/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2373",
            "date": "2021-08-19T20:12:11",
            "name": "android: Request one stream for identica stream requests",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/2373/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/13406/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/13406/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 E7C79BD87C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 19 Aug 2021 20:12:28 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id B05B768892;\n\tThu, 19 Aug 2021 22:12:28 +0200 (CEST)",
            "from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com\n\t[IPv6:2607:f8b0:4864:20::1035])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6491568886\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Aug 2021 22:12:27 +0200 (CEST)",
            "by mail-pj1-x1035.google.com with SMTP id n5so5753614pjt.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 19 Aug 2021 13:12:27 -0700 (PDT)",
            "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:4298:71ae:6ebb:72eb])\n\tby smtp.gmail.com with ESMTPSA id\n\ti11sm4303695pfo.29.2021.08.19.13.12.23\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 19 Aug 2021 13:12:24 -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=\"f7kct3tp\"; 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=IItZONdRsf6myZue/Zxd9Ah1tuvheEbNbYCkrjA/rIQ=;\n\tb=f7kct3tpiivcKOmqU6EtaN95Asg/UvUPtjYNVqc2Qaeb1bx+eeHi43FVQlySGhREKl\n\t+iJOW4UrsmOM32WgS8IIhtJs0wpY6DCnuYsafsqZpJJCS7yjI9MocR3o0VM8txUUUrE3\n\tSKRR/Azls6/KmX/afU3CV0Mu9QVywhdEjlkXU=",
        "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=IItZONdRsf6myZue/Zxd9Ah1tuvheEbNbYCkrjA/rIQ=;\n\tb=lp6tJa5QgmIu7LTa6X3SS8zDgv4uAKCduNfblpoUjsk9N0gHCgSHAFn/cAeIvjBsWE\n\tgb5XznCcGpXR5vh62ju4p2Qr58xDzYtebh8SIio37hmU7iu/2KlvI2Xle2sjnSC9Xsn3\n\t011qNzskZM14WZfgmKK2FFFUwmAUgXoKh2e+ezkRM1L3aTdSNTPBChdXATCfRx5A0s/F\n\th6oTUl6692apgitzZsTJV8e4n3sE6/bMJiShcc2P4Ooq8D/BCnvsuFQ42yzEJY3ZqHB+\n\t8aZLjJ9CCMGY39kAVvT4Ae4YO7k0RByx2rBFswj8+rmOwGWpkzcIBKmjjuC1c7LbeyS/\n\t6EbQ==",
        "X-Gm-Message-State": "AOAM5315H4SzJuF6lKbWmg0UNMDmhoOOMy/+rvjiSYQEL2X6Cle+doAW\n\tm/g+0jPbkguqTQsi2HfZ6HtrjtHLxahU1A==",
        "X-Google-Smtp-Source": "ABdhPJzYDYToDFoJl/ZsmQtmit3Q6HEo0G6ih/W1rMsFfr32pz1bnq38Y3rtMHh+trDUbcANhrjjcA==",
        "X-Received": "by 2002:a17:90b:e87:: with SMTP id\n\tfv7mr503617pjb.85.1629403945687; \n\tThu, 19 Aug 2021 13:12:25 -0700 (PDT)",
        "From": "Hirokazu Honda <hiroh@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 20 Aug 2021 05:12:13 +0900",
        "Message-Id": "<20210819201214.1554322-3-hiroh@chromium.org>",
        "X-Mailer": "git-send-email 2.33.0.rc2.250.ged5fa647cd-goog",
        "In-Reply-To": "<20210819201214.1554322-1-hiroh@chromium.org>",
        "References": "<20210819201214.1554322-1-hiroh@chromium.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v2 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>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/android/camera_stream.cpp | 14 +++++++++++---\n 1 file changed, 11 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp\nindex c205cd7a..c728051f 100644\n--- a/src/android/camera_stream.cpp\n+++ b/src/android/camera_stream.cpp\n@@ -9,13 +9,15 @@\n \n #include <sys/mman.h>\n \n+#include <libcamera/formats.h>\n+\n+#include \"jpeg/post_processor_jpeg.h\"\n+#include \"yuv/post_processor_yuv.h\"\n+\n #include \"camera_buffer.h\"\n #include \"camera_capabilities.h\"\n #include \"camera_device.h\"\n #include \"camera_metadata.h\"\n-#include \"jpeg/post_processor_jpeg.h\"\n-\n-#include <libcamera/formats.h>\n \n using namespace libcamera;\n \n@@ -68,6 +70,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",
        "v2",
        "2/3"
    ]
}