From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 82EAD40158 for ; Thu, 3 Aug 2023 06:02:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4887768C664; Thu, 3 Aug 2023 09:02:25 +0300 (EEST) Received: from mgamail.intel.com (unknown [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D4E1B68C3D0 for ; Thu, 3 Aug 2023 09:02:18 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691042544; x=1722578544; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zvquBowizyP8kPT1iDcD+teYCDuNWLFUJjtCLJrqTe4=; b=Mv9/ogjd8S9G1HstyhDFxvsOcofWNXNUAguCTbKxuAgi9prgiTlPXUs1 MAUFas8PyWAzSujp8l//CGJDpnYGAOf/DIBAk1XP7LjYKWCY6EfyI7IkM JSjoLmCC6W2rCCkUoOytqExC2DwzB1xhKtREONW++3SEgtc/JCcUzk6Va 91XO+N4LM2HaA/M4LSNiZCVMziKvbAT9scNXsAzDJu3OqHyv3BVQgycHS MY5d7J22fBINY46bBcwMDpVwYjbfrP7w4R3XrH8x+zCvTQqVynjl5hPOx G2xhm6lBmdh2VtpBYXsD+f38yfYVi4z1G+q/Q1knyATY+q9/HTmVW2UGQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="456152794" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="456152794" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 23:01:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="903224593" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="903224593" Received: from t-dg2.sh.intel.com ([10.238.200.86]) by orsmga005.jf.intel.com with ESMTP; 02 Aug 2023 23:01:47 -0700 From: fei.w.wang-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Thu, 3 Aug 2023 14:01:27 +0800 Message-Id: <20230803060132.501741-1-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 1/6] avcodec/cbs_av1: Add tx mode enum values X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: fei.w.wang@intel.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Fei Wang Signed-off-by: Fei Wang --- libavcodec/av1.h | 7 +++++++ libavcodec/cbs_av1_syntax_template.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libavcodec/av1.h b/libavcodec/av1.h index 384f7cddc7..8704bc41c1 100644 --- a/libavcodec/av1.h +++ b/libavcodec/av1.h @@ -175,6 +175,13 @@ enum { AV1_RESTORE_SWITCHABLE = 3, }; +// TX mode (section 6.8.21) +enum { + AV1_ONLY_4X4 = 0, + AV1_TX_MODE_LARGEST = 1, + AV1_TX_MODE_SELECT = 2, +}; + // Sequence Headers are actually unbounded because one can use // an arbitrary number of leading zeroes when encoding via uvlc. // The following estimate is based around using the lowest number diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c index a747e17784..3a5cafbfb7 100644 --- a/libavcodec/cbs_av1_syntax_template.c +++ b/libavcodec/cbs_av1_syntax_template.c @@ -1028,9 +1028,9 @@ static int FUNC(read_tx_mode)(CodedBitstreamContext *ctx, RWContext *rw, int err; if (priv->coded_lossless) - infer(tx_mode, 0); + infer(tx_mode, AV1_ONLY_4X4); else - increment(tx_mode, 1, 2); + increment(tx_mode, AV1_TX_MODE_LARGEST, AV1_TX_MODE_SELECT); return 0; } -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".