From patchwork Mon Jan 21 18:56:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 10774405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB50E1390 for ; Mon, 21 Jan 2019 18:57:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A09E29915 for ; Mon, 21 Jan 2019 18:57:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DE7D29D73; Mon, 21 Jan 2019 18:57:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 243FA29915 for ; Mon, 21 Jan 2019 18:57:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726847AbfAUS5R (ORCPT ); Mon, 21 Jan 2019 13:57:17 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:54553 "EHLO mail-wm1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726575AbfAUS5R (ORCPT ); Mon, 21 Jan 2019 13:57:17 -0500 Received: by mail-wm1-f42.google.com with SMTP id a62so11849777wmh.4 for ; Mon, 21 Jan 2019 10:57:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FNfMy9lml9TShZbaccDHgG3dE5teQOLQRzyjZoHhAkQ=; b=TwwXaMfEbxr9VOMa5lAtzKDXknCugkaftRpwEcizA3X0xYcPjpb9mjcb77xe5EUh+O Tosr8EnGL7TgDjBpLdsDQmb7Gxx68aXxJiQgUHC0bsjk6Xj+p3LZ8BIrxgA6AtCb1joG rpoUKarC0EcVyEMwq1d3sEgXbhWazZhaKmu3061LqT9lBXKmjLxYlm2qq4BICqQswD5t DkeIAMumOwQWdmX1JgQE+9TaYMAN7OhMdxHgy4g0nE6IgKHfZOw488DnbO/H8XJ8WbWg oBKjvvUx794YwPad1ypqHKyQNXivAMskxQ+5zrb7a1AvlYK5AIy691dwlpVBvbbUQZTn W3uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FNfMy9lml9TShZbaccDHgG3dE5teQOLQRzyjZoHhAkQ=; b=QVAqhZsNYH7aVaYEgZDOt7gwxsjx2B2AIkkCfCK59V8xGLTDp8ixbsxhAqaqQzQlsP TbSQrEHLIzLTON+dEYVlLYR1MmTcfTtRiPraH1ILT80RVLdEYFgYwuoMSa8ckIRPc2Do RfKfcBIVKc8a636XoAOKLhaXkwxPnwqz7oYSJpvyYu+WARZnwP7zCdjJyzESYP5h3DyH XIH4azyMWGeCXX9QXYpM3GtnSPyYxjTJmHMW72QNuf16i733pG6T9BAWNSBWIalNLCzD f7y9j3QqWnTH4ksargtSoMldcOXGvZgsvXvke4Po0XqkwiTGpBhRkbtmdbt5zWQ+fFdU 67nA== X-Gm-Message-State: AJcUukdByi0Er3fIXMLLA/94HCZ4mQBOXjo83XG730V+J1BxOMeDlTqr NvwcJkUMlyKFuF+tSs5E5chUmQT+ZmE= X-Google-Smtp-Source: ALg8bN4QbZrc2z8X0F/yfFUxMI9P+BGZ6FztYIywDPbwBQ29Ml8nAG1cbIcQmf57cdkQR6IrK+3n8g== X-Received: by 2002:a1c:c008:: with SMTP id q8mr496459wmf.99.1548097035615; Mon, 21 Jan 2019 10:57:15 -0800 (PST) Received: from localhost.localdomain ([87.70.46.65]) by smtp.gmail.com with ESMTPSA id 67sm145061521wra.37.2019.01.21.10.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jan 2019 10:57:14 -0800 (PST) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, helen.koike@collabora.com, Dafna Hirschfeld Subject: [v4l-utils PATCH v2 0/5] source change support in v4l2-ctl Date: Mon, 21 Jan 2019 10:56:46 -0800 Message-Id: <20190121185651.6229-1-dafna3@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changes from v2: 1. reomve the patch "test the excpetion fds first in streaming_set_m2m" instead check the last buffer at the end of each loop. 2. The fmt shoud not be queried with g_fmt at each iteration, but only after a resolution change. 3. don't enum/get/set the new format in "Introduce capture_setup" patch Dafna Hirschfeld (5): v4l2-ctl: Add support for crop and compose selection in streaming v4l2-ctl: Add function get_codec_type v4l2-ctl: Introduce capture_setup v4l2-ctl: Add support for source change event for m2m decoder v4l2-ctl: Add --stream-pixformat option utils/common/codec-fwht.patch | 8 +- utils/common/v4l-stream.c | 14 +- utils/common/v4l-stream.h | 6 +- utils/qvidcap/capture.cpp | 2 + utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 363 +++++++++++++++++++++++--- utils/v4l2-ctl/v4l2-ctl.cpp | 39 ++- utils/v4l2-ctl/v4l2-ctl.h | 2 + 7 files changed, 375 insertions(+), 59 deletions(-)