From patchwork Fri Jul 12 12:33:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 1673 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 38F236156F for ; Fri, 12 Jul 2019 14:34:22 +0200 (CEST) Received: from pendragon.ideasonboard.com (softbank126209254147.bbtec.net [126.209.254.147]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ADA312B2 for ; Fri, 12 Jul 2019 14:34:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1562934861; bh=YV3ris512JR+5yizKurrUJ7z9n7OSqLFQXKUtroRCjk=; h=From:To:Subject:Date:From; b=Gnz30f8s2bdt5Z+IF8s6a5SpOQHcIrZ2zBNnS9sgSmU5NMfSgbACwNltp56gTNLB2 VSB5bzkJgpAOXYKZuVbwJ4iopmS9zROaXITAerYXUDBFtwo8E6w56kCz/QNfAlzG+r loT0E3iPcPmADBShYTy0hwNMI40FQy7hjLaGQSc0= From: Laurent Pinchart 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 Subject: [libcamera-devel] [PATCH] test: v4l2_videodevice: buffer_sharing: Lower resolution to speed up test X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2019 12:34:22 -0000 Speed up the test by lowering the resolution to the smallest vivid supports, 320x180. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- test/v4l2_videodevice/buffer_sharing.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/v4l2_videodevice/buffer_sharing.cpp b/test/v4l2_videodevice/buffer_sharing.cpp index ede6ec7984a9..7b6a28fffb77 100644 --- a/test/v4l2_videodevice/buffer_sharing.cpp +++ b/test/v4l2_videodevice/buffer_sharing.cpp @@ -58,6 +58,15 @@ protected: return TestFail; } + format.size.width = 320; + format.size.height = 180; + + ret = capture_->setFormat(&format); + if (ret) { + std::cout << "Failed to set capture format" << std::endl; + return TestFail; + } + ret = output_->setFormat(&format); if (ret) { std::cout << "Failed to set output format" << std::endl;