From patchwork Mon Mar 18 10:43:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 19735 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E1D2BC3272 for ; Mon, 18 Mar 2024 10:44:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3A53862C92; Mon, 18 Mar 2024 11:44:27 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="LLhXLH6A"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D430B616EE for ; Mon, 18 Mar 2024 11:44:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710758664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L6eKTz8koRh+7jzZ38dxsvck/l7ZN0jv9Ilq0EnEiVM=; b=LLhXLH6AHR4jqcLppONORIcA1ECwP3k9yZDX6Oo0cNqwAyNg+Euxynz2o5LJKyEBnn38Dd fJg8kJDeC3cLhm9+KXhNYXX1plKo99poq4+yO330+ma5oXmZsa/J5e00Yn6Lj7j2FOdGu0 9wq9UAkfAQYc490wjhGsSrE+I3wzJqk= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-284-0dRTlOZbNKqLI6JqEZYQFw-1; Mon, 18 Mar 2024 06:44:23 -0400 X-MC-Unique: 0dRTlOZbNKqLI6JqEZYQFw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2820629AC039; Mon, 18 Mar 2024 10:44:23 +0000 (UTC) Received: from nuthatch.redhat.com (unknown [10.45.226.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1DC4F40C6DB3; Mon, 18 Mar 2024 10:44:21 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Cc: Milan Zamazal , Kieran Bingham Subject: [PATCH v3 0/1] cam: Add support for pnm output format Date: Mon, 18 Mar 2024 11:43:56 +0100 Message-ID: <20240318104357.441724-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This is to make cam file output directly usable in image viewers and processors, without the need to explore the file format and to convert it to something usable using home-made converters. v3: - Pass Sink rather than void* to the writer. - Fix the copyright line. v2: No change, just rebased on current master. Milan Zamazal (1): apps: cam: Add support for pnm output format src/apps/cam/file_sink.cpp | 11 +++++++ src/apps/cam/main.cpp | 2 ++ src/apps/common/meson.build | 1 + src/apps/common/pnm_writer.cpp | 54 ++++++++++++++++++++++++++++++++++ src/apps/common/pnm_writer.h | 20 +++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 src/apps/common/pnm_writer.cpp create mode 100644 src/apps/common/pnm_writer.h