From patchwork Sat Nov 21 01:45:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nuo Mi X-Patchwork-Id: 23929 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 01AA044B1D6 for ; Sat, 21 Nov 2020 04:11:02 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DDAD368B9DA; Sat, 21 Nov 2020 04:11:01 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-vs1-f65.google.com (mail-vs1-f65.google.com [209.85.217.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9AF2968B9C3 for ; Sat, 21 Nov 2020 04:10:55 +0200 (EET) Received: by mail-vs1-f65.google.com with SMTP id y73so6075472vsc.5 for ; Fri, 20 Nov 2020 18:10:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N3idvqf6HyWUFCklHLrg+uHmTbf7NX+Tlu3hxzpgJ+4=; b=HlaW6hs9lgoyhpVg3Edbl1ZEA6zGUYWimLEOzNKqvsOLv3jQQh4i5uLDp+rUN/v2j6 amNaNA9LaQn+iKh0bdRsSIpvA34qI3/5DDThEmxhPMnC0gjplJrSaMYmrX3F4/GbESvi n5lgdP5Qb7aGCWQoh0OB00+GgoLo6EMk7BPSk7d3S7TN/Dr4lfctlxI4VlolT/f0d20h 8Epeo4fvUZTfDnDyAyo363DRPY5FMuvXT/k9bcKKRHhNOXsmUIr3hqN1M4g5hJ1D/Sem 8lPnPUcZqDJxxH/ueHNgld87WkR3sd0DRJHhGujrFHXzgZddNrlDTZbXWGB/pFxUZYSY MA+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N3idvqf6HyWUFCklHLrg+uHmTbf7NX+Tlu3hxzpgJ+4=; b=TlBtQoKW0mUKtGrC0O1ClTHUuQkrDX+l8UB5GP7jmFTZQ/XhfUXz6/eRtuNt/9H7sp bvWUew5PryYI2cPPONT9C7tCBsiRkj0BfcAZG0ByxXjSwU5uDgddL/mMz2yuiri5+XnV 2dMBOXLl7+Nft4ELrmU+JUSTYkmNOf4AuHvqHJSth96dnn7Un+TQ2bMAbDq6EEp7KGEA FclqaOlrnKdHSjAk547OPjp9g2HwHBH3pnDFTxmyPRuC/xLARxn+9AOX3UDV/vLw5iTz vcbGx2ZScj8N7qaV3jpTJluzqJrZvF1q33xmrXYnwFRrI9Yp7shNy7pDnDfVpGw8LnKk myyw== X-Gm-Message-State: AOAM531MWpgGn2G9caf/bGlyXtlOXGNLcZfNvAEeiRXvOAua1L1kd6R1 PCVGQoddPsj/OGrXHB9WTprC9dyMoWoDEw== X-Google-Smtp-Source: ABdhPJwAKfKAMfZTXzu0xmdvOf6HUkbZx6baHU6rMsCIJfD1FYxGGe6JgsYOPMsCl0Zr24juh6XxBQ== X-Received: by 2002:a17:902:8b8c:b029:d6:df70:fa21 with SMTP id ay12-20020a1709028b8cb02900d6df70fa21mr16166416plb.15.1605923139157; Fri, 20 Nov 2020 17:45:39 -0800 (PST) Received: from Guangxin-PC.localdomain (23.83.245.51.16clouds.com. [23.83.245.51]) by smtp.gmail.com with ESMTPSA id h8sm6056294pjc.54.2020.11.20.17.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 17:45:38 -0800 (PST) From: Nuo Mi To: ffmpeg-devel@ffmpeg.org Date: Sat, 21 Nov 2020 09:45:08 +0800 Message-Id: <20201121014510.9081-2-nuomi2021@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201121014510.9081-1-nuomi2021@gmail.com> References: <20201121014510.9081-1-nuomi2021@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/vvc: add shared header for vvc 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: Nuo Mi Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/vvc.h | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 libavcodec/vvc.h diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h new file mode 100644 index 0000000000..02d532730f --- /dev/null +++ b/libavcodec/vvc.h @@ -0,0 +1,69 @@ +/* + * VVC shared code + * + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef AVCODEC_VVC_H +#define AVCODEC_VVC_H + +/** + * Table 5 – NAL unit type codes and NAL unit type classes in + * JVET-S2001 + */ +enum VVCNALUnitType { + VVC_NAL_TRAIL = 0, + VVC_NAL_STSA = 1, + VVC_NAL_RADL = 2, + VVC_NAL_RASL = 3, + VVC_NAL_RSV_VCL_4 = 4, + VVC_NAL_RSV_VCL_5 = 5, + VVC_NAL_RSV_VCL_6 = 6, + VVC_NAL_IDR_W_RADL = 7, + VVC_NAL_IDR_N_LP = 8, + VVC_NAL_CRA_NUT = 9, + VVC_NAL_GDR_NUT = 10, + VVC_NAL_RSV_IRAP_11 = 11, + VVC_NAL_OPI = 12, + VVC_NAL_DCI = 13, + VVC_NAL_VPS = 14, + VVC_NAL_SPS = 15, + VVC_NAL_PPS = 16, + VVC_NAL_PREFIX_APS = 17, + VVC_NAL_SUFFIX_APS = 18, + VVC_NAL_PH = 19, + VVC_NAL_AUD = 20, + VVC_NAL_EOS_NUT = 21, + VVC_NAL_EOB_NUT = 22, + VVC_NAL_PREFIX_SEI = 23, + VVC_NAL_SUFFIX_SEI = 24, + VVC_NAL_FD_NUT = 25, + VVC_NAL_RSV_NVCL_26 = 26, + VVC_NAL_RSV_NVCL_27 = 27, + VVC_NAL_UNSPEC_28 = 28, + VVC_NAL_UNSPEC_29 = 29, + VVC_NAL_UNSPEC_30 = 30, + VVC_NAL_UNSPEC_31 = 31, +}; + +enum VVCSliceType { + VVC_SLICE_B = 0, + VVC_SLICE_P = 1, + VCC_SLICE_I = 2, +}; + +#endif /* AVCODEC_VVC_H */