Message ID | 20230524021625.13708-1-yunfei.dong@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2550721vqo; Tue, 23 May 2023 19:34:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5vqDGhvVh1M7NL82u/Jd25BtTR1MpMKLJFp9Rb6u05lwe+mmuEhRWwL5cWyx2BuuInA7DF X-Received: by 2002:a05:6a20:9f4d:b0:104:ad71:f080 with SMTP id ml13-20020a056a209f4d00b00104ad71f080mr13383846pzb.34.1684895649705; Tue, 23 May 2023 19:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684895649; cv=none; d=google.com; s=arc-20160816; b=nyf0+wJVxJrsOqrwobEcYVMapP+YVjP0SavP6GJcaBd2tu4BdCqZs5q057UzhZHH0G 9FvEC7VKHfVHrJGDAU/b5t6hUwj1KC67JDN6Dygytt5/Iebov5ahW1K41I5BdDBJY9PY cN7/45oATJldHARuuor3R9VBtYKir7r0rx6gYdi5JdLoJ3h8cMbEzu1iRfIAojJ3/5mE 6zJ+d1LHuqKKykSpgQvUDq703wSQGJsYWegqG/Zrc+0EoCTMWgL0gUsd38t2VSSDG7LP lZOY7Ep+PVCriR6JFq4RFvDbgG+tK4fnAOVVhyFTRVm7e5OAZOoP+rIBQ7+TUTikZZyK IKJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TxHXJeQhGfWPaTTMah/zdWefYPEjXGUXXBbpnr0lnFg=; b=pJEP2n9FJiEHM1d5cpfkW2JePk1RJLSRRaMTIvWfP6cwRG2ShzMBqUj9NaKIJgPwRI XSjSnJzTP/dt1+lm1B5g/IVayMJ84rXL3r7lviRxVVjZmbhqb4Hr/H6aXBYQ6ue2Ql6c LwxbWndsAbqj4dg3mE+hlbOcsScaYNnvYLtm3HERSCt5IqA+3QwONac0U5GK7tqJampb u8FUk5g+mIjxRBEoGR/kIWFxpBOTmkhe1lApRVPdllMuzyGMspAOloa9lwHIAFnNv9CY 5aJvxyGdVrTCNqulAIbn3hRmRIeTeiAaKPxygAwIFO4ZhNkv+9pqIXR7n+6XaRyD4H77 BQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jVqnWR3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a63b24b000000b005303b490638si1559354pgo.466.2023.05.23.19.33.57; Tue, 23 May 2023 19:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jVqnWR3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239098AbjEXCRI (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Tue, 23 May 2023 22:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjEXCRG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 23 May 2023 22:17:06 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38B54C1; Tue, 23 May 2023 19:17:03 -0700 (PDT) X-UUID: 0f8d51aef9d911edb20a276fd37b9834-20230524 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=TxHXJeQhGfWPaTTMah/zdWefYPEjXGUXXBbpnr0lnFg=; b=jVqnWR3NPIvFShRYmc3uBxyKI67YkZIzyTfPGtZsu0HFGSQQZ36evP3iqKiIoyexwPLnUl4v9bNw1UfMeAO9iqbrIAqL96dHZrhQhZ3H8w7yCCZDEM+tGaTXtefz6m3NJdVzpM/jZHhSLf0SbzfSBTnSKH67zLQF3czCcfYCBXo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:a5430856-6ee0-4006-97c5-615c522573fb,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.25,REQID:a5430856-6ee0-4006-97c5-615c522573fb,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:d5b0ae3,CLOUDID:7af0cb6c-2f20-4998-991c-3b78627e4938,B ulkID:2305241016599MWX18U4,BulkQuantity:0,Recheck:0,SF:17|19|48|38|29|28,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 0f8d51aef9d911edb20a276fd37b9834-20230524 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from <yunfei.dong@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1762974113; Wed, 24 May 2023 10:16:58 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 24 May 2023 10:16:56 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 24 May 2023 10:16:56 +0800 From: Yunfei Dong <yunfei.dong@mediatek.com> To: Chen-Yu Tsai <wenst@chromium.org>, Nicolas Dufresne <nicolas.dufresne@collabora.com>, Hans Verkuil <hverkuil-cisco@xs4all.nl>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Benjamin Gaignard <benjamin.gaignard@collabora.com>, =?utf-8?q?N=C3=ADcolas?= =?utf-8?q?_F_=2E_R_=2E_A_=2E_Prado?= <nfraprado@collabora.com>, Nathan Hebert <nhebert@chromium.org> CC: Yunfei Dong <yunfei.dong@mediatek.com>, Hsin-Yi Wang <hsinyi@chromium.org>, Fritz Koenig <frkoenig@chromium.org>, Daniel Vetter <daniel@ffwll.ch>, Steve Cho <stevecho@chromium.org>, <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-mediatek@lists.infradead.org>, <Project_Global_Chrome_Upstream_Group@mediatek.com> Subject: [PATCH v5,0/2] media: mediatek: vcodec: add hevc stateless decoder driver in MT8195 Date: Wed, 24 May 2023 10:16:23 +0800 Message-ID: <20230524021625.13708-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766741140626096146?= X-GMAIL-MSGID: =?utf-8?q?1766741140626096146?= |
Series |
media: mediatek: vcodec: add hevc stateless decoder driver in MT8195
|
|
Message
Yunfei Dong (董云飞)
May 24, 2023, 2:16 a.m. UTC
Add hevc stateless decoder driver to support hardware decode in MT8195, and the driver need num_delta_pocs_of_ref_rps_idx value to parse slice header short_term_ref_pic_set(). patch 1 add num_delta_pocs_of_ref_rps_idx field. patch 2 add hevc stateless decoder driver. --- Changed from v4: - fix some comments according to Nathan's suggestion. Changed from v3: - add the dependency patch to this patch series for patch 1. Changed from v2: - fix one build warning. - add the dependency patch link. Changed from v1: - fix build error when build 32bit system. - hevc fluster test result: 132/147 (not support: 10bit => 11 and resolution => 4). --- Benjamin Gaignard (1): media: uapi: HEVC: Add num_delta_pocs_of_ref_rps_idx field Yunfei Dong (1): media: mediatek: vcodec: support stateless hevc decoder .../media/v4l/ext-ctrls-codec-stateless.rst | 7 + .../media/platform/mediatek/vcodec/Makefile | 1 + .../vcodec/mtk_vcodec_dec_stateless.c | 59 +- .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + .../vcodec/vdec/vdec_hevc_req_multi_if.c | 1101 +++++++++++++++++ .../platform/mediatek/vcodec/vdec_drv_if.c | 4 + .../platform/mediatek/vcodec/vdec_drv_if.h | 1 + include/uapi/linux/v4l2-controls.h | 6 +- 8 files changed, 1178 insertions(+), 2 deletions(-) create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c