From patchwork Sun Sep 12 08:20:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12486777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 044F9C433EF for ; Sun, 12 Sep 2021 08:23:17 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C4623608FB for ; Sun, 12 Sep 2021 08:23:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C4623608FB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mk/1AH6KepkxSKVG8R0HRTOEG+aHEtBKAvEvaWykZ0U=; b=kM4FYYLHCt+3LW qHzzFT8TI6epxnW8PbCxzXJmVDinuKWR8FYHOy1NtCB2+if0loCBGqaZZZCB9WbOyahzH7duuD5z6 GCAWEssd82RFNdXFCMZq2VK6ylVBZ9UTbWxf8yE1hJ/PjinWatJxne7D+UiH8vW+/6reR99DCrT5/ f9tUFIpAEjx2bG404wq+TA/keWEBCzlCLFC8HTjuTviiThr8Mq7RbFGnnltYgy3nZCjcTI4ffy5l9 EA1QsSeYPzk2nVMieh9/jmCNWguxRalqCvxp29gGUhwT5+3G7F71LPckJ2HgoZw7BaqKYKMXIMTta oIUulBp7tWt98zk9h/NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPKjc-00G5cY-FO; Sun, 12 Sep 2021 08:21:08 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPKjY-00G5b2-1J for linux-arm-kernel@lists.infradead.org; Sun, 12 Sep 2021 08:21:05 +0000 Received: by mail-wm1-x332.google.com with SMTP id n7-20020a05600c3b8700b002f8ca941d89so4365723wms.2 for ; Sun, 12 Sep 2021 01:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LT34+O2y8jlTFIaCq6B6/Rp8/2SCwO8Z1dBB/RqrE7o=; b=ZbaLrC4FD3vx/1V0YKwP6kGOJvQjS+QTu7htpwg4T7cDEFVUwbEmPv6ojk6sDnGDZZ KZOCeQVo/8s2dSI2B1hveQo2CIEahpxsVnSoXSKlctcIFGS0FynfUqSevuWu9pVKknsw R3/qvQpPCqhMIJEnaEhaE+X2RILw0pecPN1Xn119e+ewzThGoyvblzRFYjlmWHPO43le VCxzFEjf7L7/ZDjoCi8Hga8vGCPtgBdq8Jj9r972sJeYqnE4wnnpdsqgnJTCc2XJgZan /4WDb1I2isOhvUZLUkzvrxs9CzCYsNrAzU2POCwhU56XCLDc89QNgjdx5pm2JfeFhS/6 mkyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LT34+O2y8jlTFIaCq6B6/Rp8/2SCwO8Z1dBB/RqrE7o=; b=EIMkDCcYlKEGdnKQO8OM4vzRgqiRmCnEcBrJ/ZcGkGFfp8lTHKjIMs3HRTRBjqZv/5 hPXfMC8sDSh+4FBmiYE9DFtOtFHnDmieJuSvTkqCvNa4IULJcMxZYWKKcs+yz9x7OAg6 Nj6gfMTs/DQgRX8FyFADoet0e3SXV+hmbjBdt+fku+BiuZ3L5F0sWLkm1RDA0PpasWC9 JSgyTMncmKINC8ph2JkEob/XTCSs+svLccYrypULbbrY0+UXjU4iucklNXWRNYDVt1d4 iocDNTas4fb1ylCYDSjYODYY6oOsCxaYOQ1BGNjBI4GpNSWP6yEJyqaElk9Ss51S8Gz0 oW3A== X-Gm-Message-State: AOAM531Y21078j4zg/B8YflR5TtzYCDh2Ax//OMsBK9unjeZB9kuMhgm rARCYpSpTJQPgxqZSCC8q1g= X-Google-Smtp-Source: ABdhPJyqLnC1HxRGb9sUgb6iU1MmFNSzSyZOI+NhOigKON5velkaZkdi84vHFDZIyu/1TLAbWjzS8w== X-Received: by 2002:a1c:800e:: with SMTP id b14mr5923995wmd.54.1631434862589; Sun, 12 Sep 2021 01:21:02 -0700 (PDT) Received: from kista.localdomain (cpe-86-58-29-253.static.triera.net. [86.58.29.253]) by smtp.gmail.com with ESMTPSA id z7sm4734148wre.72.2021.09.12.01.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 01:21:02 -0700 (PDT) From: Jernej Skrabec To: mripard@kernel.org, paul.kocialkowski@bootlin.com Cc: wens@csie.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 0/2] media: cedrus: validate H264 and H265 SPS controls Date: Sun, 12 Sep 2021 10:20:49 +0200 Message-Id: <20210912082051.404645-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210912_012104_143076_D9E4834C X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since Cedrus core doesn't support decoding all possible H264 and H265 formats, it's good to add some validation, which would reject unsupported combinations. Patch 1 adds H265 10-bit capability flag, currently supported only on H6. Patch 2 adds H264/H265 SPS validation callback. Please take a look. Best regards, Jernej Jernej Skrabec (2): media: cedrus: Add H265 10-bit capability flag media: cedrus: add check for H264 and H265 limitations drivers/staging/media/sunxi/cedrus/cedrus.c | 47 +++++++++++++++++++++ drivers/staging/media/sunxi/cedrus/cedrus.h | 1 + 2 files changed, 48 insertions(+)