From patchwork Tue Jul 16 11:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 50559 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:40f5:b0:482:c625:d099 with SMTP id lb53csp205613vqb; Tue, 16 Jul 2024 04:24:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXnjCMk4527q1wtXcwdLd4A92Db98ciq4/oN3CdBAIRR5q9y3BeD1jPg0tyQGcQVmX8Qff9dbd9GDG7umF9SGa4qZ8Nu4Pnwf0Fxw== X-Google-Smtp-Source: AGHT+IHF+FdvtOYPRcqxfXUY7UcYSwq29TKE4oMgpczXBZcxR2cevsTxfyG+WOF4/tUrxlZFKcTc X-Received: by 2002:a05:651c:1254:b0:2ec:57c7:c740 with SMTP id 38308e7fff4ca-2eef41d72bbmr12368631fa.39.1721129076515; Tue, 16 Jul 2024 04:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721129076; cv=none; d=google.com; s=arc-20160816; b=u1bm/LdClJhhjqs9Gc4hRznRC6fp6eS2RwyP8oZOu5QMSt4y7H61+u5c1VEJJms6tb gbtvcuBUPryj75IFtVhJCu2VZTzoMFnWaphEfz545kuIVoEOfNVXkFOQ0FCYQXp+MJCs 1tYUWPJwLft4AJRvAPH8xKBCuQIqichEkWan4btjkzpBT9ypeYOl2L0u7VOXn+SQsyjY 8cTINXcWjCsApKT/2EImdS9riygcR/eY1fEVWs5O6Ah3KEpZ8P4vYgQ3E5WhCLsYgwpi wjTc+pxJAR9UUvR96Vlen9wQA4BuGsePlRyxeON3se9K9zvUwr9uLfWQRz1bzLXveERn /G6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=AJbRuKM/XywHTMrGJ+dAwrvm5QLiIDifp7vr6dVkQd4=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=ggjbQa0wc2Fia5hVy/f1xgfvsiKmEr6U6YPm5Oww8DB9ChETA0aMFG47AY6m/LtDbv XMErRuOKLX3/1NZTiaNiFBj9kHZoq8cppIAhLoO2xUk+XmFiCayvr+D213g8/3AVQf9g DUiTaJhYRc8xiWGOqvG/hdwMiKnfmPQU2xSw/9BK92+kVmPjvXd93A68JY4lxYXVBB1f rUdBRiglSltUcKohCFzsXLo8kUltSq/F7YtAb0DYLhE38TppbUWRDNVbPGXl5FZ1/yE7 +UPnO6rqWswXL2AKY5+xWKvwRUlJrX7N8c9CLsDa1Ohy2mgp+bz8vTF+E9E3/9WqIajq wYRw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=cASF6oAu; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 38308e7fff4ca-2eee17ad42esi18079931fa.176.2024.07.16.04.24.36; Tue, 16 Jul 2024 04:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=cASF6oAu; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6DD1C68D9F3; Tue, 16 Jul 2024 14:23:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A871B68D973 for ; Tue, 16 Jul 2024 14:23:47 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1721129026; bh=UZltaUdesu+f/xZ4clBZH6fOPftsPI2A12yEYAYV/nk=; h=From:To:Cc:Subject:Date:From; b=cASF6oAueRa/OOetN83q96PBm5h/w7GbN8HPC8ZYjYsMh7LIhRTVHlFeO2wWxFJbY mXg+05MdPEr1dPALouym2nGD0Y55oSwSluWsAH3ANN6NHl7LJ0eBafeOLuj3ogLGJ/ CvvHu6X5VJzsuGFeGL8xh7FjIPIQNEXqaTwEG6xc= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 504B240216; Tue, 16 Jul 2024 13:23:46 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Tue, 16 Jul 2024 13:23:13 +0200 Message-ID: <20240716112317.35745-1-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] avutil/dovi_meta: add dv_md_compression to cfg record X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Niklas Haas Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 4FTQ99AhwUjW From: Niklas Haas This field is used to signal the compression method in use. --- doc/APIchanges | 3 +++ libavutil/dovi_meta.h | 9 +++++++++ libavutil/version.h | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 5751216b24..80ab3012c3 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07 API changes, most recent first: +2024-07-16 - xxxxxxxxxx - lavu 59.29.100 - dovi_meta.h + Add AVDOVIDecoderConfigurationRecord.dv_md_compression. + 2024-07-xx - xxxxxxxxxx - lavf 61 - avformat.h Deprecate avformat_transfer_internal_stream_timing_info() and av_stream_get_codec_timebase() without replacement. diff --git a/libavutil/dovi_meta.h b/libavutil/dovi_meta.h index e168075a24..c942d0e133 100644 --- a/libavutil/dovi_meta.h +++ b/libavutil/dovi_meta.h @@ -46,6 +46,7 @@ * uint8_t el_present_flag * uint8_t bl_present_flag * uint8_t dv_bl_signal_compatibility_id + * uint8_t dv_md_compression, the compression method in use * @endcode * * @note The struct must be allocated with av_dovi_alloc() and @@ -60,8 +61,16 @@ typedef struct AVDOVIDecoderConfigurationRecord { uint8_t el_present_flag; uint8_t bl_present_flag; uint8_t dv_bl_signal_compatibility_id; + uint8_t dv_md_compression; } AVDOVIDecoderConfigurationRecord; +enum AVDOVICompression { + AV_DOVI_COMPRESSION_NONE = 0, + AV_DOVI_COMPRESSION_LIMITED = 1, + AV_DOVI_COMPRESSION_RESERVED = 2, + AV_DOVI_COMPRESSION_EXTENDED = 3, +}; + /** * Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its * fields to default values. diff --git a/libavutil/version.h b/libavutil/version.h index 814892a4d5..852eeef1d6 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 59 -#define LIBAVUTIL_VERSION_MINOR 28 +#define LIBAVUTIL_VERSION_MINOR 29 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \