From patchwork Thu Aug 27 05:03:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hwren X-Patchwork-Id: 21941 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 68D7244BC99 for ; Thu, 27 Aug 2020 08:04:24 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 44A8568819B; Thu, 27 Aug 2020 08:04:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from m15113.mail.126.com (m15113.mail.126.com [220.181.15.113]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 50960680A93 for ; Thu, 27 Aug 2020 08:04:16 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=qlxih NxGsz06jrlO2JDxhezvAoqvAKpQ6S10ZVzeTQQ=; b=Y6jxJUzrNNJE720ExD6Lc EJUmdUFf7EUWLRxvEirlz7u9DPpFoFkm0R7+g84JUoURz7X/hVygHVuKDUWhghdJ hvuR99P8Whw0nV++D3/uaGDEEsb1PueYsAQUnchET9KUk4LSCA5bpQ3ebGjAsjHm snTPjIQAcMUhwBlA/nVYAg= Received: from localhost.localdomain (unknown [111.34.130.225]) by smtp3 (Coremail) with SMTP id DcmowACX7fG6PkdfH2AxJA--.17687S3; Thu, 27 Aug 2020 13:03:57 +0800 (CST) From: hwrenx@126.com To: ffmpeg-devel@ffmpeg.org Date: Thu, 27 Aug 2020 13:03:39 +0800 Message-Id: <20200827050343.1425-2-hwrenx@126.com> X-Mailer: git-send-email 2.23.0.windows.1 In-Reply-To: <20200827050343.1425-1-hwrenx@126.com> References: <20200824030241.1737-1-hwrenx@126.com> <20200827050343.1425-1-hwrenx@126.com> MIME-Version: 1.0 X-CM-TRANSID: DcmowACX7fG6PkdfH2AxJA--.17687S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Xr1xZw4Uuw15Gr1xCFW7Arb_yoW8Jr4Upr sIqr13KFWaqF9xA397Jr1UCF1jkFy3XF97W3sFqw12kr4Sq34UJryavrZrW3WxZrZ09F9r uwnxGw1kXw4UJaUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U7cTQUUUUU= X-Originating-IP: [111.34.130.225] X-CM-SenderInfo: pkzuv0b06rjloofrz/1tbiZx2N6V16esvzBwABs9 Subject: [FFmpeg-devel] [PATCH v8 1/5] lavc: add AVS3 codec id and desc X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: hwren , hbj Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: hwren Signed-off-by: hbj Signed-off-by: hwren --- libavcodec/codec_desc.c | 7 +++++++ libavcodec/codec_id.h | 1 + 2 files changed, 8 insertions(+) diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 0ae6aee63b..61473178fc 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -1412,6 +1412,13 @@ static const AVCodecDescriptor codec_descriptors[] = { .long_name = NULL_IF_CONFIG_SMALL("PGX (JPEG2000 Test Format)"), .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS, }, + { + .id = AV_CODEC_ID_AVS3, + .type = AVMEDIA_TYPE_VIDEO, + .name = "avs3", + .long_name = NULL_IF_CONFIG_SMALL("AVS3-P2/IEEE1857.10"), + .props = AV_CODEC_PROP_LOSSY, + }, { .id = AV_CODEC_ID_Y41P, .type = AVMEDIA_TYPE_VIDEO, diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h index 896ecb0ce0..47aa0787b6 100644 --- a/libavcodec/codec_id.h +++ b/libavcodec/codec_id.h @@ -242,6 +242,7 @@ enum AVCodecID { AV_CODEC_ID_RSCC, AV_CODEC_ID_AVS2, AV_CODEC_ID_PGX, + AV_CODEC_ID_AVS3, AV_CODEC_ID_Y41P = 0x8000, AV_CODEC_ID_AVRP,