From patchwork Fri Mar 15 11:58:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 47102 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:8c91:b0:1a3:31a3:7958 with SMTP id k17csp193932pzh; Fri, 15 Mar 2024 05:05:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUGTjo3+66zNSEI+XdTkwz1WVrdaWQ7aLN2kwr19I4JY1WXoiJB4NyHPZ7XgCkwnXB/6AEsMd6bMU/iI1khV3t+7eeQ8HDPRHYgzg== X-Google-Smtp-Source: AGHT+IGaWjiH1KfT9w3ses6bNgVofxwXN3VFFslA+XEgEaMLQ34QFJMHpnYujD3VRjMg0eV8hZep X-Received: by 2002:a17:906:fa8d:b0:a46:8799:bddf with SMTP id lt13-20020a170906fa8d00b00a468799bddfmr915478ejb.43.1710504340119; Fri, 15 Mar 2024 05:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710504340; cv=none; d=google.com; s=arc-20160816; b=UdxBe1OE7ky6+5H5KgN/gCzRGx3K3jyvD4+JUn65SZ6Lq5kwBsWD0f7Yv+OibWRuLo lNXjkccL+IxR0xy/Fy7tNFPs04Qdpiv809CaP0v0YSr2CfvtROEEECqtaWPNHqiAwnW4 rEQBouP5BCNC3TAk+YAdoF5AwrPrKwy5ituDlmdO4Z+c7u+EfKYzwS3yliSdOvjrpfyP 59SQLUOjaOSByCNvX/yOB6DyONaTi08DVSeBqZmn79z/ceIYfIOeu4yG5GCWYnw5qkjQ IpVCzKAueLEoppWI3LRF/37IP33cb5kx+Il0CgFT2tPKI5Z8OJT8pceTmR1lhvnp79a7 o1sw== 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=bsar5DbFR0tqLJpzHJvcUMGfALqb5mUSISxSjPojPFA=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=GH87I1T7lF4vpskFQotJjr0iathbncWns9IBjTKxovvjoUWlEgNMI79peCyORe3q1z lQYxoN60wTqIeEKp1nGRNL+HTcKmIZdXFG6Ur7irlFQT0lL84z4Wa732VfozsPQjnIwj UdbR49pgYnI0767xNet/GzqPNXMj6veI+KOtegYXnBSLaYSnM4CnqRGv9oc40haE0Iqj +sr1+JTgOMjlI0tWYnG/2GMPGrTCb1sqQxSO19q1MlXMBUtPJ2ycZ1mwiwIIN8YkIbEG jvj0mteZ13voKNHrVsthNm0EICAfl403bl5Kk19BcIiByVwnHuHuhaVRDcOgG3ruWeQ5 JqqA==; 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=JbjXj+sg; 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 oz40-20020a1709077da800b00a468c2be77fsi395848ejc.495.2024.03.15.05.05.29; Fri, 15 Mar 2024 05:05:40 -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=JbjXj+sg; 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 3B12868D191; Fri, 15 Mar 2024 14:04:57 +0200 (EET) 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 0639268CF9D for ; Fri, 15 Mar 2024 14:04:47 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1710504286; bh=1hWHoLtjopLZgAtevzyiDpkRiLac2qhRQQmOlM8l83M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JbjXj+sgH/tfZurioZE4cCmvqZl8J7ILU7OtfhVL8AwjeXRLcGPvhP3wkfWZkfZka PB5eaMddnWxULW89qfA7b61ucxTDyZvMe+iU23vRjzSQ/7xk78sPdMeuZo5iSO/BfC 2eL6EnKTVzzREUye5LCilteTn5qGywvzcW5jssWU= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id C3D854290F; Fri, 15 Mar 2024 13:04:46 +0100 (CET) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Fri, 15 Mar 2024 12:58:56 +0100 Message-ID: <20240315120442.73754-4-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240315120442.73754-1-ffmpeg@haasn.xyz> References: <20240315120442.73754-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 3/9] avcodec/libdav1d: initialize AFGS1 VSC metadata 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: BJLZJF7XYxWQ From: Niklas Haas Unused by AV1, but should still be set properly. --- libavcodec/libdav1d.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index 1aa2d1f3436..6251ea79ba8 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -628,6 +628,10 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) fgp->codec.aom.grain_scale_shift = p->frame_hdr->film_grain.data.grain_scale_shift; fgp->codec.aom.overlap_flag = p->frame_hdr->film_grain.data.overlap_flag; fgp->codec.aom.limit_output_range = p->frame_hdr->film_grain.data.clip_to_restricted_range; + fgp->codec.aom.color_range = AVCOL_RANGE_UNSPECIFIED; + fgp->codec.aom.color_primaries = AVCOL_PRI_UNSPECIFIED; + fgp->codec.aom.color_trc = AVCOL_TRC_UNSPECIFIED; + fgp->codec.aom.color_space = AVCOL_SPC_UNSPECIFIED; memcpy(&fgp->codec.aom.y_points, &p->frame_hdr->film_grain.data.y_points, sizeof(fgp->codec.aom.y_points));