From patchwork Sun Apr 19 01:07:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 19083 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 84F804493DB for ; Sun, 19 Apr 2020 04:16:49 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6E78B68B790; Sun, 19 Apr 2020 04:16:49 +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 B1CC768B6D7 for ; Sun, 19 Apr 2020 04:16:47 +0300 (EEST) Received: by mail-pg1-f193.google.com with SMTP id o185so2690732pgo.3 for ; Sat, 18 Apr 2020 18:16:47 -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=fbMDl3WUL6WATGgniP20iWO8Hr/MRNAiVowPbOk/Fnw=; b=Dupl31m3+1FugYdZHFKibo409IlEcNn+ZSU+t+EKuFiskl+Bo8lUv9SoqAWE+mKQx6 gOKKm36dEvqrxrVYhy3dsaPZeJiDRJLt7X7Rmc0adPhw7LcUio6Lt3Cx4Av2iUTf9DPa 9Uj5AHcnXyqd1zkJsjGf+P0ZBzkVeYnmQ54JNwh5Nop4eNBjO2GRnwPDurg0IiEgt9pE fNzLAHzb4mVLjnYKlm6Ob9Pw6glidNtpiUq8yDtAcHrzuyMW1nsxSfwI7hcOgFMu43fR GYD0qudndQk5GOgl/AlprSmJUpp/COUbgjaBjGZkerOmvRdVTaNsh2nduZoZRCCoDWDr 4bWg== 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=fbMDl3WUL6WATGgniP20iWO8Hr/MRNAiVowPbOk/Fnw=; b=pYOCSPw1ZGc7lsXkiQ8/Mb6o9UOWUSO91vPxNWhHDYD0uSRv715m1o8P90gWdufdoN 2a6bfpXCKFCJf7r/QUj/gobdFwyOww+80QFSnIVxQtWmnQc/ETJp4/MnY2h+JmSYrj2b TZ3+JCyZONZwO2JCxxyIb7GXKU8w/WNRu2HHoB9VHK1FhHcuH+Din3iUbr/mCFKvCg3p 5X86S4LqfeWDuRxHyC453B60ZeYFOoeMqHZh085hgEMpsXYiDBIV5XvX4cb1ZSpHmzuT acRMqiGzbxGPCMqpFKWtDlz4fqlyUEurIaenONYN58qPDCHtv1BJVNwDQtvrIgWGPglQ 4mDg== X-Gm-Message-State: AGi0PuaPG072XGuQWFYourVVOhoyIRWu9A12uQVCoIunanDQMFhFpWIk itLA/2Ix5xn59SxkTRLWxGX/KY7ilHI= X-Google-Smtp-Source: APiQypKK8Evys2YpCIN/3gBs6webkH7UwBeey4JzSS1M6pn46kMFk+gdszXxC8dtEnRnFNETRjQPzA== X-Received: by 2002:a65:4548:: with SMTP id x8mr9978685pgr.223.1587258507791; Sat, 18 Apr 2020 18:08:27 -0700 (PDT) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id e11sm23498535pfl.65.2020.04.18.18.08.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Apr 2020 18:08:27 -0700 (PDT) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sun, 19 Apr 2020 09:07:44 +0800 Message-Id: <1587258489-17189-2-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 1/7] lavc: add a new sidedata type for DOVI 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: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao add a new sidedata type for DOVI. Signed-off-by: Jun Zhao --- libavcodec/avpacket.c | 1 + libavcodec/packet.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index ad020ee..1b53451 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -396,6 +396,7 @@ const char *av_packet_side_data_name(enum AVPacketSideDataType type) case AV_PKT_DATA_ENCRYPTION_INFO: return "Encryption info"; case AV_PKT_DATA_AFD: return "Active Format Description data"; case AV_PKT_DATA_ICC_PROFILE: return "ICC Profile"; + case AV_PKT_DATA_DOVI_CONF: return "DOVI configuration record"; } return NULL; } diff --git a/libavcodec/packet.h b/libavcodec/packet.h index e53abe6..41485f4 100644 --- a/libavcodec/packet.h +++ b/libavcodec/packet.h @@ -274,6 +274,15 @@ enum AVPacketSideDataType { AV_PKT_DATA_ICC_PROFILE, /** + * DOVI configuration + * ref: + * dolby-vision-bitstreams-within-the-iso-base-media-file-format-v2.1.2, section 2.2 + * dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2, section 3.3 + * Tags are stored in struct AVDOVIDecoderConfigurationRecord. + */ + AV_PKT_DATA_DOVI_CONF, + + /** * The number of side data types. * This is not part of the public API/ABI in the sense that it may * change when new side data types are added.