From patchwork Wed Apr 16 12:59:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar K X-Patchwork-Id: 4000951 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6C387BFF02 for ; Wed, 16 Apr 2014 12:59:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 934E920340 for ; Wed, 16 Apr 2014 12:59:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDE10201FA for ; Wed, 16 Apr 2014 12:59:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753AbaDPM7a (ORCPT ); Wed, 16 Apr 2014 08:59:30 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:47818 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753240AbaDPM72 (ORCPT ); Wed, 16 Apr 2014 08:59:28 -0400 Received: by mail-pd0-f171.google.com with SMTP id r10so10749695pdi.30 for ; Wed, 16 Apr 2014 05:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=7xkIpMCCNf9ZrNLqftk/zoVwii22VHyObzftwgh3alg=; b=pctVt1iYXeBem5A5DlqB3Lh1Qw09U2SiIi7LvCdh5FzCqZ+qmzG30tilIrAA4QljNz hOgQUdhG131HrCps01077KhdsGdSH97kmUYFZzN5t+qMgPsddEbVVV70BcbYct82CZj0 rSbuWJIHlkPVf3pLmDDGvfZpjaHuOiUSxjlolm4uZidFolb7hFquMJEb8qaYJtsmZ7br sC0YQpTSGAE23mgSg8RV7RhEy+YyFa7+qsaQZQBkxb/wq40AJNk05Os+YUNa9iCZ7O8F LKzYcGK7Ug8XuwH2ujcbs7OJ6PT2kjHGdJvXQzYGLxkyLfNoWHW+xb6d598uEFMP4JxU /YAA== X-Received: by 10.68.174.225 with SMTP id bv1mr8483625pbc.12.1397653168327; Wed, 16 Apr 2014 05:59:28 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id xo9sm109799290pab.18.2014.04.16.05.59.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 05:59:27 -0700 (PDT) From: Arun Kumar K To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, hverkuil@xs4all.nl, posciak@chromium.org, arunkk.samsung@gmail.com Subject: [PATCH 1/2] v4l: Add resolution change event. Date: Wed, 16 Apr 2014 18:29:21 +0530 Message-Id: <1397653162-10179-1-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pawel Osciak This event indicates that the decoder has reached a point in the stream, at which the resolution changes. The userspace is expected to provide a new set of CAPTURE buffers for the new format before decoding can continue. Signed-off-by: Pawel Osciak Signed-off-by: Arun Kumar K --- .../DocBook/media/v4l/vidioc-subscribe-event.xml | 8 ++++++++ include/uapi/linux/videodev2.h | 1 + 2 files changed, 9 insertions(+) diff --git a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml index 5c70b61..d848628 100644 --- a/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml +++ b/Documentation/DocBook/media/v4l/vidioc-subscribe-event.xml @@ -155,6 +155,14 @@ + V4L2_EVENT_RESOLUTION_CHANGE + 5 + This event is triggered when a resolution change is detected + during runtime by the video decoder. Application may need to + reinitialize buffers before proceeding further. + + + V4L2_EVENT_PRIVATE_START 0x08000000 Base event number for driver-private events. diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 6ae7bbe..58488b7 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1733,6 +1733,7 @@ struct v4l2_streamparm { #define V4L2_EVENT_EOS 2 #define V4L2_EVENT_CTRL 3 #define V4L2_EVENT_FRAME_SYNC 4 +#define V4L2_EVENT_RESOLUTION_CHANGE 5 #define V4L2_EVENT_PRIVATE_START 0x08000000 /* Payload for V4L2_EVENT_VSYNC */