From patchwork Sat Jun 11 16:45:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: quietvoid X-Patchwork-Id: 36161 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6914:b0:82:6b11:2509 with SMTP id q20csp402741pzj; Sat, 11 Jun 2022 09:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo/HI9Js+rwEGuGWCgZV0H7QKV2hpzZuyhlQjtlqE0ZXIOW5vaw6H/cwqdDKGk/1RNtdKz X-Received: by 2002:a17:907:3ea0:b0:6ff:7d7a:480d with SMTP id hs32-20020a1709073ea000b006ff7d7a480dmr45899868ejc.750.1654965958697; Sat, 11 Jun 2022 09:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654965958; cv=none; d=google.com; s=arc-20160816; b=ok4ksg/FrAbkXtrMORYkMQxlY7pgaqRV11NNYvEtd0t+xBMC1GrUVzU45VujFkBa1m iMod0OKXgR64jKCJ26KeAPqDS81HDLG0uTdhdDhpI/L3Lo2IMXgvHwOk6snpzQ3NxpZQ 4ki5eZoOT5T8BqdgUoYhgxM2Q7sM5ukiq7En/o7/PCn1OFXlfz6CvQK/8yIjmFF3i7c9 J4Oi9//a8EXOL2Gvd2OMYDwKcSKJKBdqDtEGPbSGeJKdz7QoEF2ycrndyWbdzCuaJmJv ZD4LSWQBf5uzkFoeyV1kEWez7C0fRW/ntD0BFisj28Cm5ZCF3t/wIuk68xnbBui6LOSr ejPw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=y99+Gu8RQNeFkieoapfPQ2FV3WzbtFevTMrs+q5y3/E=; b=VAWAhG9Jnem5wlzNozNh9ZxJzDD6xMqL3dY1jkEWZJgAIIvENeGN6aR3CEULsDm28e HDsfRI6QpCYYb/SDsqeAGoQOANSQ+1Wg0jhXpfG5Ws/VguhbYsFO2QZc/3pKKjiNmPcs of5vI8+ETOx4vDOQE17JunRNSdz50W6K9vzl1XS52NwqwRmsqDCwj2l81RgmkSsSYSZn Z0KOLcKkZLvZBVS2knEkVVh3JCc3BxIuJD8/xRL7EyFgAvygg98paY5E58zAsSSsOtnc b+sGzwQ57hakOhWtw5ZIKNUFt6n+7QqE/PYUbjisrM2dZgp1av43NMDPjppGfjIu3qH3 rhfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=dm94PW2B; 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 di11-20020a170906730b00b00712163df510si2364829ejc.236.2022.06.11.09.45.58; Sat, 11 Jun 2022 09:45:58 -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=20210112 header.b=dm94PW2B; 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 8FD8B68B4BC; Sat, 11 Jun 2022 19:45:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3098F68B366 for ; Sat, 11 Jun 2022 19:45:39 +0300 (EEST) Received: by mail-qk1-f170.google.com with SMTP id c144so1302187qkg.11 for ; Sat, 11 Jun 2022 09:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RuUAmABfGmyjVkFfj2f4EUotBnPLNRZVlPydc3haW4w=; b=dm94PW2BIFon45LqaTYCGLl9mb04mp5oYQFft3QX5nErcMBQO8azTm2SjyeYhbQVIg S6+PgIomM/6jpB3JKyrCvxparM+blYE+rKpK6fiSGBH/zVsnyLW2UjT6QCWUczgEVeT9 S0+peFegMkbY/8zPRogU4lBkZ9sl806ubWxlSjyOK2LMtOgKQ4f8L4nClBxHz7Wz4vn2 i9EPVi2wx5mB4S6iDKKMcVc8U8fP9iXVrTXhM8fpq7vPjsbMj7MQE7CsAq+6VFlrdXNw BijC+WFHqm4vNyVnKBiGTGjj5T40lL+HWAVz8h5u+0lkM9zt4upU34J8f3GwVpEZwQbX mp1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RuUAmABfGmyjVkFfj2f4EUotBnPLNRZVlPydc3haW4w=; b=4QWXRM3IOATkDCFE41nmgvRXkYr22mLjDH/QqDn2jYzzSwFd+7P9FRlyBtV7xYwaCc 4ja50G+DATUAWQo7BBhf0ungFO8Io/CZrRtHWT1EEYAJ3x6RR6m+w+6RhnvpIoeuuqxz 2fl1PxtrCOD/PmV1Blvx65jONPL3yDG0HpDTT+THGhrufY0bvZs3S5ghlqvcNCbvNxvL 5dEIDhRF4EYmQ/DjI3LrmoSwCrL56fho3lu3+dnKsixDWgsCKLyV86WC5G9EJuHd3T0M vl9VboKxCPJJq92TYEHBQtnvSwubPW/RQAnDerqGmuZVeie3k2N5QzB2cs+wqfQA37+l rULA== X-Gm-Message-State: AOAM530pBqiZ4mHueVBykdafv+siOOLMAXKDdPrLz6cv2DpCE8/PGIjr 04YPztx+n0emxu5GqYH95xRUkjffOG1DyQ== X-Received: by 2002:a05:620a:850:b0:6a6:a496:872 with SMTP id u16-20020a05620a085000b006a6a4960872mr28322223qku.540.1654965937593; Sat, 11 Jun 2022 09:45:37 -0700 (PDT) Received: from nark.. ([89.36.78.10]) by smtp.gmail.com with ESMTPSA id br8-20020a05620a460800b006a6af4b40b1sm2323544qkb.73.2022.06.11.09.45.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 09:45:36 -0700 (PDT) From: quietvoid X-Google-Original-From: quietvoid To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jun 2022 12:45:29 -0400 Message-Id: <20220611164530.157-2-tcChlisop0@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220611164530.157-1-tcChlisop0@gmail.com> References: <20220611164530.157-1-tcChlisop0@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] libavutil/dovi_meta: Add nlq_pivots to AVDOVIDataMapping 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: quietvoid Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: /fCqZQKAv/Ak The NLQ pivots are not documented but should be present in the header for profile 7 RPU format. It has been verified using Dolby's verification toolkit. Also implemented the parsing in libavcodec/dovi_rpu.c. And added the info to ffprobe and showinfo. --- fftools/ffprobe.c | 4 ++++ libavcodec/dovi_rpu.c | 7 +++++++ libavfilter/vf_showinfo.c | 8 ++++++++ libavutil/dovi_meta.h | 1 + 4 files changed, 20 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index c44297c1fa..63eb9b32ae 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -1934,6 +1934,10 @@ static void print_dovi_metadata(WriterContext *w, const AVDOVIMetadata *dovi) break; } + if (mapping->nlq_method_idc != AV_DOVI_NLQ_NONE) { + print_list_fmt("nlq_pivots", "%"PRIu16, 2, mapping->nlq_pivots[idx]); + } + print_int("num_x_partitions", mapping->num_x_partitions); print_int("num_y_partitions", mapping->num_y_partitions); diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c index a87562c8a3..17837eb845 100644 --- a/libavcodec/dovi_rpu.c +++ b/libavcodec/dovi_rpu.c @@ -315,7 +315,14 @@ int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size) } if (use_nlq) { + int nlq_pivot = 0; vdr->mapping.nlq_method_idc = get_bits(gb, 3); + + for (int i = 0; i < 2; i++) { + nlq_pivot += get_bits(gb, hdr->bl_bit_depth); + vdr->mapping.nlq_pivots[i] = av_clip_uint16(nlq_pivot); + } + /** * The patent mentions another legal value, NLQ_MU_LAW, but it's * not documented anywhere how to parse or apply that type of NLQ. diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d39310ef..2148d202b1 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -543,6 +543,14 @@ static void dump_dovi_metadata(AVFilterContext *ctx, const AVFrameSideData *sd) av_log(ctx, AV_LOG_INFO, "mapping_color_space=%"PRIu8"; ", mapping->mapping_color_space); av_log(ctx, AV_LOG_INFO, "mapping_chroma_format_idc=%"PRIu8"; ", mapping->mapping_chroma_format_idc); av_log(ctx, AV_LOG_INFO, "nlq_method_idc=%d; ", (int) mapping->nlq_method_idc); + + if (mapping->nlq_method_idc != AV_DOVI_NLQ_NONE) { + av_log(ctx, AV_LOG_INFO, "nlq_pivots={ "); + for (int i = 0; i < 2; i++) + av_log(ctx, AV_LOG_INFO, "%"PRIu16" ", mapping->nlq_pivots[i]); + av_log(ctx, AV_LOG_INFO, "}; "); + } + av_log(ctx, AV_LOG_INFO, "num_x_partitions=%"PRIu32"; ", mapping->num_x_partitions); av_log(ctx, AV_LOG_INFO, "num_y_partitions=%"PRIu32"\n", mapping->num_y_partitions); diff --git a/libavutil/dovi_meta.h b/libavutil/dovi_meta.h index 3d11e02bff..c7c5ba721f 100644 --- a/libavutil/dovi_meta.h +++ b/libavutil/dovi_meta.h @@ -144,6 +144,7 @@ typedef struct AVDOVIDataMapping { /* Non-linear inverse quantization */ enum AVDOVINLQMethod nlq_method_idc; + uint16_t nlq_pivots[2]; /* nlq_pred_pivot_value */ uint32_t num_x_partitions; uint32_t num_y_partitions; AVDOVINLQParams nlq[3]; /* per component */ From patchwork Sat Jun 11 16:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: quietvoid X-Patchwork-Id: 36162 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6914:b0:82:6b11:2509 with SMTP id q20csp402798pzj; Sat, 11 Jun 2022 09:46:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3la6+kSXYmUKmveaiEUT2Bn9khKm0hHJWsN35UQsKiKxxN9hNQ5kP71tegRHKeUhK0And X-Received: by 2002:a50:ee9a:0:b0:42d:cdf4:9501 with SMTP id f26-20020a50ee9a000000b0042dcdf49501mr57320062edr.226.1654965967020; Sat, 11 Jun 2022 09:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654965967; cv=none; d=google.com; s=arc-20160816; b=ayKdXpjjpZ1Bte7VRt6ORnt1FgRNpY3EIudFU1PAsKVtQZvJGEwAi7PlNE9IDhTytp WSkLF65mZudUhCp1nM+kHPfq0mlWR0PUz/MvCunr4+HfuPJ9s1h0WARk//KRgvISZGhy UtLw09ZgnHKtU+cWAGROZCF/LTZpNRPVinDwaGoUSsnNrQDrVLhYlZ58SIrUX49k2hU9 tzY+qRA2z7DhUeQnEExlewXNdPD4+ugLp5JwMERBk94MPFvmz8z9LzaEVc9HgL1YX92L Cb7ixV8i4SgcbzzUbGZfe7PWlPhjbRFBEVfFFv5SIri1vAsnK4J1r/w7nA+jO6+df924 dNvA== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=0hgjK29VdViYZ2cUQBB4T6Zl1aqguAMYKQRmfd9ePws=; b=xFXzwFPczeujjej4gNA0RwN27vd4USUHC7S4+QbpWwP/Kz/xLahJdjBNRZkF2AUBFV T83LTWfGMmIf74CNusazxyTleUqUguqyqzMnmHZjjrgnH+wrlHMOL/34tA/ZqMr4kRa5 izjQ5eavzQCTVZU/p1laOba7RlDw9lsn96niHTP7lC/nTDPAhY1GxkJBaQW4LWf+4dxs dgIs30O57MkO4Bt/qHQfSyHSBd/ItpDJA3tefs7V/fl1jsO4F4mVv/SMT9A3y1S9g1i0 B24aJqRdgDKzbNQ7lO7347PqzFPbhMbKTz0fAEcULBMS40uF95FJbUlil5jA46hDQQra QeSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=T2UpgPrj; 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 u19-20020aa7d993000000b0042ab868c6fesi2593082eds.74.2022.06.11.09.46.06; Sat, 11 Jun 2022 09:46:07 -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=20210112 header.b=T2UpgPrj; 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 BF49368B515; Sat, 11 Jun 2022 19:45:47 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2F0AA68B406 for ; Sat, 11 Jun 2022 19:45:41 +0300 (EEST) Received: by mail-qk1-f169.google.com with SMTP id c144so1302214qkg.11 for ; Sat, 11 Jun 2022 09:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F7wjGXQ8FRCfPNaHB8yXsAC9oZ9LcrtiGrJF3pt3a/E=; b=T2UpgPrjh8p4KGCmhkd7N6/DeryOHmwQ3g1xZO4HrdjRnD0T/N7O9Ceb/L3AIvxPcT u3v8++MmX074seCvqGAMSTnZX7KmW4UtOt6bmccHKWWw+Yj3lhsJFqYAQrAqEKB8UoO5 nYEkXLfDDmbeilCHNwO/5mK6AqS5wI6srGBAgkgsS6AnIhC/NejgySPV0UcEnRbchKQp Tgc05ftPSqoD3D/lo6xHajcRC+ZgVMV0wqf4vMhzeemaPj4L0dThX1GeXVPJGqNN2LRn 6rzoar6d+A3dR/P2oh8s9AnA1heHNM7y4WztzOBOUKA0PV5v02NGbBps1JMMB3Fh09gt T/fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=F7wjGXQ8FRCfPNaHB8yXsAC9oZ9LcrtiGrJF3pt3a/E=; b=bEQ+kC14r3mWpFxHITIsBxavs7BAg3MPGfCET4+zl7BUzhP+j6+vnmXDwFtD9K1mPk iy73zVqjwv4B0qHs/IhjSszbhP+LIRd5DIMqUqN+yuARrq+oNDPD5SoDLXkzj0lGsRTU zbVoto0Y7PzDhaB8bupGfvSLMVdDhGC+45ZSmzV0RYbdCevVj23KDJJWI8YZQ36jWJYq K954Y/LfNkRDi/IlaQHYMrqHwjlUm5w5nlptVPQEWmL3ZTmip7HnBFbeViPVUrbKymVq kerh6CLNa2YS6eLaflikPCEyFE7slzM41os5Xq8GLj4AW24Lgo9u+zWozY+pRs6KI2TU CQxg== X-Gm-Message-State: AOAM530FBHsmF6bz+bigs7qX7LXC/Tz2rURcEt/NfBsNYEpBWShy1g7L +wWe/ARff/0rXabMgG9I2S6bDqhi2FwHvw== X-Received: by 2002:a05:620a:24d3:b0:6a7:51b1:d98e with SMTP id m19-20020a05620a24d300b006a751b1d98emr5096185qkn.580.1654965939507; Sat, 11 Jun 2022 09:45:39 -0700 (PDT) Received: from nark.. ([89.36.78.10]) by smtp.gmail.com with ESMTPSA id br8-20020a05620a460800b006a6af4b40b1sm2323544qkb.73.2022.06.11.09.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 09:45:38 -0700 (PDT) From: quietvoid X-Google-Original-From: quietvoid To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jun 2022 12:45:30 -0400 Message-Id: <20220611164530.157-3-tcChlisop0@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220611164530.157-1-tcChlisop0@gmail.com> References: <20220611164530.157-1-tcChlisop0@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] fate: Add test to parse profile 7 DOVI RPU 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: quietvoid Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: uj+BAaN49fhn --- tests/fate/hevc.mak | 3 + tests/ref/fate/hevc-dovi-profile7-rpu | 296 ++++++++++++++++++++++++++ 2 files changed, 299 insertions(+) create mode 100644 tests/ref/fate/hevc-dovi-profile7-rpu diff --git a/tests/fate/hevc.mak b/tests/fate/hevc.mak index 2f16e3a29f..549436cb39 100644 --- a/tests/fate/hevc.mak +++ b/tests/fate/hevc.mak @@ -254,6 +254,9 @@ FATE_HEVC-$(call FRAMECRC, HEVC, HEVC) += fate-hevc-cabac-tudepth fate-hevc-small422chroma: CMD = framecrc -flags unaligned -i $(TARGET_SAMPLES)/hevc/food.hevc -pix_fmt yuv422p10le -vf scale FATE_HEVC-$(call FRAMECRC, HEVC, HEVC, HEVC_PARSER SCALE_FILTER) += fate-hevc-small422chroma +fate-hevc-dovi-profile7-rpu: CMD = probeframes -show_entries frame=side_data_list -select_streams 1 -read_intervals "%+\#2" $(TARGET_SAMPLES)/mov/dovi-p7.mp4 +FATE_HEVC_FFPROBE-$(call DEMDEC, MOV, HEVC) += fate-hevc-dovi-profile7-rpu + FATE_SAMPLES_AVCONV += $(FATE_HEVC-yes) FATE_SAMPLES_FFPROBE += $(FATE_HEVC_FFPROBE-yes) diff --git a/tests/ref/fate/hevc-dovi-profile7-rpu b/tests/ref/fate/hevc-dovi-profile7-rpu new file mode 100644 index 0000000000..7fa5d20f01 --- /dev/null +++ b/tests/ref/fate/hevc-dovi-profile7-rpu @@ -0,0 +1,296 @@ +[FRAME] +[SIDE_DATA] +side_data_type=Mastering display metadata +red_x=34000/50000 +red_y=16000/50000 +green_x=13250/50000 +green_y=34500/50000 +blue_x=7500/50000 +blue_y=3000/50000 +white_point_x=15635/50000 +white_point_y=16450/50000 +min_luminance=1/10000 +max_luminance=100000000/10000 +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Content light level metadata +max_content=1000 +max_average=400 +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Dolby Vision RPU Data +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Dolby Vision Metadata +rpu_type=2 +rpu_format=18 +vdr_rpu_profile=1 +vdr_rpu_level=0 +chroma_resampling_explicit_filter_flag=0 +coef_data_type=0 +coef_log2_denom=23 +vdr_rpu_normalized_idc=1 +bl_video_full_range_flag=0 +bl_bit_depth=10 +el_bit_depth=10 +vdr_bit_depth=12 +spatial_resampling_filter_flag=0 +el_spatial_resampling_filter_flag=1 +disable_residual_flag=0 +vdr_rpu_id=0 +mapping_color_space=0 +mapping_chroma_format_idc=0 +nlq_method_idc=0 +nlq_method_idc_name=linear_dz +nlq_pivots=0 1023 +num_x_partitions=1 +num_y_partitions=1 +[COMPONENT] +pivots=0 128 256 384 512 640 768 896 1023 +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +[COMPONENT] +pivots=0 1023 +[SECTION] +mapping_idc=1 +mapping_idc_name=mmr +mmr_order=3 +mmr_constant=448998 +mmr_coef=-1262056 8122466 -1703266 1622123 808554 -829469 -13459 801251 694657 3697830 -1819391 -772917 -654425 78034 -181321 -324811 -2213356 -716030 761880 365184 2545494 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +[COMPONENT] +pivots=0 1023 +[SECTION] +mapping_idc=1 +mapping_idc_name=mmr +mmr_order=3 +mmr_constant=30364 +mmr_coef=-1369971 645159 9055254 -106426 2546351 -2246880 672220 1356576 1789054 -3311517 -1372035 -4554569 -548063 722319 57239 -2130348 3956345 1480062 -1696575 3919674 3414157 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +dm_metadata_id=0 +scene_refresh_flag=0 +ycc_to_rgb_matrix=9574/8192 0/8192 13802/8192 9574/8192 -1540/8192 -5348/8192 9574/8192 17610/8192 0/8192 +ycc_to_rgb_offset=16777216/268435456 134217728/268435456 134217728/268435456 +rgb_to_lms_matrix=7222/16384 8771/16384 390/16384 2654/16384 12430/16384 1300/16384 0/16384 422/16384 15962/16384 +signal_eotf=65535 +signal_eotf_param0=0 +signal_eotf_param1=0 +signal_eotf_param2=0 +signal_bit_depth=12 +signal_color_space=0 +signal_chroma_format=0 +signal_full_range_flag=1 +source_min_pq=7 +source_max_pq=3079 +source_diagonal=42 +[/SIDE_DATA] +[/FRAME] +[FRAME] +[SIDE_DATA] +side_data_type=Mastering display metadata +red_x=34000/50000 +red_y=16000/50000 +green_x=13250/50000 +green_y=34500/50000 +blue_x=7500/50000 +blue_y=3000/50000 +white_point_x=15635/50000 +white_point_y=16450/50000 +min_luminance=1/10000 +max_luminance=100000000/10000 +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Content light level metadata +max_content=1000 +max_average=400 +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Dolby Vision RPU Data +[/SIDE_DATA] +[SIDE_DATA] +side_data_type=Dolby Vision Metadata +rpu_type=2 +rpu_format=18 +vdr_rpu_profile=1 +vdr_rpu_level=0 +chroma_resampling_explicit_filter_flag=0 +coef_data_type=0 +coef_log2_denom=23 +vdr_rpu_normalized_idc=1 +bl_video_full_range_flag=0 +bl_bit_depth=10 +el_bit_depth=10 +vdr_bit_depth=12 +spatial_resampling_filter_flag=0 +el_spatial_resampling_filter_flag=1 +disable_residual_flag=0 +vdr_rpu_id=0 +mapping_color_space=0 +mapping_chroma_format_idc=0 +nlq_method_idc=0 +nlq_method_idc_name=linear_dz +nlq_pivots=0 1023 +num_x_partitions=1 +num_y_partitions=1 +[COMPONENT] +pivots=0 128 256 384 512 640 768 896 1023 +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +[SECTION] +mapping_idc=0 +mapping_idc_name=polynomial +poly_order=1 +poly_coef=0 8388608 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +[COMPONENT] +pivots=0 1023 +[SECTION] +mapping_idc=1 +mapping_idc_name=mmr +mmr_order=3 +mmr_constant=448998 +mmr_coef=-1262056 8122466 -1703266 1622123 808554 -829469 -13459 801251 694657 3697830 -1819391 -772917 -654425 78034 -181321 -324811 -2213356 -716030 761880 365184 2545494 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +[COMPONENT] +pivots=0 1023 +[SECTION] +mapping_idc=1 +mapping_idc_name=mmr +mmr_order=3 +mmr_constant=30364 +mmr_coef=-1369971 645159 9055254 -106426 2546351 -2246880 672220 1356576 1789054 -3311517 -1372035 -4554569 -548063 722319 57239 -2130348 3956345 1480062 -1696575 3919674 3414157 +[/SECTION] +nlq_offset=512 +vdr_in_max=1048576 +linear_deadzone_slope=2048 +linear_deadzone_threshold=0 +[/COMPONENT] +dm_metadata_id=0 +scene_refresh_flag=0 +ycc_to_rgb_matrix=9574/8192 0/8192 13802/8192 9574/8192 -1540/8192 -5348/8192 9574/8192 17610/8192 0/8192 +ycc_to_rgb_offset=16777216/268435456 134217728/268435456 134217728/268435456 +rgb_to_lms_matrix=7222/16384 8771/16384 390/16384 2654/16384 12430/16384 1300/16384 0/16384 422/16384 15962/16384 +signal_eotf=65535 +signal_eotf_param0=0 +signal_eotf_param1=0 +signal_eotf_param2=0 +signal_bit_depth=12 +signal_color_space=0 +signal_chroma_format=0 +signal_full_range_flag=1 +source_min_pq=7 +source_max_pq=3079 +source_diagonal=42 +[/SIDE_DATA] +[/FRAME]