From patchwork Sat Jan 26 15:13:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 401 Return-Path: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6CAA860C78 for ; Sat, 26 Jan 2019 16:13:12 +0100 (CET) Received: from uno.homenet.telecomitalia.it (host20-49-dynamic.18-79-r.retail.telecomitalia.it [79.18.49.20]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id B58DE100006; Sat, 26 Jan 2019 15:13:11 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Sat, 26 Jan 2019 16:13:15 +0100 Message-Id: <20190126151318.28087-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 0/3] v4l2-device: set and get format 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: Sat, 26 Jan 2019 15:13:12 -0000 Hello, simple implementations for set/get format on a v4l2 device. Sending as RFC as this is based on a development branch, that allowed me to test format configuration on UVC camera before capturing. Thanks j Jacopo Mondi (3): libcamera: stream: Add setters for image sizes and format libcamera: v4l2_device: Add methods to get/set format [HACK] libcamera: uvc: set format on v4l2 device include/libcamera/stream.h | 4 + src/libcamera/include/v4l2_device.h | 13 +++ src/libcamera/pipeline/uvcvideo.cpp | 3 + src/libcamera/v4l2_device.cpp | 131 ++++++++++++++++++++++++++++ 4 files changed, 151 insertions(+) --- 2.20.1