From patchwork Sat Jan 26 15:13:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 402 X-Patchwork-Delegate: jacopo@jmondi.org Return-Path: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 267DE60C78 for ; Sat, 26 Jan 2019 16:13:13 +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 8405F100005; Sat, 26 Jan 2019 15:13:12 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Sat, 26 Jan 2019 16:13:16 +0100 Message-Id: <20190126151318.28087-2-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190126151318.28087-1-jacopo@jmondi.org> References: <20190126151318.28087-1-jacopo@jmondi.org> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 1/3] libcamera: stream: Add setters for image sizes and 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:13 -0000 Add methods to set width, height and pixelformat of a StreamConfiguration instance. Signed-off-by: Jacopo Mondi --- include/libcamera/stream.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index 8750797..ef7b32a 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -33,6 +33,10 @@ public: void setDimension(unsigned int width, unsigned int height); void setPixelFormat(unsigned int pixelformat); + void setWidth(unsigned int width) { width_ = width; } + void setHeight(unsigned int height) { height_ = height; } + void setPixelformat(unsigned int pix) { pixelformat_ = pix; } + private: unsigned int id_; unsigned int width_;