From patchwork Thu Oct 4 01:19:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar K X-Patchwork-Id: 1542731 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 33A2F40AC9 for ; Wed, 3 Oct 2012 17:06:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933057Ab2JCRGO (ORCPT ); Wed, 3 Oct 2012 13:06:14 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:55488 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933030Ab2JCRGN (ORCPT ); Wed, 3 Oct 2012 13:06:13 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBB00N73U663U30@mailout3.samsung.com> for linux-media@vger.kernel.org; Thu, 04 Oct 2012 02:06:11 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 55.29.03860.3807C605; Thu, 04 Oct 2012 02:06:11 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-82-506c70836e35 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F4.29.03860.3807C605; Thu, 04 Oct 2012 02:06:11 +0900 (KST) Received: from localhost.localdomain ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBB009RUU5VQI80@mmp2.samsung.com> for linux-media@vger.kernel.org; Thu, 04 Oct 2012 02:06:11 +0900 (KST) From: Arun Kumar K To: linux-media@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, arun.kk@samsung.com, joshi@samsung.com Subject: [PATCH v10 1/7] [media] v4l: Add fourcc definitions for new formats Date: Thu, 04 Oct 2012 06:49:05 +0530 Message-id: <1349313551-23368-2-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1349313551-23368-1-git-send-email-arun.kk@samsung.com> References: <1349313551-23368-1-git-send-email-arun.kk@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsWyRsSkWre5ICfAoHWGrEXPhq2sDowenzfJ BTBGcdmkpOZklqUW6dslcGUs3Kld8E+v4s3Ln6wNjDfUuxg5OSQETCR2P1nDAmGLSVy4t56t i5GLQ0hgKaPE/3P7WWCKtuxrhUpMZ5SY9mkFlLOcSeLuvjNsIFVsAhoS9048ZgWxRQTkJZ70 3gCLMwtESbx6eBYsLizgI3F3wXEmEJtFQFWi++B1dhCbV8BZYv7sf6wQ2xQkWpcdAotzCrhI bPnWC2YLAdUcW76BEaJXQOLb5ENA13EA1ctKbDrADHKPhMAJNon1SxuhrpaUOLjiBssERuEF jAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MQJD8PS/Z9I7GFc1WBxiFOBgVOLh1eDNDhBi TSwrrsw9xCjBwawkwnvaLydAiDclsbIqtSg/vqg0J7X4EKMP0CUTmaVEk/OB8ZFXEm9obGJu amxqaWRkZmqKQ1hJnLfZIyVASCA9sSQ1OzW1ILUIZhwTB6dUA6O44m7L0JD9k8zTtH5qBvz8 8u/To+jFe1o3rc9XMmwO/bfVpnC5/qcuy7YiL0V/gZLZcZ/1HzecqGNb8S370m59S/NPLzge zxX4Gqyvr8A5e5Vs6ivv+zvjmZ2E18gw/vs09+jP6Ae1W7567tm35R7LvqXzvlzJs31m+PvX boe1sfPsAuZt8+pXYinOSDTUYi4qTgQANaqO624CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoG5zQU6AQedKQYueDVtZHRg9Pm+S C2CMamC0yUhNTEktUkjNS85PycxLt1XyDo53jjc1MzDUNbS0MFdSyEvMTbVVcvEJ0HXLzAGa qqRQlphTChQKSCwuVtK3wzQhNMRN1wKmMULXNyQIrsfIAA0krGHMWLhTu+CfXsWblz9ZGxhv qHcxcnJICJhIbNnXygZhi0lcuLceyObiEBKYzigx7dMKKGc5k8TdfWfAqtgENCTunXjMCmKL CMhLPOm9ARZnFoiSePXwLFhcWMBH4u6C40wgNouAqkT3wevsIDavgLPE/Nn/WCG2KUi0LjsE FucUcJHY8q0XzBYCqjm2fAPjBEbeBYwMqxhFUwuSC4qT0nON9IoTc4tL89L1kvNzNzGCA/yZ 9A7GVQ0WhxgFOBiVeHg1eLMDhFgTy4orcw8xSnAwK4nwnvbLCRDiTUmsrEotyo8vKs1JLT7E 6AN01URmKdHkfGD05ZXEGxqbmJsam1qaWJiYWeIQVhLnbfZICRASSE8sSc1OTS1ILYIZx8TB KdXA6Gt0Pv3T9cTuFL2khwxHvW1kljyLvHBkV5HG/ud2/2sWMc07JNJ09tyUl5oR4TuiN/YL 5dTK+ojYd9vlHMh4NoFL9q/sl+wy48zOApHwJw9W/7y3YPL03I6rjwU654bUndrEdcA5SWLd 5BZ/v3veBcslN3YLiVQHX7+7TaJVzql1U6LVmi/XlViKMxINtZiLihMBT51Zzp0CAAA= X-CFilter-Loop: Reflected Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Adds the following new fourcc definitions. For multiplanar YCbCr - V4L2_PIX_FMT_NV21M - V4L2_PIX_FMT_NV12MT_16X16 and compressed formats - V4L2_PIX_FMT_H264_MVC - V4L2_PIX_FMT_VP8 Signed-off-by: Jeongtae Park Signed-off-by: Naveen Krishna Chatradhi Signed-off-by: Arun Kumar K --- Documentation/DocBook/media/v4l/pixfmt-nv12m.xml | 17 ++++++++++++----- Documentation/DocBook/media/v4l/pixfmt.xml | 10 ++++++++++ include/linux/videodev2.h | 4 ++++ 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Documentation/DocBook/media/v4l/pixfmt-nv12m.xml b/Documentation/DocBook/media/v4l/pixfmt-nv12m.xml index 5274c24..a990b34 100644 --- a/Documentation/DocBook/media/v4l/pixfmt-nv12m.xml +++ b/Documentation/DocBook/media/v4l/pixfmt-nv12m.xml @@ -1,11 +1,13 @@ - + - V4L2_PIX_FMT_NV12M ('NM12') + V4L2_PIX_FMT_NV12M ('NM12'), V4L2_PIX_FMT_NV21M ('NM21'), V4L2_PIX_FMT_NV12MT_16X16 &manvol; - V4L2_PIX_FMT_NV12M - Variation of V4L2_PIX_FMT_NV12 with planes + V4L2_PIX_FMT_NV12M + V4L2_PIX_FMT_NV21M + V4L2_PIX_FMT_NV12MT_16X16 + Variation of V4L2_PIX_FMT_NV12 and V4L2_PIX_FMT_NV21 with planes non contiguous in memory. @@ -22,7 +24,12 @@ The CbCr plane is the same width, in bytes, as the Y plane (and of the image), but is half as tall in pixels. Each CbCr pair belongs to four pixels. For example, Cb0/Cr0 belongs to Y'00, Y'01, -Y'10, Y'11. +Y'10, Y'11. +V4L2_PIX_FMT_NV12MT_16X16 is the tiled version of +V4L2_PIX_FMT_NV12M with 16x16 macroblock tiles. Here pixels +are arranged in 16x16 2D tiles and tiles are arranged in linear order in memory. +V4L2_PIX_FMT_NV21M is the same as V4L2_PIX_FMT_NV12M +except the Cb and Cr bytes are swapped, the CrCb plane starts with a Cr byte. V4L2_PIX_FMT_NV12M is intended to be used only in drivers and applications that support the multi-planar API, diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml index 1ddbfab..6ca0be4 100644 --- a/Documentation/DocBook/media/v4l/pixfmt.xml +++ b/Documentation/DocBook/media/v4l/pixfmt.xml @@ -758,6 +758,11 @@ extended control V4L2_CID_MPEG_STREAM_TYPE, see 'AVC1' H264 video elementary stream without start codes. + + V4L2_PIX_FMT_H264_MVC + 'MVC' + H264 MVC video elementary stream. + V4L2_PIX_FMT_H263 'H263' @@ -793,6 +798,11 @@ extended control V4L2_CID_MPEG_STREAM_TYPE, see 'VC1L' VC1, SMPTE 421M Annex L compliant stream. + + V4L2_PIX_FMT_VP8 + 'VP8' + VP8 video elementary stream. + diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 61395ef..16e6ab0 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -366,7 +366,9 @@ struct v4l2_pix_format { /* two non contiguous planes - one Y, one Cr + Cb interleaved */ #define V4L2_PIX_FMT_NV12M v4l2_fourcc('N', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 */ +#define V4L2_PIX_FMT_NV21M v4l2_fourcc('N', 'M', '2', '1') /* 21 Y/CrCb 4:2:0 */ #define V4L2_PIX_FMT_NV12MT v4l2_fourcc('T', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 64x32 macroblocks */ +#define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc('V', 'M', '1', '2') /* 12 Y/CbCr 4:2:0 16x16 macroblocks */ /* three non contiguous planes - Y, Cb, Cr */ #define V4L2_PIX_FMT_YUV420M v4l2_fourcc('Y', 'M', '1', '2') /* 12 YUV420 planar */ @@ -403,6 +405,7 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_MPEG v4l2_fourcc('M', 'P', 'E', 'G') /* MPEG-1/2/4 Multiplexed */ #define V4L2_PIX_FMT_H264 v4l2_fourcc('H', '2', '6', '4') /* H264 with start codes */ #define V4L2_PIX_FMT_H264_NO_SC v4l2_fourcc('A', 'V', 'C', '1') /* H264 without start codes */ +#define V4L2_PIX_FMT_H264_MVC v4l2_fourcc('M', '2', '6', '4') /* H264 MVC */ #define V4L2_PIX_FMT_H263 v4l2_fourcc('H', '2', '6', '3') /* H263 */ #define V4L2_PIX_FMT_MPEG1 v4l2_fourcc('M', 'P', 'G', '1') /* MPEG-1 ES */ #define V4L2_PIX_FMT_MPEG2 v4l2_fourcc('M', 'P', 'G', '2') /* MPEG-2 ES */ @@ -410,6 +413,7 @@ struct v4l2_pix_format { #define V4L2_PIX_FMT_XVID v4l2_fourcc('X', 'V', 'I', 'D') /* Xvid */ #define V4L2_PIX_FMT_VC1_ANNEX_G v4l2_fourcc('V', 'C', '1', 'G') /* SMPTE 421M Annex G compliant stream */ #define V4L2_PIX_FMT_VC1_ANNEX_L v4l2_fourcc('V', 'C', '1', 'L') /* SMPTE 421M Annex L compliant stream */ +#define V4L2_PIX_FMT_VP8 v4l2_fourcc('V', 'P', '8', '0') /* VP8 */ /* Vendor-specific formats */ #define V4L2_PIX_FMT_CPIA1 v4l2_fourcc('C', 'P', 'I', 'A') /* cpia1 YUV */