From patchwork Sat Jan 19 12:01:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 10771995 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 BD24A17FB for ; Sat, 19 Jan 2019 12:02:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3E6C2E271 for ; Sat, 19 Jan 2019 12:02:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 943BD2E2AB; Sat, 19 Jan 2019 12:02:10 +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 19DA82E271 for ; Sat, 19 Jan 2019 12:02:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727921AbfASMCG (ORCPT ); Sat, 19 Jan 2019 07:02:06 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36038 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbfASMCG (ORCPT ); Sat, 19 Jan 2019 07:02:06 -0500 Received: by mail-wr1-f66.google.com with SMTP id u4so18131352wrp.3 for ; Sat, 19 Jan 2019 04:02:05 -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=n3kZyTzmUdJP2x1l84DarEyh9pc7FJILmKyV7QkFV6c=; b=uPtvW+elqj0y8/y1f76DKgsH13YSguGQ75KyIL0HY0p0YaRE1O3M0C43u4VRgeotHG Zn2+gK4S3z91Ur+B92CNVNOd13FdoJNmJhfdlctoweENvszB0xZFn8iOLwdTjnq4nN2f hLt8Mneop2Vq9T0ZSyRGnV0GgqfQ07XRnah8It8czeJYPoxXfwE+yZ4atgKvCQbz3fKe tcBO4eLx4+HSQV+WlrQdzT7JXHjZ3nS/T7ZbeQmM0NTYwzhthLTr4x6RhECSfDTpwSeo wcs9JTyGp4eSPrZLuDAGtuXiYjWmy1JP5I1YhZ0SjaSDvCARWL9vljk/XmtcVNMpWlbv G7dg== 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=n3kZyTzmUdJP2x1l84DarEyh9pc7FJILmKyV7QkFV6c=; b=A90b/3fKfti/0nnJP/W9AVi86y4iS+Cs7l3t7TQiBgP+8gVnURiEoX35jSefwCfAc5 1SXLcehz9qJC4rv5uTi6s94wfReAJMeCIcGe1kcv6W0lqJGJmfXcuS+KqGhjbAG8r1a1 GW98en2HuoPpdG+awzCjToonlORsGgK1j/hPNt+MzO0GnpEnkkeJ2YgzS6ZMZoKnpgNR zGLsReYXhKlTLktP3eQ0HhpqmHg+g5+MLs0w7p71kawnEkfcjFUg4kV5fDg+29zjNvK6 IadypJzsOXlikW82ZUkJ/CoKTwuI3blbm9daoMctEWhAbyvq+FcKgwTf/VHw3w5CpLCy uhWg== X-Gm-Message-State: AJcUukdgvqI+nJDEESeU4q6HW3DJFjyC87Vj576Sn6cbsetaxi3zoQkI 1BPknm+nqiBgefkUiCbgkuGNfC09Mw8= X-Google-Smtp-Source: ALg8bN49uKRR+s/3x4To1oAvvSb+/K3xw3M/5CdqbkDjwadTLFTAYsCHjqdmAu2dO8Jdh5XVRSnkJQ== X-Received: by 2002:adf:a393:: with SMTP id l19mr20920055wrb.110.1547899324136; Sat, 19 Jan 2019 04:02:04 -0800 (PST) Received: from localhost.localdomain ([87.71.51.33]) by smtp.gmail.com with ESMTPSA id e27sm95011131wra.67.2019.01.19.04.02.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 04:02:02 -0800 (PST) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, helen.koike@collabora.com, Dafna Hirschfeld Subject: [PATCH v4 0/6] media: vicodec: resolution change suport Date: Sat, 19 Jan 2019 04:01:50 -0800 Message-Id: <20190119120156.15851-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 v3: 1. bugfix in stop_sreaming callback, ctx->max_comp_size should initialize when the ref_fram is freed. 2. added patch - use 3 bits for the number of components in the fwht header. 3. remove the first patch: "bugfix - replace '=' with '|='" since it was already merged Dafna Hirschfeld (6): media: vicodec: Add num_planes field to v4l2_fwht_pixfmt_info media: vicodec: add support for CROP and COMPOSE selection media: vicodec: use 3 bits for the number of components media: vicodec: Add pixel encoding flags to fwht header media: vicodec: Separate fwht header from the frame data media: vicodec: Add support for resolution change event. drivers/media/platform/vicodec/codec-fwht.c | 80 ++- drivers/media/platform/vicodec/codec-fwht.h | 25 +- .../media/platform/vicodec/codec-v4l2-fwht.c | 384 +++++++---- .../media/platform/vicodec/codec-v4l2-fwht.h | 15 +- drivers/media/platform/vicodec/vicodec-core.c | 609 ++++++++++++++---- 5 files changed, 811 insertions(+), 302 deletions(-)