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 6BEFC431C1 for ; Tue, 24 May 2022 16:30:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 34C9968B50E; Tue, 24 May 2022 19:30:18 +0300 (EEST) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7E75268B4A5 for ; Tue, 24 May 2022 19:30:11 +0300 (EEST) Received: by mail-qt1-f177.google.com with SMTP id w17so2166087qtk.13 for ; Tue, 24 May 2022 09:30:11 -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=cU3enJgxx9cFf4aBWg95G0odH0QbGwXJsf7UUO016ow=; b=NdZALZ7lESvA/EQVtwbtxqxLfHACGHYbVw1MX9I7H+tHeqGyV+IDmp15F1UrHZPvA2 CLP8DWR2XRAXL6mJsHEhGTiwuShmt7nLEi0uNXfdtiotguj5gODPKoV68blBS/xk607d qlbjBCeeVLiQBwaFKUcDxSErd8BPq/SnPJhFZDE/7WynXJr0zu55+VoevDAosczcBhUI 8b2h1sIaMF4Do/rLD3+v+eNgX5fucJ+yR9TB5PnFSVmbIgB++aQkkEmEmpbBgy85lDf0 vI1NFtkHbt9oLtIvLmB330vq7HQIJ6IZwt12VWJ963f+q1RDMwHuWRp2vLNhHcrk16bR TKrA== 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=cU3enJgxx9cFf4aBWg95G0odH0QbGwXJsf7UUO016ow=; b=Mn1fG2sF9g+l/Idnh/0R2bqzvxyvK8aT+6BdnC37fftIBcRF4WIfeTHOnPl4OlSQwr h/B5YcnhuE/E0x2C5Vkytfc9d7Hwkid2G2nmhTAEEnNipBpbj5caS6+ajfdySr+BGikE f+v2azepkjL+WWJBdJ4IEgkPXv/iZM8fTchPtalihiU4fucfBJDoRCFTm6ZjqkfxI9jT PV3OvYdVdJJyNt0R1KQUYSsznvmvQqHl5w6TVD28er3w8LePlGKJltPyCQU6Ic0XdRgy xjOvOaNNpg1pXx209A5ffr1kteOC9sPngqGNe+gP5Mnv6xIDv319nI8vgyO+fCLBapSs RGQg== X-Gm-Message-State: AOAM531BKZU4EM6fQ66jw3h7KXkVPwU4uTfBGU4ka5o+eI9fUNsLXfVC uM0239X9mjsohUMVhw9jy7v7eKLCN2Jt+g== X-Google-Smtp-Source: ABdhPJxW007GOJX6v1XJ7iSGwRS4xo5JB28ezUeynahSMSVrSoG3mVIdwdCKkcUU+zJcQ/L4+SDJeA== X-Received: by 2002:ac8:5902:0:b0:2f9:cb01:8a33 with SMTP id 2-20020ac85902000000b002f9cb018a33mr1058990qty.375.1653409809960; Tue, 24 May 2022 09:30:09 -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 e13-20020a05620a208d00b006a375273181sm4877029qka.128.2022.05.24.09.30.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 May 2022 09:30:09 -0700 (PDT) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Tue, 24 May 2022 12:30:00 -0400 Message-Id: <20220524163001.55360-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v5 0/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 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: It appears a consensus has been reached that this api should be public with av_ instead of avpriv_, and that AVRationals work better here than floating points. As a result, I've unmarked it as [WIP]. Changes in v5: - Unmark as [WIP], ready for review and merging - rename public functions to namespace them via av_csp_, as requested by Anton K - documented public API using Doxygen comments - remove abs() from denominator in abs_sub_q, assuming denom is positive, as requested by Andreas R 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 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 | 128 ++++++++++++++++++++++++++++++++ libavutil/csp.h | 115 +++++++++++++++++++++++++++++ libavutil/version.h | 2 +- 11 files changed, 326 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".