From patchwork Fri Mar 29 00:33:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jan_Ekstr=C3=B6m?= X-Patchwork-Id: 47630 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp1699533pzb; Thu, 28 Mar 2024 17:34:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXIK4vGrXn60b9oA3XaTmDpQNcye/5yqVuq2+PAPfA0u3dkg1C+X1RblDPhQEhnlVJqzf7lOw9no+CMeGDAn9DehC+TzzR6A46aig== X-Google-Smtp-Source: AGHT+IEdfF8Su1bcAdiJQmdarZ2Gy9TRaxwtvOKzwFH5HqGvDqoq6yCWqYdEi4EpaSPvTr4/M7D2 X-Received: by 2002:a17:907:96a1:b0:a4d:f27c:bb7 with SMTP id hd33-20020a17090796a100b00a4df27c0bb7mr546738ejc.3.1711672453869; Thu, 28 Mar 2024 17:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711672453; cv=none; d=google.com; s=arc-20160816; b=jGZ0hLsMxFTP8Y+YHBUP+YORUYOtJERtGqIMOl0brzcsQvG1Win0xmDzCcircVNr+o ZEFTwQn8TnAIfyQfgvZYA+CRRI0F/CM2Rwsj7hvfFNQXPrCTw1dWu08rZhy3+Zqtf31C o5FjOi5GlK4ewZS3HeykM6fjg0JLhnGN2gizVDv+BOCHZ7YNIK23b7alqnxdR5X7lvys pH7DwV2lqhHXIHo4/2zbrmqBJWBXFpVeFL/uYnjRtPfKkmvVVETNcAnamZVsaDPuxGB2 BPs5460x1TaxZtZwh1wNDXQODstTf+0oGqREZPAT3pLPbgYLgpYgbNaHhE7/WPsNEAZl LcSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding: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=1jz7D3hOaN4bDQIz2aVqDv0ci5GM2ae5SjWFW4JU7Xs=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=zOXbGC4T84zkmCVRfpShQ5d9r6dZ081na9T1/nSPi37FER/VBZADfw8x/Z3GhHBFtE Nvwz6gJdIDhN3fXZro+iEMLHvCHX1ckZqDrdyWiN7Zh1ZqmHH6SHkLtlM7Oq2KFAENNY eoZksEE/TeL9yuBk6HjAsz3FK1Hz24gxcn83EjQRAEo9s/5mLmSz4Qd1w5NUbt1YsGRu INDnkTa+VjRMs0h66pqWJpKHkSC/J0EqHRjIkmPsnHx5GwHRMEmW5Z7fa40jNRRMgybB qbiky7lsFRspQIGISFEm6O/DKX2KH+RO8dUl2kd2PR2lCQAk1PGsIGhjlXAJslnADmx9 oALg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=lZURqB2k; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sd13-20020a170906ce2d00b00a4e2871fc8bsi715806ejb.817.2024.03.28.17.34.13; Thu, 28 Mar 2024 17:34:13 -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=@gmail.com header.s=20230601 header.b=lZURqB2k; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BA87F68D752; Fri, 29 Mar 2024 02:33:59 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EDDF068D741 for ; Fri, 29 Mar 2024 02:33:50 +0200 (EET) Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-515c198e835so1708115e87.3 for ; Thu, 28 Mar 2024 17:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711672430; x=1712277230; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/36qN0h8vcCL8rTQj6Xhrj62QaNAG3FOYvDVa0zDDT0=; b=lZURqB2k0udO1O4C6Vxm8d27fDM3vBvmKIVQNR8mlv+hN7hl3JF5Z4I1QsWgV8Z9Ky F37WbXq74FFAXlVtIip0RGeeRTNhxi2H+r9YT1VJxfC57lEydg+9CYGthkVHickXwtuR cfeG8NK3u1r+eXnbX+klPGGnKsxV4/7f/uBhIew6vZ+pBIW5SS3Iq8XEA8Qy66Y7bj+6 Y+u33v7d7aB6i9wZGxl9e8grXJFs5mb6UKbXufMDV6+tgl0jlqcSqN16D4JpqoQ/iMn1 yRSo3axqzeDtGnH0+3+3xfQYXVi+d0xFd11g1gE0O4MmRZ4GDdAOYyIO8cuaR4oDOf3d wOBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711672430; x=1712277230; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/36qN0h8vcCL8rTQj6Xhrj62QaNAG3FOYvDVa0zDDT0=; b=V8R++tXciHYO1orF4skuc3BhqWxTq51dHJ24CnoWj78NVa0OYGOB1CAE1LaPqcKYRf UcH1XZP0H4XoUkt7c+GP7pHSYbSPVBNJo1rOpuJgFBzbbmdDz8aQstkq/G5uNlqq7h38 X6UFvo2cpEL9ndHvnf5PsvsTfNq9n8IuQquwOIMpbOFraQtKl5/NnUAEj2Q3+GKd/Ixr 4+xsuNaNWwZnlK6DyaAc6xbfoLezgiPIRWAKxbWYY0PoC+os7pEdfEggPSvsN5rpjbed EEJJJeJ2mgC96FzRbDXzbqXMsJzec7FTQlySvPAbmTtH34VVkDcW+0wWBXQ7ucWoFR9B H1mA== X-Gm-Message-State: AOJu0YyS9+XbTTotOE6CUBaTzWh3OBTNLpCFRMeOBFl/geHSLsAI3qlT 0tJQE/NTfxnXZg7xP93qCf7cQElSltr/5ZCIR2qcoW1xDRMK+ZhFGbQBH2n/ X-Received: by 2002:a05:6512:1d2:b0:515:cedb:a512 with SMTP id f18-20020a05651201d200b00515cedba512mr358854lfp.58.1711672429471; Thu, 28 Mar 2024 17:33:49 -0700 (PDT) Received: from localhost.localdomain (91-153-198-187.elisa-laajakaista.fi. [91.153.198.187]) by smtp.gmail.com with ESMTPSA id h20-20020a0565123c9400b005132bdbcbc5sm399210lfv.135.2024.03.28.17.33.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 17:33:49 -0700 (PDT) From: =?utf-8?q?Jan_Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Mar 2024 02:33:34 +0200 Message-ID: <20240329003343.1099137-1-jeebjp@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/4] avutil/pix{desc, fmt}: add new matrix coefficients from H.273 v3 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: JV/bN77odeR0 * SMPTE ST 2128 IPT-C2 defines the coefficients utilized in DoVi Profile 5. Profile 5 can thus now be represented in VUI as {AVCOL_RANGE_JPEG, AVCOL_PRI_BT2020, AVCOL_TRC_SMPTE2084, AVCOL_SPC_IPT_C2, AVCHROMA_LOC_LEFT} (although other chroma sample locations are allowed). AVCOL_TRC_SMPTE2084 should in this case be interpreted as 'PQ with reshaping'. * YCgCo-Re and YCgCo-Ro define the bitexact YCgCo-R, where the number of bits added to a source RGB bit depth is 2 (i.e., even) and 1 (i.e., odd), respectively. --- doc/APIchanges | 4 ++++ libavutil/pixdesc.c | 3 +++ libavutil/pixfmt.h | 3 +++ libavutil/version.h | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index aa102b4925..296d87d8fb 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,10 @@ The last version increases of all libraries were on 2024-03-07 API changes, most recent first: +2024-03-27 - xxxxxxxxxx - lavu 59.11.100 - pixfmt.h + Add AVCOL_SPC_IPT_C2, AVCOL_SPC_YCGCO_RE and AVCOL_SPC_YCGCO_RO + to map new matrix coefficients defined by H.273 v3. + 2024-03-27 - xxxxxxxxxx - lavu 59.10.100 - frame.h Add AVSideDataDescriptor, enum AVSideDataProps, and av_frame_side_data_desc(). diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 9c708520b1..1c0bcf2232 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2854,6 +2854,9 @@ static const char * const color_space_names[] = { [AVCOL_SPC_CHROMA_DERIVED_NCL] = "chroma-derived-nc", [AVCOL_SPC_CHROMA_DERIVED_CL] = "chroma-derived-c", [AVCOL_SPC_ICTCP] = "ictcp", + [AVCOL_SPC_IPT_C2] = "ipt-c2", + [AVCOL_SPC_YCGCO_RE] = "ycgco-re", + [AVCOL_SPC_YCGCO_RO] = "ycgco-ro", }; static const char * const chroma_location_names[] = { diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index 4aa20e4e58..430118d3e1 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -623,6 +623,9 @@ enum AVColorSpace { AVCOL_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system AVCOL_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system AVCOL_SPC_ICTCP = 14, ///< ITU-R BT.2100-0, ICtCp + AVCOL_SPC_IPT_C2 = 15, ///< SMPTE ST 2128 + AVCOL_SPC_YCGCO_RE = 16, ///< YCgCo-R, even addition of bits + AVCOL_SPC_YCGCO_RO = 17, ///< YCgCo-R, odd addition of bits AVCOL_SPC_NB ///< Not part of ABI }; diff --git a/libavutil/version.h b/libavutil/version.h index 8774ed4d1a..d0cc34f43a 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -79,7 +79,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 59 -#define LIBAVUTIL_VERSION_MINOR 10 +#define LIBAVUTIL_VERSION_MINOR 11 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \