From patchwork Thu May 25 21:43:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vittorio Giovara X-Patchwork-Id: 3742 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp9224vsk; Thu, 25 May 2017 14:44:13 -0700 (PDT) X-Received: by 10.28.193.202 with SMTP id r193mr12079241wmf.31.1495748653197; Thu, 25 May 2017 14:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495748653; cv=none; d=google.com; s=arc-20160816; b=iRBheDARMt33KrNQ9+SPvgmRWnxfD3yogwwTtwdOB2QfuZnHg09PaauHINZ+owKpdy xLNYbNXmFC25txe3KTPjR+TWkYm6GFGnHFHHpXcIFnLn2Os5vSXBnP4V817732xjtnOY UJ2Ky0Qn0J6PgJEsqAm7RXIGCSUpaHJVF7+6btsYC/Yw6uIYJy/CAflyofBKfcopjhcQ Lo2+uxLi7Nup912mRsz9KNa1D62fBewRDrRYZKTBjkpDU4ZlNCw2TWyJZnnnEVkGUocJ aPpynr/FzvKYiSlx6GURTsoA2gUIBUCLjC7yDCRn7Mb7iNOkUGnHZNjHpd9rAR8XrF8I ks9w== 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:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=nQ8BrFWQuyRpbnRlL1mch5q35WGgrb110LdRWBxapjE=; b=mmFOkvf6QL2v6T5LizUs+ZtJbQCOcP9/jS6z4zRQXOmeULMp3aPA5asSxFS3RIWrAP MkOJdRKN40hEnsO5jsw4IshhWcOQgzwM550fzfNg43Su3GG7vYYyPtr6S2lnG2zlxjwO srxssLrSyf3wd6MHfmZkWA+LXIKSiktE0vrUwdu6PKL3uJPrwF0nCXj0FcQmSOAslxx4 X9XUlo2gt3lZguU5K8eGifP4d45mTTQhcblaxJsgJty6ogHBFqsQq8+7p+caZge/h+G6 fyf95KiQyjb310cMT6Y+tQnwOa1tOzEUbBiAC4KiJZ4APX9YCcrMfICc24Siq1tOGcFu Y8wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u10si11449657wma.89.2017.05.25.14.44.12; Thu, 25 May 2017 14:44:13 -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; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D39B2689C45; Fri, 26 May 2017 00:44:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt0-f176.google.com (mail-qt0-f176.google.com [209.85.216.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3B6AF689A3E for ; Fri, 26 May 2017 00:44:00 +0300 (EEST) Received: by mail-qt0-f176.google.com with SMTP id v27so191509129qtg.2 for ; Thu, 25 May 2017 14:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=PVWEOL4hi3Qe10eIRJoMKOsi3UcpJ8Fh4QAWlLn4qWE=; b=m+caSyA61bXkvdPuW64MJs3kmJnzsI3RfUdSi8/K3MVoid0HKq0IQ7ZYAzxi6Vlzsd WXUST5PbhKHVpykciWFe6+dstWyeOC6VNpMckNguzTy4tTngvPVtnkVGSOT6GKtxf8OU H0Uq1jhm34rmX7QjLkyd/YYY4grfy3+mxrJEziAcA1g1fHem8ZnCGo7kaP50d/Boe+oj XROXek9jF6gOo94fquyLYe6QXUBEPzJ4CIQZ412o1fF/niHOnMpgWwaWHcMYR+mErLmA NEAMymhToV005VHjPnMNi8dQttJ+gFrFztt3fIUv8Nb1+0Znfe0TRFItWypyJjLLolnx kM9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=PVWEOL4hi3Qe10eIRJoMKOsi3UcpJ8Fh4QAWlLn4qWE=; b=BhOnJjdcuqnhv9UR/zNibpmeczB2XTl5+lFRCl9KbJ+qiDGCL7jGobm7m+QOU5aoy+ 14JVxlr9Tx53g9BIIsA8JLqMM6RDnD+sO2xOVijKhyMi2VGjNPnsNNrdyLnSidmLd3nJ AaC2MBCDH9DhEVbhrxfL9d4r+6/Hrwc1TYAz85cabQAMcPT1GiX18osO7wf+EpXZKaMv UabddCc9n/BkciPLmyZs//3CMN7xpkPuGqwea7PUZK7BT1UGU/S96U256iK/S5wswBzP CzRHBO9w5zTqH6SKkd1dNnFYC3w/QKYqAeWP/dFddN6/BdWzuBa2cCGFTD9xjAohpztA ctlQ== X-Gm-Message-State: AODbwcANZuJ1Q5OmCim543MCqdaU8ROmCXj4L5qzY0v1Vjvi3YgbqGIw lQhXlkKUKLiWdqpv X-Received: by 10.200.43.120 with SMTP id 53mr40109244qtv.109.1495748640942; Thu, 25 May 2017 14:44:00 -0700 (PDT) Received: from vimacbookpro.vimeows.com ([8.40.92.161]) by smtp.gmail.com with ESMTPSA id t23sm5510900qtc.30.2017.05.25.14.43.59 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 25 May 2017 14:44:00 -0700 (PDT) From: Vittorio Giovara To: ffmpeg-devel@ffmpeg.org Date: Thu, 25 May 2017 17:43:59 -0400 Message-Id: <20170525214359.34752-1-vittorio.giovara@gmail.com> X-Mailer: git-send-email 2.12.0 Subject: [FFmpeg-devel] [PATCH] zscale: Add range options aliases to match scale ones X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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" --- libavfilter/vf_zscale.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index 594de179f4..d7b1612f3c 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -708,6 +708,7 @@ static const AVOption zscale_options[] = { { "spline16", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_RESIZE_SPLINE16}, 0, 0, FLAGS, "filter" }, { "spline36", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_RESIZE_SPLINE36}, 0, 0, FLAGS, "filter" }, { "lanczos", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_RESIZE_LANCZOS}, 0, 0, FLAGS, "filter" }, + { "out_range", "set color range", OFFSET(range), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "range", "set color range", OFFSET(range), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "r", "set color range", OFFSET(range), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "input", 0, 0, AV_OPT_TYPE_CONST, {.i64 = -1}, 0, 0, FLAGS, "range" }, @@ -764,6 +765,7 @@ static const AVOption zscale_options[] = { { "ycgco", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_MATRIX_YCGCO}, 0, 0, FLAGS, "matrix" }, { "bt2020nc", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_MATRIX_2020_NCL}, 0, 0, FLAGS, "matrix" }, { "bt2020c", 0, 0, AV_OPT_TYPE_CONST, {.i64 = ZIMG_MATRIX_2020_CL}, 0, 0, FLAGS, "matrix" }, + { "in_range", "set input color range", OFFSET(range_in), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "rangein", "set input color range", OFFSET(range_in), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "rin", "set input color range", OFFSET(range_in), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_RANGE_FULL, FLAGS, "range" }, { "primariesin", "set input color primaries", OFFSET(primaries_in), AV_OPT_TYPE_INT, {.i64 = -1}, -1, ZIMG_PRIMARIES_ST432_1, FLAGS, "primaries" },