From patchwork Thu Dec 28 21:21:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 45375 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6623:b0:194:e134:edd4 with SMTP id n35csp4425027pzh; Thu, 28 Dec 2023 13:22:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9YZHp6HFXXm9nxezgoHQ6T7GwQ+FL7Zh38pzYAyR7S7156amK8/nRJR0u2gVrx7I8mN/w X-Received: by 2002:a50:cd15:0:b0:553:4ed4:5853 with SMTP id z21-20020a50cd15000000b005534ed45853mr5747125edi.47.1703798542362; Thu, 28 Dec 2023 13:22:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703798542; cv=none; d=google.com; s=arc-20160816; b=Hv08l47xua3vas+ZiEJc053FgwUkYsdTXhhYlYqt/Ta30aoeETsYy5UmlCgjMP0cdl PXzLONFMp89KRfdOT2xyuizLegsAj6jtzLKpiFvVv/6mjl1f7Ax6OKy194s96w62tmCE MScgp+9uF00n/PHdb0TQ3NwILkvMqkTx52+8bxf5+xhRFetb4CkRxx31+/Ia4Zvl0RhQ fiJ0tLa4A/ZMbibpKrSHjVHXyZEKBABxFMtwT6nfp/h5uzrdfEm7UCv6wX1KLUubLs3d kWNwuL3MR5TE8FlCTx/QK5cEsKuHpLc1xyt2pKJuUTLE978A7A5BYtAzjjAbq25hrPOW 6BdA== 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 :delivered-to; bh=zyVyy7QMNRyhP+ampRn3JxBMwqHprE2TnqHl1RyvNwo=; fh=s+G8Ss4JbeMFkWPSp2LmIH/LXFyBlALRiww1j3FPjHY=; b=jzYhTweFIqTAzY8BAZ3fr4HH7VrlnaHUSF9rQs+nIhviSKJbCh1T6/HaRdos1snL3K G5f6Dk4jsoz+VGM4wMiQFRFI8tiljn3W5N5HCj3gmur8Lb9sdINvqpqFbGZP6dZK2v5h gzEv9Bm4OC4EvifDvZEB/A8Aodgb2brR6QKWCXks3E6HGXeKaS34INoNmVPBbguH9xqq Bh7cJI9iP1s87LfIdGLDy9YgV4g4N/oRR6tHHDV3CB+z+6Dg5nwRcQ0wfMawHh0+UICM iXxt/PmaOLET4CYvdt7H1A7qnTc8bjm/SJVYTUKnK/tvqO5e0SHQIIP9a5+F3dLdDzVj Vf5w== ARC-Authentication-Results: i=1; mx.google.com; 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 q23-20020a50aa97000000b00553b6187400si7524024edc.378.2023.12.28.13.22.21; Thu, 28 Dec 2023 13:22:22 -0800 (PST) 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; 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 0A0E968C118; Thu, 28 Dec 2023 23:22:20 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9C8AE68C118 for ; Thu, 28 Dec 2023 23:22:13 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 6713DE771B; Thu, 28 Dec 2023 22:22:13 +0100 (CET) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oRhXE_cv-Y8K; Thu, 28 Dec 2023 22:22:11 +0100 (CET) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 04F9BE7627; Thu, 28 Dec 2023 22:22:11 +0100 (CET) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Thu, 28 Dec 2023 22:21:47 +0100 Message-Id: <20231228212147.14070-1-cus@passwd.hu> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avutil/imgutils: fix half-float representation of 0.0625 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: Marton Balint Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: JltBdzGgRfn+ We don't have a 16bps float Y format, so no fate changes. Signed-off-by: Marton Balint --- libavutil/imgutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/imgutils.c b/libavutil/imgutils.c index ff9ff07961..406e7868b2 100644 --- a/libavutil/imgutils.c +++ b/libavutil/imgutils.c @@ -697,7 +697,7 @@ int av_image_fill_black(uint8_t * const dst_data[4], const ptrdiff_t dst_linesiz if (comp.depth < 8 || (fltp && comp.depth != 16 && comp.depth != 32)) return AVERROR(EINVAL); if (fltp) - color = (comp.depth == 16 ? 0x3000 : 0x3D800000); // 0.0625 + color = (comp.depth == 16 ? 0x2C00 : 0x3D800000); // 0.0625 else color = 16 << (comp.depth - 8); } else if ((c == 1 || c == 2) && !rgb && !xyz) {