Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1796284lqe; Mon, 8 Apr 2024 23:45:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6rVi9T3r5hkq3Ck9C3iNXOqwLBQxggEqx7U5ZQ82VxV2NYQR8isKNV+o878WNS7tpIKvX7n1PZRCcsa4ShefTq3Le/2igCLMFBQMhLw== X-Google-Smtp-Source: AGHT+IG0M4Mm64wi/LztG3NiKXkAYi1pa3PoBLocWbUEQBMiBiX1rSGANP0JSoU7eWlk+OB1bmEl X-Received: by 2002:a05:620a:f8c:b0:789:da81:8f2f with SMTP id b12-20020a05620a0f8c00b00789da818f2fmr9184687qkn.26.1712645121238; Mon, 08 Apr 2024 23:45:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712645121; cv=pass; d=google.com; s=arc-20160816; b=iM+AmgWu0uXJx9XkaJFsBlB0S/T7/yvJ9DpRCO2cwmazIVwhIi9OSneEu8nfSWpqs0 mfBEw+BxEEFNkWprXF3ZpMcJ9hGw9GV19tAiDG/7frr2AhIUT9EEIrB1w30BCXzbsvBZ s/3AkCC6W+3TIgNi90s2zajhPyTw6VRmAkdiXUTWhS53OqpvgDz+fa7OG9Tf00Y0JKHB fKucMH+ctRnCCKD5YiDJr+aT3dzUQogKU7lZj3va9iytCkN6y+CMgYLVI1QsU7hTtPM8 2K8ib1vvJ4ZqE8gxgsJ67StIcxquNQslSICtPB20OIHSw3jyNE+ycmMlrDVsg7YwhdOO umxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UnZa+kymEWALAGSMk0rr8+0T+l265TIU6gLXOBOUsZo=; fh=G173izs5BDUMpWbyuW94+SjYG1wp8PFrHaqaTNdP0ls=; b=r9dB+FaVh8csavsvxvBThBhJhCh5Zrrja3RBkihYR2s3+u9uz1ImXlceAVIHZ6cAWj naPYLHH3ylzvRO2PFMPT7vWsiBehvsrrTW6f3qlhAJtAJBub19u+nBVM1q4FzAZT2pZ0 oNHzzxXLDKDIj4xXN1fClHROjhaqZFtsVbiIeh2YZ5tLHFgyPSOPrbjLUdU6W4RiKYfs VGSgI5lJ/RNqe3X86da/vK+XbpEGSsXPHxZVHPamx+Jp7rKkB2B1pkATqzVc2Mb/Jyx+ pX7X/7eW6aZ4G7HMrK5GryzNzTcUIXTl2mMXS9yt9poP5bxdn/aoXj4yzSK0Kbj4Pq/j uzTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Skgp1VIW; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-136317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp32-20020a05620a45a000b0078bc60f13eesi11222243qkb.428.2024.04.08.23.45.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 23:45:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Skgp1VIW; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-136317-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F1A441C21471 for ; Tue, 9 Apr 2024 06:45:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AF1D7C0B0; Tue, 9 Apr 2024 06:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Skgp1VIW" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83EE431A66; Tue, 9 Apr 2024 06:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645090; cv=none; b=CEJtubLRjo5xfM1xrN6FDvmPMK91qGwN/kWee1SijrxLIvYGXANbmripAUGzgui+7MCXQjRzlgSVvn++EnWSseekALhzmZtcGCJZtn3WoYdnquadKq63H2YGBMJPLjOPYWVTVCNvQHUgVMDqILiyuJSobAViSytPdcxrnk2wGFM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712645090; c=relaxed/simple; bh=q1G+JNro1SvAejSlTjBQCfwqSlrqn6Kuimwj88FxVXg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cWHdWLrzuaDuZLL6dR1k+K1IElT7YiIOGeiN2Cla92B2d9f2uEI1ougklZF5Yf7dTdtZ3mITwyWINqcR2T7dfN1IYBoGar+IVvVG4nDR8eX6/DOUk0f/bRaoT9sqHCVq3mvAdm7Geq4hCILOwvPen1wAxsJVftgol6CNkRZ8lII= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=Skgp1VIW; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: a1040668f63c11ee935d6952f98a51a9-20240409 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=UnZa+kymEWALAGSMk0rr8+0T+l265TIU6gLXOBOUsZo=; b=Skgp1VIWML4MExHSKn7sg/sWgQG9JaU82WU6oo2g5GomSY7UODkDqSz2UlF8YuQeESkG6u6zBR3arsoNL8R3e4eFgJzy3Bop3xtIlQHZuoIy02h+3qYlOXuvmtQoa+iPyC4zwEXZn+tscsKmzb+dGJDuZnF1+G/NOTigMjKlVJI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:38c3c22d-6a64-4c78-8ba8-dd889ba774a0,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:504a7482-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: a1040668f63c11ee935d6952f98a51a9-20240409 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 151941499; Tue, 09 Apr 2024 14:44:35 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Tue, 9 Apr 2024 14:44:32 +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; Tue, 9 Apr 2024 14:44:31 +0800 From: Yunfei Dong To: =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert , Sebastian Fricke CC: Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , "Yunfei Dong" , , , , , , Subject: [PATCH v2,0/5] media: change the calculation method of sizeimage Date: Tue, 9 Apr 2024 14:44:26 +0800 Message-ID: <20240409064431.16909-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--3.658400-8.000000 X-TMASE-MatchedRID: tiRXYRqWr+t7EGbCBtXNh5dc7I2df+ms7TLAShhI26nfUZT83lbkEF2k xKIqW9ov4vM1YF6AJbZhyT3WNjppUtAtbEEX0MxBxEHRux+uk8hxKpvEGAbTDs2d8v07uhCE1LI xCR7fv4UoyD9yZkFZeBEgi3uuWutXDxXLKQJKaUy36ORTd1K+uaY7sVJ5Q4+lfdzU+O6sfADO8T UL2Fw68xz+PhojlLUuev0YPTN868QBqq+/+aGCsUu0bcffALXE X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.658400-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 7216C0668EF25ACFABAA8C78AB5D3A64ACCEEE92F96DE857900F403C65F763032000:8 X-MTK: N The bytesperline and sizeimage of each plan are different for 8bit and 10bit bitstreams. Using v4l2 common interface to calculate them independently. --- compare with v1: - add patch 1/2/3/4 - change the calculation method for sizeimage for patch 5 --- Yunfei Dong (5): media: mediatek: vcodec: fix incorrect MT2T format information media: mediatek: vcodec: fix incorrect MT2R format information media: mediatek: vcodec: add MM21 format definition media: mediatek: vcodec: add MT21 format definition media: mediatek: vcodec: fix incorrect sizeimage for 10bit bitstream .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 28 ++++++------------- drivers/media/v4l2-core/v4l2-common.c | 12 +++++--- 2 files changed, 16 insertions(+), 24 deletions(-) -- 2.18.0