From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pb0-f43.google.com ([209.85.160.43]:33935 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755447Ab3H3CR5 (ORCPT ); Thu, 29 Aug 2013 22:17:57 -0400 Received: by mail-pb0-f43.google.com with SMTP id md4so1224944pbc.30 for ; Thu, 29 Aug 2013 19:17:57 -0700 (PDT) From: Pawel Osciak To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, Pawel Osciak Subject: [PATCH v1 18/19] v4l: Add V4L2_PIX_FMT_VP8_SIMULCAST format. Date: Fri, 30 Aug 2013 11:17:17 +0900 Message-Id: <1377829038-4726-19-git-send-email-posciak@chromium.org> In-Reply-To: <1377829038-4726-1-git-send-email-posciak@chromium.org> References: <1377829038-4726-1-git-send-email-posciak@chromium.org> Sender: linux-media-owner@vger.kernel.org List-ID: This format is used by UVC 1.5 VP8-encoding cameras. When it is used, the camera may encode captured frames into one or more streams, each of which may be configured differently. This allows simultaneous capture of streams with different resolutions, bitrates, and other settings, depending on the camera capabilities. Signed-off-by: Pawel Osciak --- include/uapi/linux/videodev2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index c011ee0..8b0d4ad 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -402,6 +402,7 @@ struct v4l2_pix_format { #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 */ +#define V4L2_PIX_FMT_VP8_SIMULCAST v4l2_fourcc('V', 'P', '8', 'S') /* VP8 simulcast */ /* Vendor-specific formats */ #define V4L2_PIX_FMT_CPIA1 v4l2_fourcc('C', 'P', 'I', 'A') /* cpia1 YUV */ @@ -691,6 +692,9 @@ struct v4l2_buffer { #define V4L2_BUF_FLAG_PREV_FRAME 0x10000 /* VP8 prev frame */ #define V4L2_BUF_FLAG_GOLDEN_FRAME 0x20000 /* VP8 golden frame */ #define V4L2_BUF_FLAG_ALTREF_FRAME 0x40000 /* VP8 altref frame */ +/* Simulcast layer structure. */ +#define V4L2_BUF_FLAG_LAYER_STRUCTURE_SHIFT 19 /* Bits 19-20 for layer */ +#define V4L2_BUF_FLAG_LAYER_STRUCTURE_MASK 0x3 /* structure information. */ /** * struct v4l2_exportbuffer - export of video buffer as DMABUF file descriptor -- 1.8.4