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 DAB71447C1 for ; Sun, 25 Sep 2022 00:15:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 23E6468BBFC; Sun, 25 Sep 2022 03:12:09 +0300 (EEST) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 14B0E68BBC4 for ; Sun, 25 Sep 2022 03:12:03 +0300 (EEST) Received: by mail-ed1-f50.google.com with SMTP id b35so4739810edf.0 for ; Sat, 24 Sep 2022 17:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=6zb/fprGqE/xn1DjeaDThWY0TfouSQxBDJGEyjwogwE=; b=QtziwlNuH3RoC+nwThrgisjTNYbh5ZcoMiOx4cUFji09CHUMgL2FTRfOqd0XhwnTxK nUacXyUt3fmsRA5edcj+m4DFuI52mmaeRBbcp61aX6r3iPVhHCN4aXCrEeJKyOFkyIJ8 udJAZFnXpls1tutNUtonm+7LkMfqTg/7MJvobvxguFICZPdDR/gt/KVD2Oi3RVJmnJLM G0BggvL60c8IxL0xAulD87tmAj4Ky1Dw88AsSZjDI6OMzkLGZR2KzUbKu7TCxqR8VtrJ E40+uV/G/IlLd3Cajs/xsfUHi0pwaU5XenbEfCQCH8vJ3Hq9Z6rpf3dZn31MYj8l47O3 iwSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=6zb/fprGqE/xn1DjeaDThWY0TfouSQxBDJGEyjwogwE=; b=klA0oh/DH8HwRMiFKoFOCRvGsmI9XWrMqlMDUUovqX0VB1tSbHF3/Gso2gV4Pc66Zw 4Z8zPjQwiBaiw2n5d7qDWanOqR2psiD5kqa21JrG8RQgkFYEd5s5m5qao3d7LId7IYMZ bRH7YfNVAVcMOkDNGWfFwmJKon/NTf1fhTcPrPTZob6gjurfkvZMN+WCcAw43TC1+PoF vhHpEAsW9Yk9/o6XCbhecvQEmkFtzkJiXobFQMkmMCZ6mkPQO92hHXMnswBkX1ZAptJt wNYtB06yJOEsUPlJN6o/nnsxboS29zC1VwTtRGbWWWeGBrOI5k6+agjmBSIGdigQizq9 HNSQ== X-Gm-Message-State: ACrzQf0kOGGpYUvbLzdrqkfWHRGnIP6KIUFyKHumTpiOL9SwDn6HCi7k XVfUzA3F31+G92IU8xhaBg/1kaSz5Lw= X-Google-Smtp-Source: AMsMyM4s32273aPJMNqR3d7S/p+wkgTlb8SQWB4sxNhP6E5llbBdIxz6FRoA5344nDQUYn+UGY8xQg== X-Received: by 2002:a05:6402:11c8:b0:451:7220:6343 with SMTP id j8-20020a05640211c800b0045172206343mr15290951edw.184.1664064723152; Sat, 24 Sep 2022 17:12:03 -0700 (PDT) Received: from MBP-von-Marvin.citadel.scalie.me (84-112-104-25.cable.dynamic.surfer.at. [84.112.104.25]) by smtp.gmail.com with ESMTPSA id kz3-20020a17090777c300b007812ba2a360sm6208042ejc.149.2022.09.24.17.12.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 17:12:02 -0700 (PDT) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Sun, 25 Sep 2022 02:10:51 +0200 Message-Id: <20220925001121.37721-25-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20220925001121.37721-1-epirat07@gmail.com> References: <20220922020400.46715-1-epirat07@gmail.com> <20220925001121.37721-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 24/54] swscale: Fix bogus doxy comment #ifdefs 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: Marvin Scholz 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: The intention here was probably to document this as use of conditionals does not make sense in a comment. Fixes doxy warning: warning: explicit link request to 'if' could not be resolved --- libswscale/swscale.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 3ebf7c698d..9794f6a258 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -324,22 +324,17 @@ 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 + * + * @return A negative error code on error, non negative otherwise. + * If `LIBSWSCALE_VERSION_MAJOR < 7`, returns -1 if not supported. */ 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 + * @return A negative error code on error, non negative otherwise. + * If `LIBSWSCALE_VERSION_MAJOR < 7`, returns -1 if not supported. */ int sws_getColorspaceDetails(struct SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, -- 2.37.0 (Apple Git-136) _______________________________________________ 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".