From patchwork Sat Jan 19 12:01:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 10771999 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 5594E17FB for ; Sat, 19 Jan 2019 12:02:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 445D92E2A0 for ; Sat, 19 Jan 2019 12:02:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 359F52E271; Sat, 19 Jan 2019 12:02:13 +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 D9D3B2E271 for ; Sat, 19 Jan 2019 12:02:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727987AbfASMCL (ORCPT ); Sat, 19 Jan 2019 07:02:11 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:37900 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727900AbfASMCK (ORCPT ); Sat, 19 Jan 2019 07:02:10 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so18140764wrw.5 for ; Sat, 19 Jan 2019 04:02:09 -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:in-reply-to:references; bh=CRKPeEVvwbwPyW8PlCLSf72e4jMeIVWoAQn62FQ1RKs=; b=MjPqic2A1DdF4TOUqaXwQQvE8QQzM7o+jNpfWWAMoZOHLsxR4q72qQ04PSYyalN7Gt SyRFeUGSZxSMCL2QZnEdWyE60vxmaOp2ypdo8XZelzPncvmLuUuTWnRfBzlXLw4WTEz9 P14FOmKiLFjNKSIblweEE4gaACBVZ3/b2wpjlMDig3RdC3VlbjiH0/uEsX1EkWG1GMJ5 cW6LAWkp4LTfz3aabKHwu90/jVwSfp0+ake+zlt8RIpl5HqdHDtZhE1sbBoDpTvjmol1 44IyG5AJCoTZ8KVvj4OYK1ifsFPBDS/2s7ebQhVj5CcYBs0tITN91qJAPmyVxoltSunn qdXQ== 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:in-reply-to :references; bh=CRKPeEVvwbwPyW8PlCLSf72e4jMeIVWoAQn62FQ1RKs=; b=Zp9jLDtZme5CkKVQhYKDweNc36Ucg98BjxdEvtN4T0cffzyTzC6P4VDqiZBOmQaUnP HsyN0DPkCms0PrF/ZLEMk8L9JcgADaISFFpjDIlEIQM24jRYYI53TVXaYmWa+4iGc39w Vg/s9fsOz34okUe2ykRQZjvB7oLFZArNJHTtuPRqWQzNxnz0Pm0poEh8lu2c2Drg6rRm tWv8T611HdnpJ0OG76XqvfQxOGzuVDyg5mXMdMy0sLCzOgqzevXUzAu4T+v7xZ1jShU5 QUpk1FgiECy39M+OBVB48raTW6fvkeY6wuMGSsbclLA/X0HFiNZq/uzGb0ONCqnM4aAj 3mfg== X-Gm-Message-State: AJcUukf9whYEVgtyhmDXc7IpxNrmGtf75hVK1wlPzaX4LeERKu/1P7vI fBCQHZFXVl3WMF/Z5Il4UeMBlfLJsII= X-Google-Smtp-Source: ALg8bN7pCWfR4pH4J1dNhMIOUQdsfnISN0c/ZmuNoBfY/Cth3tvqj3sMDeMfTDEBiAkoOM1eZzzH2A== X-Received: by 2002:adf:83a7:: with SMTP id 36mr20487226wre.13.1547899328916; Sat, 19 Jan 2019 04:02:08 -0800 (PST) Received: from localhost.localdomain ([87.71.51.33]) by smtp.gmail.com with ESMTPSA id e27sm95011131wra.67.2019.01.19.04.02.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Jan 2019 04:02:07 -0800 (PST) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, helen.koike@collabora.com, Dafna Hirschfeld Subject: [PATCH v4 3/6] media: vicodec: use 3 bits for the number of components Date: Sat, 19 Jan 2019 04:01:53 -0800 Message-Id: <20190119120156.15851-4-dafna3@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190119120156.15851-1-dafna3@gmail.com> References: <20190119120156.15851-1-dafna3@gmail.com> 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 Use 3 bits for the number of components mask in the fwht header flags Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/vicodec/codec-fwht.h b/drivers/media/platform/vicodec/codec-fwht.h index 6d230f5e9d60..2984dc772515 100644 --- a/drivers/media/platform/vicodec/codec-fwht.h +++ b/drivers/media/platform/vicodec/codec-fwht.h @@ -78,7 +78,7 @@ #define FWHT_FL_ALPHA_IS_UNCOMPRESSED BIT(9) /* A 4-values flag - the number of components - 1 */ -#define FWHT_FL_COMPONENTS_NUM_MSK GENMASK(17, 16) +#define FWHT_FL_COMPONENTS_NUM_MSK GENMASK(18, 16) #define FWHT_FL_COMPONENTS_NUM_OFFSET 16 /*