From patchwork Wed May 11 13:37:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 776802 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4BGFUgt011418 for ; Wed, 11 May 2011 16:15:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757256Ab1EKQO6 (ORCPT ); Wed, 11 May 2011 12:14:58 -0400 Received: from perceval.ideasonboard.com ([95.142.166.194]:43294 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757242Ab1EKQO5 (ORCPT ); Wed, 11 May 2011 12:14:57 -0400 Received: from localhost.localdomain (business-89-133-214-82.business.broadband.hu [89.133.214.82]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4E202359A1; Wed, 11 May 2011 13:36:32 +0000 (UTC) From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: hdegoede@redhat.com Subject: [PATCH 1/2] v4l: Add M420 format definition Date: Wed, 11 May 2011 15:37:22 +0200 Message-Id: <1305121043-8543-1-git-send-email-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 1.7.3.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 11 May 2011 16:15:31 +0000 (UTC) From: Hans de Goede M420 is an hybrid YUV 4:2:2 packet/planar format. Two Y lines are followed by an interleaved U/V line. Signed-off-by: Hans de Goede [laurent.pinchart@ideasonboard.com: split into v4l/uvcvideo patches] Signed-off-by: Laurent Pinchart --- include/linux/videodev2.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index a417270..8a4c309 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -336,6 +336,7 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_YUV420 v4l2_fourcc('Y', 'U', '1', '2') /* 12 YUV 4:2:0 */ #define V4L2_PIX_FMT_HI240 v4l2_fourcc('H', 'I', '2', '4') /* 8 8-bit color */ #define V4L2_PIX_FMT_HM12 v4l2_fourcc('H', 'M', '1', '2') /* 8 YUV 4:2:0 16x16 macroblocks */ +#define V4L2_PIX_FMT_M420 v4l2_fourcc('M', '4', '2', '0') /* 12 YUV 4:2:0 2 lines y, 1 line uv interleaved */ /* two planes -- one Y, one Cr + Cb interleaved */ #define V4L2_PIX_FMT_NV12 v4l2_fourcc('N', 'V', '1', '2') /* 12 Y/CbCr 4:2:0 */