From patchwork Sun Apr 19 01:07:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 19084 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 C7D7544AFD2 for ; Sun, 19 Apr 2020 04:35:17 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A1C8868B785; Sun, 19 Apr 2020 04:35:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CC619680951 for ; Sun, 19 Apr 2020 04:35:11 +0300 (EEST) Received: by mail-pf1-f196.google.com with SMTP id r20so3141444pfh.9 for ; Sat, 18 Apr 2020 18:35:11 -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=1dzywOX9z/brjwtycatwCM4ZWC+C4ZgzG/C4V9fXnTM=; b=Nz7SFq/R/bMB//EftJ7CQMyB8SFHmcM95tlt+/HlNdQ+0yA6CAtV0W94h1GXrKnYuM BAQK6ZZIuIaCK2BJkbfG0OC9/tPbdjC48t8OdMFEHYpMKTiqRZqDVL5bUuvDfOpkKm9v pe3QecUM7xAEjBVb2TaaLVlup8clhJ5v5qqL3E7oqkT3VPm7I/AkQ8bRDvth8iwqHJLy snYdhBw8TiWV2Dfhcj2H94jDBlIXFFeDAyxR3wY7ry4vRAH9EOWPlcF4kHPKJ3YTPpWD rrbJaCkt+9+tG9Bby4FNwbWogjy4Ld0CnfJuj/gEIhVGhg30H2yi9P5jC385Vsgh2bbX /Xjw== 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=1dzywOX9z/brjwtycatwCM4ZWC+C4ZgzG/C4V9fXnTM=; b=lvrFAJ8QV5MzeQJmHqcVUEUHJ2QYQwFurFAvAqdey2hwo8n1tEyFdLQ6J05Ibtmdde F1PhWAcTLNqgX+eqf6K7QpwzgjMnQ57usuKCdUQrbH9kxbcgQ48nmAuQMpVWiVrDF7wO dA5I8bj1mtnvEWS8acm5IAl8ANq1KwdRwSJcSelk6QbarGxPRSOD92U9ywEJfMHXJRMO j4cDAuZsYZa4D/fCv8temvCnyGt8HQabZySxRX6JReZ6OSijIipX7AjHDpMUr5m/2SDw 2WaIY8UGiIpno1tZHY5GXQJvHOPSSbOmPWVzXDzyKdvF3Tix1KkBWHlAKaZtWqyFX03w 0Z7Q== X-Gm-Message-State: AGi0PuZtuUbe9ASxc6l6vFHRAMjHBWEOvIKXOlfLaZ4qMtP7zaaFyTcI EOuk65hb928uGxxQ0tDxOQwcJPk+7Pg= X-Google-Smtp-Source: APiQypKAjr+pcV1J+/Tf8Awzw9zN4nbZLhVHJs6KFzAnTWBxjahLGdcCwvDpSolpVtIGbZX6wTO7FQ== X-Received: by 2002:a63:575f:: with SMTP id h31mr8808119pgm.200.1587258510982; Sat, 18 Apr 2020 18:08:30 -0700 (PDT) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id e11sm23498535pfl.65.2020.04.18.18.08.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Apr 2020 18:08:30 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sun, 19 Apr 2020 09:07:45 +0800 Message-Id: <1587258489-17189-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587258489-17189-1-git-send-email-mypopydev@gmail.com> References: <1587258489-17189-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH v4 2/7] lavutil: add DOVI 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: vacingfang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: vacingfang add DOVI related struct Signed-off-by: vacingfang --- libavutil/Makefile | 1 + libavutil/dovi_meta.h | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 libavutil/dovi_meta.h diff --git a/libavutil/Makefile b/libavutil/Makefile index 8feb029..1aac84c 100644 --- a/libavutil/Makefile +++ b/libavutil/Makefile @@ -23,6 +23,7 @@ HEADERS = adler32.h \ des.h \ dict.h \ display.h \ + dovi_meta.h \ downmix_info.h \ encryption_info.h \ error.h \ diff --git a/libavutil/dovi_meta.h b/libavutil/dovi_meta.h new file mode 100644 index 0000000..51c0a48 --- /dev/null +++ b/libavutil/dovi_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 + * DOVI configuration + */ + + +#ifndef AVUTIL_DOVI_META_H +#define AVUTIL_DOVI_META_H + +#include + +/* + * DOVI 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_DOVI_META_H */