From patchwork Tue Jun 9 23:23:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 4010 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D0FE963CFA for ; Wed, 10 Jun 2020 01:23:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="o1AvEUf2"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6C37831F for ; Wed, 10 Jun 2020 01:23:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1591745030; bh=fG24VaVOF/M6+txYwpwz3m7Zt97ODfmOBux+4hD5ZRk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o1AvEUf26cvvo8bqWdNnmuacFPCGClFffj74u/lgPwsbPSutmJxmMGzjcSwlWGQva nokTHIIvuBxkfM/K60fRAwZp8y8/HnYKLl7deEA+LelU4pkzxl+7dWK79WoVQ2KVzy Fnhoxyg8onYIvE3+trqF2lIuzNR/J0hc/JlTJhXc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 10 Jun 2020 02:23:21 +0300 Message-Id: <20200609232323.29628-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200609232323.29628-1-laurent.pinchart@ideasonboard.com> References: <20200609232323.29628-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 5/7] test: Replace explicit DRM FourCCs with libcamera formats 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: , X-List-Received-Date: Tue, 09 Jun 2020 23:23:52 -0000 Use the new pixel format constants to replace usage of macros from drm_fourcc.h. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- test/v4l2_videodevice/buffer_cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp index d730e7550377..b22de88e214c 100644 --- a/test/v4l2_videodevice/buffer_cache.cpp +++ b/test/v4l2_videodevice/buffer_cache.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include "buffer_source.h" @@ -142,7 +143,7 @@ public: const unsigned int numBuffers = 8; StreamConfiguration cfg; - cfg.pixelFormat = PixelFormat(DRM_FORMAT_YUYV); + cfg.pixelFormat = formats::YUYV; cfg.size = Size(600, 800); cfg.bufferCount = numBuffers;