From patchwork Sat Apr 11 13:44:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 18860 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 A9E0C448D37 for ; Sat, 11 Apr 2020 17:08:39 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 83E0168B683; Sat, 11 Apr 2020 17:08:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 17B0A68B333 for ; Sat, 11 Apr 2020 17:08:33 +0300 (EEST) Received: by mail-pg1-f193.google.com with SMTP id d17so2269084pgo.0 for ; Sat, 11 Apr 2020 07:08:33 -0700 (PDT) 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; bh=Wukzt6zm4nFLYExCN9avv+ajgQywJ62OrmoBLaOr+OI=; b=vEH+xjcfw1FVxpkN7d8LUBqpe10nqEBGA+M1UjKT7mfgRiVi/4YXIUYBIFf1vZfqBs of4lha95y7sz9UaEwkEVd/Lej80C6I/4S/hFlNRgR59iC4hnwv62xK3lqmawRhTkRAx/ RoA+jr8bU9uOJ8/UbRZk8s2CChilKKY42CPDSNzl41RgStcm1RU2EM14ms7roz8MtgmY cNeBrjrZSGIXBh4EdIVujt/cjEfnmQHluJff7I7zYbYrPtRrI5pze9iQiScJDWO+nMYg 8ule638pHcsD7BnwVoi3hAwG/wFBxTrYnoweNfIJvb+62U5+XdZoSiXnnCKHbxUCvEXn jcuQ== 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; bh=Wukzt6zm4nFLYExCN9avv+ajgQywJ62OrmoBLaOr+OI=; b=nqQi3RtG7GhpL4AqW8ySuowWdDh6NJlmmh32jAuZy9oZtu8KklKMtpJWMI4g0Yw4qZ US1X5GPKdD5bipKtb/bGS+xpN8yfzZUaO3FMzGz8vG1Q0EKRAAMs5AWhpyHDcsyO/Vel dSKmZbpLAqRQ9y5vIsOidkjn06tASc2zC/CljkcZFrwqHFHB8fQoFXr5IVxLXGiFc8lk UpfTXUFT4GHijV8PKRED9OvA1i6NqPNuq4iXiQRNEV+HwSz/1gSGilxNw2Q2/tQYom4Q VeSWpGvje0JSK2bpF+quL4oHHb543kH3QFaDgWkZfUkufmyarUBHUuHtNyDWp4/inqxy Aanw== X-Gm-Message-State: AGi0PuZRalpsYblUhpRLWnnZLMbmFYvfJDUBFVHUvnQYIC7fu03GAZb8 XPdxwT7PcxI2dYJ5IF+Ju5hls4LKaUQ= X-Google-Smtp-Source: APiQypJFXk9gJRCaS1sCnJg8pvQAN+ISrjzIT/4lSPY+jzWUey4lRIH6oYXukyISaA0f9tCc6ZOyQw== X-Received: by 2002:a63:5fd0:: with SMTP id t199mr9124874pgb.207.1586612726925; Sat, 11 Apr 2020 06:45:26 -0700 (PDT) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id c4sm3899687pgg.17.2020.04.11.06.45.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Apr 2020 06:45:26 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Apr 2020 21:44:04 +0800 Message-Id: <1586612703-6862-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1586612703-6862-1-git-send-email-mypopydev@gmail.com> References: <1586612703-6862-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH v2 2/7] lavutil: add dolby vision related header 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: vacinfang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: vacinfang add dolby vision related header Signed-off-by: vacinfang --- libavutil/Makefile | 1 + libavutil/dolby_vision_meta.h | 58 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 libavutil/dolby_vision_meta.h diff --git a/libavutil/Makefile b/libavutil/Makefile index 8feb029..9204925 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -23,6 +23,7 @@ HEADERS = adler32.h \ des.h \ dict.h \ display.h \ + dolby_vision_meta.h \ downmix_info.h \ encryption_info.h \ error.h \ diff --git a/libavutil/dolby_vision_meta.h b/libavutil/dolby_vision_meta.h new file mode 100644 index 0000000..3fc2cad --- /dev/null +++ b/libavutil/dolby_vision_meta.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020 Vacing Fang + * + * 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 + */ + +/** + * @file + * dolby vison configuration + */ + + +#ifndef AVUTIL_DOLBY_VISION_META_H +#define AVUTIL_DOLBY_VISION_META_H + +#include + +/* + * dolby vison configuration + * ref: dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2 + dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2 + * @code + * uint8_t dv_version_major, the major version number that the stream complies with + * uint8_t dv_version_minor, the minor version number that the stream complies with + * uint8_t dv_profile, the Dolby Vision profile + * uint8_t dv_level, the Dolby Vision level + * uint8_t rpu_present_flag + * uint8_t el_present_flag + * uint8_t bl_present_flag + * uint8_t dv_bl_signal_compatibility_id + * @endcode + */ +typedef struct { + uint8_t dv_version_major; + uint8_t dv_version_minor; + uint8_t dv_profile; + uint8_t dv_level; + uint8_t rpu_present_flag; + uint8_t el_present_flag; + uint8_t bl_present_flag; + uint8_t dv_bl_signal_compatibility_id; +} AVDOVIDecoderConfigurationRecord; + +#endif /* AVUTIL_DOLBY_VISION_META_H */