{"id":1673,"url":"https://patchwork.libcamera.org/api/1.1/patches/1673/?format=json","web_url":"https://patchwork.libcamera.org/patch/1673/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20190712123350.26354-1-laurent.pinchart@ideasonboard.com>","date":"2019-07-12T12:33:50","name":"[libcamera-devel] test: v4l2_videodevice: buffer_sharing: Lower resolution to speed up test","commit_ref":"1a7f1610e9f823011de4393af8ec9c10aa6b2097","pull_url":null,"state":"accepted","archived":false,"hash":"94d3d644ff0025e8b069fce76b266ead39308f94","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/1673/mbox/","series":[{"id":425,"url":"https://patchwork.libcamera.org/api/1.1/series/425/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=425","date":"2019-07-12T12:33:50","name":"[libcamera-devel] test: v4l2_videodevice: buffer_sharing: Lower resolution to speed up test","version":1,"mbox":"https://patchwork.libcamera.org/series/425/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/1673/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/1673/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 38F236156F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 12 Jul 2019 14:34:22 +0200 (CEST)","from pendragon.ideasonboard.com (softbank126209254147.bbtec.net\n\t[126.209.254.147])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id ADA312B2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 12 Jul 2019 14:34:20 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1562934861;\n\tbh=YV3ris512JR+5yizKurrUJ7z9n7OSqLFQXKUtroRCjk=;\n\th=From:To:Subject:Date:From;\n\tb=Gnz30f8s2bdt5Z+IF8s6a5SpOQHcIrZ2zBNnS9sgSmU5NMfSgbACwNltp56gTNLB2\n\tVSB5bzkJgpAOXYKZuVbwJ4iopmS9zROaXITAerYXUDBFtwo8E6w56kCz/QNfAlzG+r\n\tloT0E3iPcPmADBShYTy0hwNMI40FQy7hjLaGQSc0=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri, 12 Jul 2019 15:33:50 +0300","Message-Id":"<20190712123350.26354-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.21.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] test: v4l2_videodevice: buffer_sharing:\n\tLower resolution to speed up test","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","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>","X-List-Received-Date":"Fri, 12 Jul 2019 12:34:22 -0000"},"content":"Speed up the test by lowering the resolution to the smallest vivid\nsupports, 320x180.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/v4l2_videodevice/buffer_sharing.cpp | 9 +++++++++\n 1 file changed, 9 insertions(+)","diff":"diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp\nindex ede6ec7984a9..7b6a28fffb77 100644\n--- a/test/v4l2_videodevice/buffer_sharing.cpp\n+++ b/test/v4l2_videodevice/buffer_sharing.cpp\n@@ -58,6 +58,15 @@ protected:\n \t\t\treturn TestFail;\n \t\t}\n \n+\t\tformat.size.width = 320;\n+\t\tformat.size.height = 180;\n+\n+\t\tret = capture_->setFormat(&format);\n+\t\tif (ret) {\n+\t\t\tstd::cout << \"Failed to set capture format\" << std::endl;\n+\t\t\treturn TestFail;\n+\t\t}\n+\n \t\tret = output_->setFormat(&format);\n \t\tif (ret) {\n \t\t\tstd::cout << \"Failed to set output format\" << std::endl;\n","prefixes":["libcamera-devel"]}