From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 5B9FF431DB for ; Tue, 24 May 2022 21:52:00 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DE0468B573; Wed, 25 May 2022 00:51:58 +0300 (EEST) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EA26968A56F for ; Wed, 25 May 2022 00:51:51 +0300 (EEST) Received: by mail-qt1-f170.google.com with SMTP id v6so12723346qtx.12 for ; Tue, 24 May 2022 14:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=O3fyy2bC1EbKkLgTY+ekqSLwr5N2km127cPhI1UZbfQ=; b=BU8/hpB77h3TMg9qBE1OnoY0iOL6yY7ShdkhxbuEB8L+XbszzfQAC11oer87MtNcbV 6XPW800X9G/1wy/GTPjQYBnyc9Gf8btOfAY/8cJiziQjgu8OAlvVmv+M83zUkWn4z/m3 sTV3C2poqh1VHWF6aEHn9bA0ln9zu4cyFjBbi+3rgbjHZ5hxuQnpaNBvVlIEdHsNnPpr +sAw5UFR89n8jzwSUQyfajqmylD4H9/R7WsiB/Z+a8gIWHWvNF9kHqNgJbfDwvFg2Qe0 XLMhKet74/Jy7m1SKgK0sr0GhgCIiZ6/AYDLhmHEIVAZAo2WnODeGVui56ijo1n1IgGx +kwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=O3fyy2bC1EbKkLgTY+ekqSLwr5N2km127cPhI1UZbfQ=; b=L4R6gL7ao10ryYbmZayV5rU94tnAtZyyGkh4BlYYJXWQgQCURH7BShPqgGC/BCCrFJ flUIGlFtjiWHhKdRUZlAuq1bVCxcVKDGofBPmztjHcrWGBTPcBXdQC6xJPwcBU8oECYM NgumTNiZgx6SpPL1g17bL59rdHppwyXGFZLi9hwxSfNpmxD+osiFEJxRxcQQKG34ozTh dhvxaTr7p4uyYwFtnqEYnPL7k1KkNlTmkjhN7KgMdr6xF61rI7X2x4DqvJfLWJRcDlda FoaFTb3k+rtcsCYA3VTLUHwMPo9f0yGL9BD1WG8HznwcjqGMReBSk6zSRlV2FldOkinL V/rA== X-Gm-Message-State: AOAM533HRJPIbYTp4PaYsppvUAYkK+uXP+kxqhk9w4rQsrlSrY77o6wp x16pScBMuz3brkGVHuPuAaEYQ+wvl0fZ9A== X-Google-Smtp-Source: ABdhPJz8mAQPS9pBL8NBnr0gJCHTFkBK6p8g07WJQIxyyqXGVTr397UYLcpbmtfmGb0XHdKkFNWXdg== X-Received: by 2002:ac8:5a08:0:b0:2f9:e14:b9ab with SMTP id n8-20020ac85a08000000b002f90e14b9abmr21976420qta.461.1653429110356; Tue, 24 May 2022 14:51:50 -0700 (PDT) Received: from [192.168.1.35] (c-68-41-54-207.hsd1.mi.comcast.net. [68.41.54.207]) by smtp.gmail.com with ESMTPSA id i75-20020a379f4e000000b006a38debe62csm236594qke.89.2022.05.24.14.51.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 May 2022 14:51:49 -0700 (PDT) Message-ID: Date: Tue, 24 May 2022 17:51:49 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US-large To: ffmpeg-devel@ffmpeg.org References: <20220524163001.55360-1-leo.izen@gmail.com> <20220524163001.55360-2-leo.izen@gmail.com> From: Leo Izen In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH v5 1/1] avutil/csp: create public API for colorspace structs 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 5/24/22 16:56, Andreas Rheinhardt wrote: > Leo Izen: >> +#define AVUTIL_CSP_DENOM 100000 > > Why not 300000 given that the denominator of one of the constants has a > factor of three? > (Sorry if this has already been answered before.) > I suggested this to haasn, but he pointed out that the 1/3 can be (and is) manually coded as {1, 3} without using the macro. The spec defines it as one-third exactly, not via a float value. Adding a factor of 3 to every denominator shouldn't be necessary as the various av_q functions handle that gracefully already. -Leo Izen (thebombzen) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".