From patchwork Sat Oct 23 08:12:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 31218 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp2666899ioa; Sat, 23 Oct 2021 01:14:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy01UW3s7ywL+yCVd2vXUej3lpK8D2zGdF6//ZwXAepauihd3F6I1qOjHivrdVO097P971 X-Received: by 2002:a50:d50c:: with SMTP id u12mr7066471edi.118.1634976849435; Sat, 23 Oct 2021 01:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634976849; cv=none; d=google.com; s=arc-20160816; b=oNx6bKZ0uXFPM6B9wO/+0a2BBu8yrNj/0YzKLzuT+pMpJ8MnWmcL79k5V7fgXuMOUS mDvawa++6KdbhlfM0/obKdTj2yh2G0bkQXSi5bq6QTxq3HDb+NnAq/WkpzpP6wdbBHQ8 Uy0qdKZ3LMjkkWP6JwUdFVj3VRHUV+dm85drMvQ6f3oR96UcViEsQIonekLHwLpZA8nx +W8Xg2yITc45lZNjGQyAA5yFem0wTT/Sa24v27MosiOCRkYvwIsth5BCNwqwDOrLjZSG RiPBdTByN3Nk/Nc0QmXANGaaP7atT1qKdDqBdDGoDbihyddpT1iwCj47AuU/VOL4abdB kaXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to; bh=td0CDO8/BTFDrmltfID8YWs2TdZbx+nqCN+NejPzkAM=; b=JaRbpAEn1l2WNHHMhZVEaiJTO9/xW2TFH22IQLAj9SjGn/iXhlnJD2w+Anytdk8fJ9 LCwS1kpyIeRlaR6ULxmsPALwZvRwTFeU/k0XgAhw8yXFrauoUL5ZGwfkH6czFgeobryH cajdMXF24tAOWdbx3d6+qUMMAxvjSAfzbsjeIiZxaG5VPXO6grlWD+cat6soxA/OOFiU 4FsfUPGPUhzVk6ZvY71lIWVm4pndv85jONxgopBHtVnyaa0mqFYge2cZ4zLtcIgtr8uQ zB8voUPQnygitMW+7kq1gLEP+3LNyaFbNdQnAdHPK8usN501irvZkAKjI8zRUBYBgsjw O7cw== 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 q3si12771735edb.445.2021.10.23.01.14.08; Sat, 23 Oct 2021 01:14:09 -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; 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 1AA5D68A865; Sat, 23 Oct 2021 11:14:05 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe05-3.mx.upcmail.net (vie01a-dmta-pe05-3.mx.upcmail.net [84.116.36.13]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7C1476802C1 for ; Sat, 23 Oct 2021 11:13:58 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1meCAA-00EGLT-0C for ffmpeg-devel@ffmpeg.org; Sat, 23 Oct 2021 10:13:58 +0200 Received: from localhost ([213.47.68.29]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id eC9CmEzSFSgGFeC9CmChPi; Sat, 23 Oct 2021 10:12:58 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.68.29 X-CNFS-Analysis: v=2.3 cv=f8Q2+96M c=1 sm=1 tr=0 a=2hcxjKEKjp0CzLx6oWAm4g==:117 a=2hcxjKEKjp0CzLx6oWAm4g==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=C8nuBqvkpJY_3PcsOEcA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 23 Oct 2021 10:12:57 +0200 Message-Id: <20211023081257.28248-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211023081257.28248-1-michael@niedermayer.cc> References: <20211023081257.28248-1-michael@niedermayer.cc> X-CMAE-Envelope: MS4wfPMylIe3bsWEMMl6inQsR0LJkJyWZAcv6oFRhO+gz8S3nxsYNmsznjT3cwffkWrQjs2YMxCeCbkN8wE6yZUg+r9+RqkzMQjhK57vu4SC8Vk5H+oRycGF Q1/tQKmOJlGooO24vz30XkelAu05kNGhXKOJHZ2Tkfz639QC0aHp2GTN Subject: [FFmpeg-devel] [PATCH 2/2] swscale/swscale: Improve *ColorspaceDetails() doxy 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: wCrzAVUcvjMw Signed-off-by: Michael Niedermayer --- libswscale/swscale.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 59610d03426..daa53dc01ee 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -318,14 +318,22 @@ unsigned int sws_receive_slice_alignment(const struct SwsContext *c); * @param brightness 16.16 fixed point brightness correction * @param contrast 16.16 fixed point contrast correction * @param saturation 16.16 fixed point saturation correction +#if LIBSWSCALE_VERSION_MAJOR > 6 + * @return negative error code on error, non negative otherwise +#else * @return -1 if not supported +#endif */ int sws_setColorspaceDetails(struct SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation); /** +#if LIBSWSCALE_VERSION_MAJOR > 6 + * @return negative error code on error, non negative otherwise +#else * @return -1 if not supported +#endif */ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange,