From patchwork Mon Oct 28 11:02:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2286 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 59A746017F for ; Mon, 28 Oct 2019 12:02:20 +0100 (CET) Received: from pendragon.ideasonboard.com (unknown [91.217.168.176]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 07CA59C2 for ; Mon, 28 Oct 2019 12:02:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1572260540; bh=nwi5N9/1GVPeD/v0JYKN82dAB/U4ebaE45Rh7GELtXg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fryw9ECeG7kQuwpIAQkSTwrRxnAnbExLu7QjHMGAMV8+dfZ/qQgT/Uj/b5JB5cjDf UY/jyJyHmo8Ip0i8sqzEml6vn7t0Yo4cqkStr8zPHv4zHUTWf1/DYC2M2lwS2kycpV F6syq4Ri/Xso++SOmKBBlfiFhRIXpIGVc0nD3HQI= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Mon, 28 Oct 2019 13:02:04 +0200 Message-Id: <20191028110208.15751-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191028110208.15751-1-laurent.pinchart@ideasonboard.com> References: <20191028110208.15751-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 3/7] include: drm_fourcc: Add Motion-JPEG FourCC 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: Mon, 28 Oct 2019 11:02:20 -0000 From: Jacopo Mondi Add a FourCC for Motion-JPEG compressed format. This is a temporary addition until the format gets merged in the upstream kernel. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- include/linux/drm_fourcc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/drm_fourcc.h b/include/linux/drm_fourcc.h index 3feeaa3f987a..4bb1bfe93d5f 100644 --- a/include/linux/drm_fourcc.h +++ b/include/linux/drm_fourcc.h @@ -285,6 +285,8 @@ extern "C" { #define DRM_FORMAT_YUV444 fourcc_code('Y', 'U', '2', '4') /* non-subsampled Cb (1) and Cr (2) planes */ #define DRM_FORMAT_YVU444 fourcc_code('Y', 'V', '2', '4') /* non-subsampled Cr (1) and Cb (2) planes */ +/* Compressed formats */ +#define DRM_FORMAT_MJPEG fourcc_code('M', 'J', 'P', 'G') /* Motion-JPEG */ /* * Format Modifiers: