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 7076A403A7 for ; Mon, 23 May 2022 21:01:53 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EB43368B4E3; Tue, 24 May 2022 00:01:49 +0300 (EEST) Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DCC1668B0E6 for ; Tue, 24 May 2022 00:01:42 +0300 (EEST) Received: by mail-qk1-f179.google.com with SMTP id 190so7170948qkj.8 for ; Mon, 23 May 2022 14:01:42 -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:mime-version :content-transfer-encoding; bh=7FRoUApO7F9+fTBk9ewEj00+ssgpswalXm0VednYRWI=; b=M6+zrrbeGhcSTJZxWMxHHVSIExq6yj/0M7ce3TqraKEU+8qzy+ZiMnGjgkHaJHgqOb mdd53CR4GjdOlf6eALXo4LwiGbR5zEJEEGMNaPhUxBVPAvL+MwvAs1Y+aq1A4C6wZyIC vFI2hFiJN1DxZZHJuilHcuYyy/TKjsx56oTpXvChI69+y+d58TCanqLeBUS/swEneK5o 1eM79fYzBXDcXwFaw4CrT9mqPtA/iANKB9mT6QHGGuYxyrElphGWNWsOYq4tqIjO+qZs DE7WLtgl5Y9nnLAdhsWfcbhbRnCtEl++C6eQqhfoUscv4NcZiOKKYEDdgdu76nIckvq1 KHjA== 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:mime-version :content-transfer-encoding; bh=7FRoUApO7F9+fTBk9ewEj00+ssgpswalXm0VednYRWI=; b=Z9SPucqspWaw4nAyAwSoo519uUCWQm8mpGNDDf6PjaCA9bjcCFvZijNqAHasKv4Iwl pdlP23uIaA47Nrj7E6xKjWr8jWOgfnNtEqZ0qa9rjgm34+F+mqlLcBr+vZos1+7i0SUM tVd60xpuzaYDAAnhlGpeL+v1lnvp49ehuHABa1eunltuyTqYCmsfqlXjgQKnP+HhmJDO tXuI6Izh5UzAMOwZMyflJnpRiVCvSOKuanXm/Qiq2jMDe/kQ93b6TkyLnf58TVRYvaEQ CqSgXtedzvvnVnFL5hEYsHqKxery5i6UArAZOKkmTJmzKEAPdtM5OQR39+pTBbbVdkYb HI6w== X-Gm-Message-State: AOAM532E0BX0SXmqfWadTsN2fOcNnr5/+1yRwdQdysMws05wHUW0h9cR vbf0SY1dTamte01yZtDWPPb/QNdCuiQ= X-Google-Smtp-Source: ABdhPJyVPd2ZN9FQM92jgz+hyxcY2erdcOIDigUx8kpVvveDQ0GbZsW96Uh4Hvc/9VaEeFDphu7aMw== X-Received: by 2002:a05:620a:280a:b0:69e:ba68:4580 with SMTP id f10-20020a05620a280a00b0069eba684580mr14889585qkp.668.1653339701485; Mon, 23 May 2022 14:01:41 -0700 (PDT) Received: from gauss.local (c-68-41-54-207.hsd1.mi.comcast.net. [68.41.54.207]) by smtp.gmail.com with ESMTPSA id z3-20020ae9f443000000b0069fc13ce225sm4929358qkl.86.2022.05.23.14.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 14:01:41 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Mon, 23 May 2022 17:01:38 -0400 Message-Id: <20220523210139.19480-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 0/1] [WIP] avutil/csp changes 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: Leo Izen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Changes in v4: - Provide the patch with an AVCIExy struct so we can discuss its potential pros and cons Changes in v3: - increase precision for AVR() macro to 100k, at haasn's request - add #define AVUTIL_CSP_DENOM 100000 - add 0.5 to the AVR macro definition to get exact values from truncation This patch is a work in progress example for swapping these structs from doubles to AVRationals. There's two main discussions here to be had - Is this API to be exposed as avpriv_ or av_? - Should these structs use AVRational or double values? I don't believe a consensus has been reached on this yet, but I've attached an AVRational version of it so we can see the pros/cons. Leo Izen (1): avutil/csp: create public API for colorspace structs libavfilter/colorspace.c | 143 ++++++++---------------------------- libavfilter/colorspace.h | 31 +------- libavfilter/fflcms2.c | 33 +++++---- libavfilter/fflcms2.h | 4 +- libavfilter/vf_colorspace.c | 37 +++++----- libavfilter/vf_iccdetect.c | 5 +- libavfilter/vf_tonemap.c | 17 +---- libavutil/Makefile | 2 + libavutil/csp.c | 121 ++++++++++++++++++++++++++++++ libavutil/csp.h | 53 +++++++++++++ libavutil/version.h | 2 +- 11 files changed, 257 insertions(+), 191 deletions(-) create mode 100644 libavutil/csp.c create mode 100644 libavutil/csp.h -- 2.36.1 _______________________________________________ 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".