From patchwork Sat Jan 11 04:13:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17294 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 9A85D447B5B for ; Sat, 11 Jan 2020 06:21:52 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 808F368AE82; Sat, 11 Jan 2020 06:21:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8DA7768AE5E for ; Sat, 11 Jan 2020 06:21:45 +0200 (EET) Received: by mail-pf1-f194.google.com with SMTP id 2so2096317pfg.12 for ; Fri, 10 Jan 2020 20:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+o684AQc8pr8AVeCgsmo5CZtoMGt1xxNd6ge8tMKwKg=; b=EFiytIrOUywxEGeKWue8G6VufhjSjV9ornSM6NaoctW90hibQaPljcUT6qb1ZtiKIZ agYLaxNufMs18G3c/utYAkmvcQaDV3lvu1Y2k9qTnHMGUJsIZtGtefbRsjJm51gdeA/c qbrA7OxhavPGcxzm+LltntGRNzgg8QLylDse6o/b4BuXkQCx4CAusYp0qnN8Q051Ggrr p3SZ8UDyN8HkvznwME+chkTcDu/5qHOhTFKd0lrKs8WT13BcKu69nXY/cqT7U8w9wlWk oJ3GNYo4ivVs8RWKm4oZsPinBnroBDOMksIPpl6G0G3lkPK0BS3IZdb3Aynpru23RrS3 8psg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+o684AQc8pr8AVeCgsmo5CZtoMGt1xxNd6ge8tMKwKg=; b=ahWFUSkLniK4XPHEoSwfu7pxn6qr0FLgqqGFD8RMx03jgMVzecwvps8PmI3NnI2YuL gnFa9x5UhE74vpEU/scHmlaVt/EK+qyDzR+aqlD1pNu3/IelaK6qpBeIPS2JshgGwckl vG1KHz9lB+nNC3M2yrgpCeKtsWWQKgPDn7kOhiHlTfpoJ0VtjA2rBy1Q8SXp2ntFOERV dHzMXVeHYVepDOJ7cqLkxI2N0A9oKMyY5HD4P3/nS2VFe0hu/5swnTq+viqA+4UyjOe6 sh3CZ8d+0BmbRWM8WFsanGa4aD+0iqPCa34kYQEgDWBBXI4MNT58blivCe/0glSbHFNO 9xQw== X-Gm-Message-State: APjAAAU1D5Az3UQQT7iugRfZz0cb/JD3zo04yYu5YprOXJ7yFCn4Pe1k 6OgmJNqiLBZGMTbh/GxZ4OPtHtHB X-Google-Smtp-Source: APXvYqwBcbCSAvd6hrVDkue8ruOz9KFAkJVISPmiebJfY5YtahU/nEkSOgnzuMosaiyxbJOWBxV4gw== X-Received: by 2002:a63:214f:: with SMTP id s15mr9099924pgm.238.1578716042222; Fri, 10 Jan 2020 20:14:02 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:01 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:48 +0800 Message-Id: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 Subject: [FFmpeg-devel] [PATCH V1 01/11] lavfi/spp: add "quality" option in runtime change path 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao it's stranage to use option "level" in runtime change path but used "quality" in option, add "quality" in runtime change path, it's more intuitive and keep the "level" for compatibility. Signed-off-by: Jun Zhao --- doc/filters.texi | 9 +++++++++ libavfilter/vf_spp.c | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index a2f862e..7459255 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -17271,6 +17271,15 @@ option may cause flicker since the B-Frames have often larger QP. Default is @code{0} (not enabled). @end table +@subsection Commands + +This filter supports the following commands: +@table @option +@item level +@item quality +Same as quality option. And the command accepts the @code{max} same as the @code{6}. +@end table + @section sr Scale the input by applying one of the super-resolution methods based on diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index fe579ce..db381cd 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -444,7 +444,7 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar { SPPContext *s = ctx->priv; - if (!strcmp(cmd, "level")) { + if (!strcmp(cmd, "level") || !strcmp(cmd, "quality")) { if (!strcmp(args, "max")) s->log2_count = MAX_LEVEL; else From patchwork Sat Jan 11 04:13:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17295 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id B1A06447BA8 for ; Sat, 11 Jan 2020 06:22:37 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9A31C68AE9E; Sat, 11 Jan 2020 06:22:37 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7714168ADDD for ; Sat, 11 Jan 2020 06:22:30 +0200 (EET) Received: by mail-pg1-f174.google.com with SMTP id r11so1959595pgf.1 for ; Fri, 10 Jan 2020 20:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=oJCqdpqs6k7QJ4wIIBeOCHn3kRVC+R10lM/krNmGF98=; b=ZujlW4b47118aHQ7bDIs+zOVMMhfNw9msdsncPwSHBMslZe+6rpQ5resyFQPZl4V5d IynjVnsyU6LIOGRgpe0EBkizWwuQOd/jwgjAaAL0tR6y79AZwTivHouPy2PXkejnGOeF 84ZJXG0sTf37jxMCtolgD6MIvDRbQ1FJz6H/v9vvAXPjDsMjxVjGaTd59Rp448RkXL1n eL9AwoEzeHvFYZKXvoy1L9OHoKwQlvQOwHUjTEUpuB7R2NyDvAXkl6D0QdwBFDZh83Ri UJF0MZyZQED8EC3vHygICdoG22xe27a3zKZJaybA8wnYYe4NKXmqKDNzom+d335vYaNm 7TNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oJCqdpqs6k7QJ4wIIBeOCHn3kRVC+R10lM/krNmGF98=; b=ZUjtudaQ1C1l5hVgOWAEZOweh7YmFMU0xePo0uhHXyDSUoA6uEib5rcbRvvUcbdFZu LITTC4PcI2oTtz9hNkzYQrJkOnTbf92GwxYMqpuYw+bOfOC0cTNJf5AUEHAEB7a65mWE TOv6ZzJMEbdqs7+S4CyZPKowX5JEtwi8NLYaYmkfhqWGgLPMyU9fcdoRb9I/nlZMRsUQ BtZUW7ZUaVamFNQ2HtW0EwdFd8/BYJwVn35QNMrYLMzdtokRNNoV/f8HJEChb/XbwqhX mS39ZMFuAnaGFZWyzoRESPURHJQz2BIqiMlenaciGMRGFzmPN8TD8/R9ogIYMZYDQBHp Xvbg== X-Gm-Message-State: APjAAAUzN60Cmj7nFBkiEaQ9Zkk1QsNvkc30K8pqaJt1CHkxwWTEDFFZ j1v+VPL1LNr1e93dVDpOR0HZD/Nv X-Google-Smtp-Source: APXvYqzKS8eeYeln55zUCyI1J0tHW+2ss06yGxZckjdRmcDSKEuGCSl3qHBVLTWjjnV/kZ12dw/Cqw== X-Received: by 2002:a62:342:: with SMTP id 63mr8150669pfd.19.1578716045010; Fri, 10 Jan 2020 20:14:05 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:04 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:49 +0800 Message-Id: <1578716038-9645-2-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 02/11] lavfi/spp: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/vf_spp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index db381cd..7381938 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -57,8 +57,9 @@ static void *child_next(void *obj, void *prev) #define OFFSET(x) offsetof(SPPContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption spp_options[] = { - { "quality", "set quality", OFFSET(log2_count), AV_OPT_TYPE_INT, {.i64 = 3}, 0, MAX_LEVEL, FLAGS }, + { "quality", "set quality", OFFSET(log2_count), AV_OPT_TYPE_INT, {.i64 = 3}, 0, MAX_LEVEL, TFLAGS }, { "qp", "force a constant quantizer parameter", OFFSET(qp), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 63, FLAGS }, { "mode", "set thresholding mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64 = MODE_HARD}, 0, NB_MODES - 1, FLAGS, "mode" }, { "hard", "hard thresholding", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_HARD}, INT_MIN, INT_MAX, FLAGS, "mode" }, From patchwork Sat Jan 11 04:13:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17299 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 58B8044B81F for ; Sat, 11 Jan 2020 06:43:44 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 33DB068AE14; Sat, 11 Jan 2020 06:43:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4183068AE14 for ; Sat, 11 Jan 2020 06:43:37 +0200 (EET) Received: by mail-qv1-f66.google.com with SMTP id u10so1800068qvi.2 for ; Fri, 10 Jan 2020 20:43:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8Ksz3b0MU5rep9KOFqH5Pp+pOk7WIUUYs3o915doyxQ=; b=tif8NMjp7odJ4TYSqrDvAmvI4nVcm4eKxFY9hshpzY+LUc+xxzdeZ4s7YGtAXtKP77 npACWiJ5t31r/uK0dSpboD24HhKKwISghjzQ60sEMvQptwcX3YR5t2WnLGAmZb2cQ3s3 xP1pPn7UyVZoOWg15jZdXhH7cbO5vjxmFgsM2j89noX3AhejqMEGjIJsugO+aIvlwgpE 0cddUIslgCsM5sI/8HliuZ7DjRsP0nICYjfEsZz4DTCskh3iVTRShVHRzSE2KJmwDWis D10kbmb71QKluB2LkrXIcFquImRSWkaIziJJ/DjUEEpYFkPhFO52cvv1lGyDsaHahpgz HxqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8Ksz3b0MU5rep9KOFqH5Pp+pOk7WIUUYs3o915doyxQ=; b=kilCxswiYDMVzMAh69BS2UvKisn1gDoj5jiQFXBm7eJtvF4FeKYtDunSy+9doHJyWY d4LDlUmHLwDXFHdYA180UuicAakR/+oyULMDVFmnN/NV66AYg4iYzCMIey+vUB4mSNnv h16GNjyO5+qTX+7ten/L0j3RkXm4y+5wkaqX050dmatbrY52axv0BYKj/AynDKaMps9o yvXfoyEBQgBgwB7ThVB97L+XkoKyNUsd+/SfYfAnPY3x+RbjRV4wHnebJo8sQsm5+89a grb+PftmzRurMP/+RuW6ierwoahHyxGMObNKdhqMvsb0GCWSGJNQwxvxwTqcUW/JEWaE lk6Q== X-Gm-Message-State: APjAAAUwObmtFH1QHS/nRPNe1VOnSHMI9me4lrP1ghiftqTBZcZnwUdL +QaQpMw/Trtj8i4XO3MgiLkp+Wes X-Google-Smtp-Source: APXvYqy9GupLTuY6aMFi0bglrlv+AlM9BNF3xiM54ory20VKTh8tUyIiNgq9bgiGXAWmkBmzHKhEcA== X-Received: by 2002:a17:902:b40e:: with SMTP id x14mr2530517plr.242.1578716047634; Fri, 10 Jan 2020 20:14:07 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:07 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:50 +0800 Message-Id: <1578716038-9645-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 03/11] lavfi/crop: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/vf_crop.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 9bf4077..8dbf1b5 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -370,14 +370,15 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar #define OFFSET(x) offsetof(CropContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption crop_options[] = { - { "out_w", "set the width crop area expression", OFFSET(w_expr), AV_OPT_TYPE_STRING, {.str = "iw"}, CHAR_MIN, CHAR_MAX, FLAGS }, - { "w", "set the width crop area expression", OFFSET(w_expr), AV_OPT_TYPE_STRING, {.str = "iw"}, CHAR_MIN, CHAR_MAX, FLAGS }, - { "out_h", "set the height crop area expression", OFFSET(h_expr), AV_OPT_TYPE_STRING, {.str = "ih"}, CHAR_MIN, CHAR_MAX, FLAGS }, - { "h", "set the height crop area expression", OFFSET(h_expr), AV_OPT_TYPE_STRING, {.str = "ih"}, CHAR_MIN, CHAR_MAX, FLAGS }, - { "x", "set the x crop area expression", OFFSET(x_expr), AV_OPT_TYPE_STRING, {.str = "(in_w-out_w)/2"}, CHAR_MIN, CHAR_MAX, FLAGS }, - { "y", "set the y crop area expression", OFFSET(y_expr), AV_OPT_TYPE_STRING, {.str = "(in_h-out_h)/2"}, CHAR_MIN, CHAR_MAX, FLAGS }, + { "out_w", "set the width crop area expression", OFFSET(w_expr), AV_OPT_TYPE_STRING, {.str = "iw"}, CHAR_MIN, CHAR_MAX, TFLAGS }, + { "w", "set the width crop area expression", OFFSET(w_expr), AV_OPT_TYPE_STRING, {.str = "iw"}, CHAR_MIN, CHAR_MAX, TFLAGS }, + { "out_h", "set the height crop area expression", OFFSET(h_expr), AV_OPT_TYPE_STRING, {.str = "ih"}, CHAR_MIN, CHAR_MAX, TFLAGS }, + { "h", "set the height crop area expression", OFFSET(h_expr), AV_OPT_TYPE_STRING, {.str = "ih"}, CHAR_MIN, CHAR_MAX, TFLAGS }, + { "x", "set the x crop area expression", OFFSET(x_expr), AV_OPT_TYPE_STRING, {.str = "(in_w-out_w)/2"}, CHAR_MIN, CHAR_MAX, TFLAGS }, + { "y", "set the y crop area expression", OFFSET(y_expr), AV_OPT_TYPE_STRING, {.str = "(in_h-out_h)/2"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "keep_aspect", "keep aspect ratio", OFFSET(keep_aspect), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS }, { "exact", "do exact cropping", OFFSET(exact), AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, FLAGS }, { NULL } From patchwork Sat Jan 11 04:13:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17293 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 74D3E447B23 for ; Sat, 11 Jan 2020 06:20:52 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5A65268AE70; Sat, 11 Jan 2020 06:20:52 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BD6F368AE5E for ; Sat, 11 Jan 2020 06:20:45 +0200 (EET) Received: by mail-pj1-f66.google.com with SMTP id a6so1796677pjh.2 for ; Fri, 10 Jan 2020 20:20:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WfLp9QzmheDepQ3Cyi7Da/NSthCqizsusr2BAYIKGrE=; b=fBIccKMm8bAyi7OUUrtjI/PSTedrL9jS99sftmXFHO8ipBiN/8X7vLFDTZoCEcloRI 54zwLQxzyH1/SGWJr1TGBsBMuPW92cghXw4gU//nDp/8UuunKF4XvyxH01BvlDoe+pCw vG6HxCbGREfmFQvQspC29Pb0QScajwh4hIDkpD1L88FOJE76HhL6vBRd6hSK5Efa6+YG S+LLbhYNAhhyNcCfvFKWkjFBPsQkLAvQ5cxnXEu3OrJfk8XxNSp7zSrFKFniGJfjBzZu Ml3uCJBRGjb5lXyqjCxcmLbwZwy5k/zwePW0pYADEwq03GaA3YeNy2zGUcdT4ril9Z9X UBIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WfLp9QzmheDepQ3Cyi7Da/NSthCqizsusr2BAYIKGrE=; b=pJsObg+GTJ6ckz+Z68OXxu5647tjsBhQqeueZlOQvzKz6OH7alZs3yzYOTOMqqeWJi Q5Tsdgtu10PvC8Gqx9kpHeIGCuiv7t009ni+Fu+x1R8bQZLpmXdUXx7+Wl6cyDYKFBaC MRJHQq0WEKtzOUGtfA5oUs34FzPeYwQyaHBoFjg/ZFYBkXgRTbOZtiO8jpfFNAzSw4gG 8F4NpzFsKVyydjyWKyt4VcyQbOD5J+XF90W5Zy6qWS+WBxHy8ttz8t1e+xD/SEmmGjS2 foEuibL+vdL7RK/gCPCVor7tVnL7jmmdsVmIlQNenWgr3ImsVazIO1v65d5YTEQ7nz47 d4yQ== X-Gm-Message-State: APjAAAWQTDmppJlJir+yRwVI47vAi6d6Gig7zZnWsdxJGGrOqtPK7HBg faG8JXr0d/aWyJEOQgvqCQ6c7TLO X-Google-Smtp-Source: APXvYqyO2JCGIBuM//f89ZiOjcJ2Q3LHOqpj3NvkGExByMkfb5hQRDmu3CCH2pmIVgO+pwHhaOeJlQ== X-Received: by 2002:a17:902:8c8b:: with SMTP id t11mr2299775plo.319.1578716050029; Fri, 10 Jan 2020 20:14:10 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:09 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:51 +0800 Message-Id: <1578716038-9645-4-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 04/11] lavfi/hue: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/vf_hue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index 323333b..026d4b6 100644 --- a/libavfilter/vf_hue.c +++ b/libavfilter/vf_hue.c @@ -86,7 +86,7 @@ typedef struct HueContext { } HueContext; #define OFFSET(x) offsetof(HueContext, x) -#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM +#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption hue_options[] = { { "h", "set the hue angle degrees expression", OFFSET(hue_deg_expr), AV_OPT_TYPE_STRING, { .str = NULL }, .flags = FLAGS }, From patchwork Sat Jan 11 04:13:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17287 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 2D68D44B822 for ; Sat, 11 Jan 2020 06:14:21 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 04AA268AE65; Sat, 11 Jan 2020 06:14:21 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F369568A626 for ; Sat, 11 Jan 2020 06:14:13 +0200 (EET) Received: by mail-pg1-f173.google.com with SMTP id x7so1931714pgl.11 for ; Fri, 10 Jan 2020 20:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZOz1XiYahpckFb4pyACxzW7CVJ7e6eBmcuC8C4olgks=; b=GvUoo9JkbZ3ZVtCJ1nAlt0PD1N9JQ+AIB691ztujdIu4kP+CbM5nNOzKbr2SohCUT8 P98bR578XI/fnE8P1884E8IuNoHhn/FtYYouCOpyWN8A95Vnd8om2NXnXCH8RBerCXlU NpmFVbBq8qlc6kOjxD0kyGbb9Ur/l+PgbJtuy20Z1OHz1QarYdVY0hQ+eWYW+sHrBuZ+ z6GYEd6WvhXGhvWbwSSHcRDKcu8jurFYQApWM/QNvqdXx9x2xDal5sWFQlEutIEnLOiM BTDz9ENCND1/qlL8/wqHMr9r963idcL+EzW6x/u+6OW3kbE0VM+WBv032CI6hhaBoEic GuTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZOz1XiYahpckFb4pyACxzW7CVJ7e6eBmcuC8C4olgks=; b=Qsge2Qcif6KY0GUH5CfRXDvsWMhNX1XaCF54tDMYOzPYmOqEOsalrQGhp5WSUQtEd4 l4r0vj8dLhTLbO2wZVSC07AIg9817PnswNFp2bax7dCgjMwWnt4wB6bL6s46sCHR1cRR v7aZ2mTOtXeHJixoZo9N2oW10GcC+VqIcCCIusUFGadJeTujq/YfnR0xLCDbHF7607Cr ZNufBcYS5kHz/4/8gce7ZsIu/Ne7JmNTjJK2EzzJXFGBhgqCZ0L3xhito3EzTwzT4Smf uEra1odAd+Ey0u79kujIkSqv3gFRGUuJSj4gPUkqXcC1b6mQC9mGtuohn8LIWUwGi2n2 XRAw== X-Gm-Message-State: APjAAAULI7tgpeq7ziTR7EDrS2e78gwqM6ZYxE8Tvgh9PkjlWb+fS1D4 kdI6IOVbtt3vd7VH2rX3KNz/PK5i X-Google-Smtp-Source: APXvYqyU/NumDxZIpRpODben1BrRMHjOOPp4/ZqMpRHOAqYmT6qY+1iI5j16PDZDEkaSBDt+psjm6w== X-Received: by 2002:a65:4109:: with SMTP id w9mr8528447pgp.383.1578716052405; Fri, 10 Jan 2020 20:14:12 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:12 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:52 +0800 Message-Id: <1578716038-9645-5-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 05/11] lavfi/scale: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/vf_scale.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 8620d1c..81b2207 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -569,12 +569,13 @@ static const AVClass *child_class_next(const AVClass *prev) #define OFFSET(x) offsetof(ScaleContext, x) #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM +#define TFLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption scale_options[] = { - { "w", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "width", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "h", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "height","Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, + { "w", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "width", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "h", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "height","Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, { "flags", "Flags to pass to libswscale", OFFSET(flags_str), AV_OPT_TYPE_STRING, { .str = "bilinear" }, .flags = FLAGS }, { "interl", "set interlacing", OFFSET(interlaced), AV_OPT_TYPE_BOOL, {.i64 = 0 }, -1, 1, FLAGS }, { "size", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, FLAGS }, From patchwork Sat Jan 11 04:13:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17288 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 216DA44B822 for ; Sat, 11 Jan 2020 06:14:23 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0A43A68AE92; Sat, 11 Jan 2020 06:14:23 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8FE6168AE92 for ; Sat, 11 Jan 2020 06:14:16 +0200 (EET) Received: by mail-pl1-f179.google.com with SMTP id g6so1626422plt.2 for ; Fri, 10 Jan 2020 20:14:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ed6tnCRNU8VpPBBWaFD+PmkXiWMuics3b7hfijB5q5o=; b=AdVC8MX0RPDSMyuQ6MIUhnmcz35NcXfNyWIlW/cFklkYMnv+kMNw2dwqR192fhr2Sf oRtGstsVnHA8Uu/4BQRxVU1IG7Rp8E2emO7UBmMKysoFj30f+aV8p13gog43EgKr/4ki apY4Ow/QAIW9tDlxytzhMf38DQFku4DzD/+uJ946BbnaKuMOsEsuuaDrxwmgyYcP3zC9 vtS5rWsr4bIKLzrjnfAyaQ6x9mlOW2FyKWZ3HlVJXobHT2w9DyRGERvZ6qHoQlklrNEz 8vipA4fC1NRGxRt4a0lZVlocH0eBTIuBXFWG7C0UnlrFdP4sGqC8dMYLd0aN2vnSHhk8 BSHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ed6tnCRNU8VpPBBWaFD+PmkXiWMuics3b7hfijB5q5o=; b=hhE0s2hCQvXx9wK2epM3etOWWqM5zsk00YvnK+F8qXNhOwFMyODt7MYXGym7d3A2fc NNh0DrvuRlyPURmPbQS44hcgD7LWEJN6ScrAVU69ZDP8LBickvByvqy/DUN50+E9tddW E5a3AIbCAKqsUsL3nkwA+SYxW5Vo6pHL/Pv1gSg+LKaA4oE3v9E4xroqgDLG0npTa9xA LtYRhjekrEf+xRGxV8VDtKaNh6tqPhF7nWZ9lPoLqooIZLaaf9PGTy9TudAzB+ET/q3k /CJHcwHIOhwaDY/Uzy2KFMLQcZx8Rm8eti7fa2eQEX0tJr48G/GRxr+VDgzTZzIoLfXp zRbA== X-Gm-Message-State: APjAAAULSaskfXnCj6qQaef98M17kS9qRRFCCV5otp7nVWLFlax9CtrL o5ZjiQZzQWfKxdWc+njctyh+7a9j X-Google-Smtp-Source: APXvYqwTD0ooOrPsH7t+g/oCdma8XPK2wMJKbVtrFFm4vTP31bwiJCHx3P7+ze+EgbDqUqn40eRKGQ== X-Received: by 2002:a17:902:8690:: with SMTP id g16mr8459842plo.8.1578716054855; Fri, 10 Jan 2020 20:14:14 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:14 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:53 +0800 Message-Id: <1578716038-9645-6-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 06/11] lavfi/streamselect: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/f_streamselect.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c index 7a1ff77..b3ae4be 100644 --- a/libavfilter/f_streamselect.c +++ b/libavfilter/f_streamselect.c @@ -41,9 +41,10 @@ typedef struct StreamSelectContext { #define OFFSET(x) offsetof(StreamSelectContext, x) #define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM +#define TFLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM static const AVOption streamselect_options[] = { { "inputs", "number of input streams", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64=2}, 2, INT_MAX, .flags=FLAGS }, - { "map", "input indexes to remap to outputs", OFFSET(map_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags=FLAGS }, + { "map", "input indexes to remap to outputs", OFFSET(map_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags=TFLAGS }, { NULL } }; From patchwork Sat Jan 11 04:13:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17296 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id F353F447BA8 for ; Sat, 11 Jan 2020 06:22:38 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8718F68AEA7; Sat, 11 Jan 2020 06:22:38 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-vk1-f196.google.com (mail-vk1-f196.google.com [209.85.221.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 433CC68ADDD for ; Sat, 11 Jan 2020 06:22:31 +0200 (EET) Received: by mail-vk1-f196.google.com with SMTP id u6so1193393vkn.13 for ; Fri, 10 Jan 2020 20:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zpg2kNjGB9tEsC+JuQQrjufNCKUQ0dyUFPyErqckkzM=; b=CLWf8uXTtGVudgGCaLXJHh5U4ZittazIktacG8uE5cAZBuj8Xv7wh7pv7tzP1xBzbD 1yl8IeMfm6FoXr6mPhlJKySMrQ6sUWCD7oxNXREIBAIDKl/g02DVebuVALrIYnzblMjR wISV9x+lMYnDfe0HzfdRP0SiSZALAC1Wn83mJaKBKy8YcTtFkiXqhNu1PIYwKvnqSb8o /gY7NsqWPPkqZYv/I9JBBZYqkfUHtR0w4RcT8b+rBT6tt+C0lfE61MxYBr++luNjs4hx XR8/vjHcU9PKcox9kjAidANkMsGBnHnd9S/HxNQAakBoZ4+CwHBZsUYvcSRloG7HWaog xYfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Zpg2kNjGB9tEsC+JuQQrjufNCKUQ0dyUFPyErqckkzM=; b=rKHw4zBkrl4SkLoPzat3eA30aWMhrrxY+Kk8+wmjlzJpf0Af1MGoMa0NLQkiZQJOTf np7xALuCmd8bS9JG9O0CK/P6ySctnTLTmQ8hPDZi86DvU4Ay/k1tUMrNQeDmyM8LE/wN gCjUPTvmIqpJLEp43ur/352WgGqVgojIatmimuY1u8Jqg4LdZYI0BGNBfYGnkiYwNyhQ aXETq7kpsFjT3O0T7++shQMj1Kmp/UqLg6ho1TWQ0p2XhiRz2ujvi6tyJrKSeeqtFbiL r4UbkT5YsPhaJqF5I/gIW/xIwbdYAMVi0TpMjsPEoPXOj025xFIItqYCSm7YAj/0BGCO 3tog== X-Gm-Message-State: APjAAAWlB5DIre257b0w+VY+xG4hjF3YqbNg3DiblUZWn4rJUu0fImNy 56ZtDgnBjBV36JtsNU5ol8lP4lvl X-Google-Smtp-Source: APXvYqxx3oQzy0KpgZQVHpcdBuCammFUzZDh050FyX3ZjNUVeKhEdmVGsnjRsxo63ZpysciXlb4VqA== X-Received: by 2002:a17:902:8542:: with SMTP id d2mr2508040plo.200.1578716057548; Fri, 10 Jan 2020 20:14:17 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:17 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:54 +0800 Message-Id: <1578716038-9645-7-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 07/11] lavfi/rotate: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag Signed-off-by: Jun Zhao --- libavfilter/vf_rotate.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_rotate.c b/libavfilter/vf_rotate.c index 371ff7f..378be44 100644 --- a/libavfilter/vf_rotate.c +++ b/libavfilter/vf_rotate.c @@ -94,10 +94,11 @@ typedef struct ThreadData { #define OFFSET(x) offsetof(RotContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption rotate_options[] = { - { "angle", "set angle (in radians)", OFFSET(angle_expr_str), AV_OPT_TYPE_STRING, {.str="0"}, CHAR_MIN, CHAR_MAX, .flags=FLAGS }, - { "a", "set angle (in radians)", OFFSET(angle_expr_str), AV_OPT_TYPE_STRING, {.str="0"}, CHAR_MIN, CHAR_MAX, .flags=FLAGS }, + { "angle", "set angle (in radians)", OFFSET(angle_expr_str), AV_OPT_TYPE_STRING, {.str="0"}, CHAR_MIN, CHAR_MAX, .flags=TFLAGS }, + { "a", "set angle (in radians)", OFFSET(angle_expr_str), AV_OPT_TYPE_STRING, {.str="0"}, CHAR_MIN, CHAR_MAX, .flags=TFLAGS }, { "out_w", "set output width expression", OFFSET(outw_expr_str), AV_OPT_TYPE_STRING, {.str="iw"}, CHAR_MIN, CHAR_MAX, .flags=FLAGS }, { "ow", "set output width expression", OFFSET(outw_expr_str), AV_OPT_TYPE_STRING, {.str="iw"}, CHAR_MIN, CHAR_MAX, .flags=FLAGS }, { "out_h", "set output height expression", OFFSET(outh_expr_str), AV_OPT_TYPE_STRING, {.str="ih"}, CHAR_MIN, CHAR_MAX, .flags=FLAGS }, From patchwork Sat Jan 11 04:13:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17289 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id EC4C544B822 for ; Sat, 11 Jan 2020 06:14:23 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id D469168AEA7; Sat, 11 Jan 2020 06:14:23 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BF80D68AE9B for ; Sat, 11 Jan 2020 06:14:21 +0200 (EET) Received: by mail-pj1-f53.google.com with SMTP id l35so1850579pje.3 for ; Fri, 10 Jan 2020 20:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Gw+7O7g1FjWR8xBMIyEgSU/cBZ3GCaEe2ExMQZZYXRI=; b=PW4atkS/NOCoBN5h6lVYIRFodxKvmQkLMkh1bFJZM2He9BdKGLfNGDqDtMHnsfi4mQ +Axf1ZSnrSqT9fqyz8+wEFgKNpReTItoMQpiX1H6iVbMWQ+kwy1DJBQeatpj8pwGT+z1 5kt75X6UEmEFrVUTWxA1jjOrhie5t4SlWKv2nMSo9haSb045EM4jvk5iryPomyNNxteT Rmyai/C1vavBbvxpGL29TmxRjwkKvziznBn2ea/XXHL/k2bY6TeLz1TNHqpC8B6pL2nC CqJQNr2gUfzOODYYyMESZO2jINGj0OszUn5UUj3e5VOunSxYq1+UdGSuMix8y6lJvsUy N1eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Gw+7O7g1FjWR8xBMIyEgSU/cBZ3GCaEe2ExMQZZYXRI=; b=kO6DSSfxFOJ5j7aA9rLniQmJxeieHjWggqa5bd8wQ673bo/LsmV2GvhHgKLGLvJ32/ H6qQU6GloIn6/OcN63olr8yd9NQxGuoI2g7dH9CgmCnMr3vLM/ljec6/z0CLq/SlDhzc 1Z4j7sysrDrYdAV+c64fdLGKWyBqq1eJIKd2rCvDzPZJwJL86ZVCC0ChCT5eRK/QYFrx xctoNhRLtgExIwZnV5Uy1pdlEYGQyuaV8IPVo0f3bPFAz7M06BNg+MV0NtYpqoGvhquL LSXH8CA02Qh0Av1R4xQx1WH2PZoRUUI+UkLTrem6wVD78mcKAC4iViUJLk0n8/XH3F4E XmKA== X-Gm-Message-State: APjAAAVgsJ4KmaqvOx9kYWdR7M2QWw6uO7DYMgFcs4Qdk08LG9/0Eqwx 48HWCVw1PvwsblGAfh7IBxtUYO7u X-Google-Smtp-Source: APXvYqwgodn29DUQ49MeqOawgGmNE3h4O1E5HzMzJ+aTgzltsCwAh+b15bX4/otCVri7CggJZTwWlw== X-Received: by 2002:a17:90a:a05:: with SMTP id o5mr9439049pjo.77.1578716060003; Fri, 10 Jan 2020 20:14:20 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:19 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:55 +0800 Message-Id: <1578716038-9645-8-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 08/11] lavfi/eq: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag Signed-off-by: Jun Zhao --- libavfilter/vf_eq.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfilter/vf_eq.c b/libavfilter/vf_eq.c index 914a07f..f4cf499 100644 --- a/libavfilter/vf_eq.c +++ b/libavfilter/vf_eq.c @@ -353,24 +353,24 @@ static const AVFilterPad eq_outputs[] = { #define OFFSET(x) offsetof(EQContext, x) #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM - +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption eq_options[] = { { "contrast", "set the contrast adjustment, negative values give a negative image", - OFFSET(contrast_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(contrast_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "brightness", "set the brightness adjustment", - OFFSET(brightness_expr), AV_OPT_TYPE_STRING, {.str = "0.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(brightness_expr), AV_OPT_TYPE_STRING, {.str = "0.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "saturation", "set the saturation adjustment", - OFFSET(saturation_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(saturation_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "gamma", "set the initial gamma value", - OFFSET(gamma_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(gamma_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "gamma_r", "gamma value for red", - OFFSET(gamma_r_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(gamma_r_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "gamma_g", "gamma value for green", - OFFSET(gamma_g_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(gamma_g_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "gamma_b", "gamma value for blue", - OFFSET(gamma_b_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(gamma_b_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "gamma_weight", "set the gamma weight which reduces the effect of gamma on bright areas", - OFFSET(gamma_weight_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, FLAGS }, + OFFSET(gamma_weight_expr), AV_OPT_TYPE_STRING, {.str = "1.0"}, CHAR_MIN, CHAR_MAX, TFLAGS }, { "eval", "specify when to evaluate expressions", OFFSET(eval_mode), AV_OPT_TYPE_INT, {.i64 = EVAL_MODE_INIT}, 0, EVAL_MODE_NB-1, FLAGS, "eval" }, { "init", "eval expressions once during initialization", 0, AV_OPT_TYPE_CONST, {.i64=EVAL_MODE_INIT}, .flags = FLAGS, .unit = "eval" }, { "frame", "eval expressions per-frame", 0, AV_OPT_TYPE_CONST, {.i64=EVAL_MODE_FRAME}, .flags = FLAGS, .unit = "eval" }, From patchwork Sat Jan 11 04:13:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17290 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id D673444B822 for ; Sat, 11 Jan 2020 06:14:25 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BE08568AEAB; Sat, 11 Jan 2020 06:14:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9293668AEB3 for ; Sat, 11 Jan 2020 06:14:24 +0200 (EET) Received: by mail-pj1-f46.google.com with SMTP id kx11so1787754pjb.4 for ; Fri, 10 Jan 2020 20:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f9k5R8GeYAJqQmXmDX2+tH1KNzq2DiltQfkyTVhNV7U=; b=fauysjW3C91YodMPGohQHH5PfZTPwbtqvr92bqxblXKk/q+P+Spu/ZjHxp8glGpTNm IyrLPb+og7GFnHcp9e8b5FbF6G8UiVCzSMgSMuWZlXNASiHSnfOBWdzRMevthsgAq0+r 4x9wB2bz55nNEHuUtCB1BSxMLCilXw3qs0H04W7MTy+Is8cV/NkOYKvIJrbPzrZVI/J9 R9sB3/cHNoNrpNvl1DIraSggnUIj3q93GaiwrD9/S2RVDGZdUNrywfVqIKTm7we9E89J n0LXz+1WCH1LK4Eid/TnB70epHyiaFiL0emgDkEyZnr6Ws040sz9WflvKncUbPbes4fQ DrGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=f9k5R8GeYAJqQmXmDX2+tH1KNzq2DiltQfkyTVhNV7U=; b=T1MUAyrWustAHeMMRJbEAkDjPlH9L9EE5JMo+weXwJJS4kXNoTz01PfArB7VEV7ne1 yGAqh2I/ETsJAmc6n4Tcu+vFDVLZGC8vCwkQjrGOXByWDwJyEbFVZQ0ZMSFM4vkzsmSD 0fuxsvue2JexgFlHSj7mjzXJCd6fuP31/M6TMijd2WNOqnE/mBO3nvBQdWoLdC/Q4m73 GWxmZXMnSKqYQIFcZf5BZYcAbd09/xKReDjpxi4Zq9TayEbr6zI+Locz/NxZKWrE44Q0 XvhO2nRwsdDSVfiTZvp2TmV+eNCAQsdGnMHxXQtD5sHVo5DMpKcs7FRgtZ2i/Ze1RZE8 FHhw== X-Gm-Message-State: APjAAAWyFX4apY3+Q2+of/EUPvhJaVw/y80XxojirO4MlUIQP6Fo4xcg JUJWKL32iBKFTrIs8FTnw5v8mlc9 X-Google-Smtp-Source: APXvYqzrs4yn6rlDpQZKYmQwZsFyFuoF9W/SbSwWRFN77Ob6SaUcTk7w+RElwxCwfd0FoL+hx3CX9A== X-Received: by 2002:a17:902:a50a:: with SMTP id s10mr2468334plq.136.1578716062794; Fri, 10 Jan 2020 20:14:22 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:22 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:56 +0800 Message-Id: <1578716038-9645-9-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 09/11] lavfi/firequalizer: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag Signed-off-by: Jun Zhao --- libavfilter/af_firequalizer.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index 00ddc87..f4513a1 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -112,10 +112,11 @@ typedef struct FIREqualizerContext { #define OFFSET(x) offsetof(FIREqualizerContext, x) #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM +#define TFLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption firequalizer_options[] = { - { "gain", "set gain curve", OFFSET(gain), AV_OPT_TYPE_STRING, { .str = "gain_interpolate(f)" }, 0, 0, FLAGS }, - { "gain_entry", "set gain entry", OFFSET(gain_entry), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, FLAGS }, + { "gain", "set gain curve", OFFSET(gain), AV_OPT_TYPE_STRING, { .str = "gain_interpolate(f)" }, 0, 0, TFLAGS }, + { "gain_entry", "set gain entry", OFFSET(gain_entry), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, TFLAGS }, { "delay", "set delay", OFFSET(delay), AV_OPT_TYPE_DOUBLE, { .dbl = 0.01 }, 0.0, 1e10, FLAGS }, { "accuracy", "set accuracy", OFFSET(accuracy), AV_OPT_TYPE_DOUBLE, { .dbl = 5.0 }, 0.0, 1e10, FLAGS }, { "wfunc", "set window function", OFFSET(wfunc), AV_OPT_TYPE_INT, { .i64 = WFUNC_HANN }, 0, NB_WFUNC-1, FLAGS, "wfunc" }, From patchwork Sat Jan 11 04:13:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17291 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id D3E1244B822 for ; Sat, 11 Jan 2020 06:14:28 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B815768AEBC; Sat, 11 Jan 2020 06:14:28 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 75C4968A626 for ; Sat, 11 Jan 2020 06:14:27 +0200 (EET) Received: by mail-pl1-f181.google.com with SMTP id x17so1625370pln.1 for ; Fri, 10 Jan 2020 20:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yaMZlJHqbXqk6VDVf8Van0RdL9q0+zbBGzZzdJ4AXOg=; b=n/A08L97S9xXXH7PqdtwFJvwFwMDHB/tU4hexgf0DfXL7kZyOoOEAIQsRetYo4cVQm +DAMI7W9bu9BZZhub9yBIVl9MQQzcMREV2BhKSaxIxmtS8gsMcmU42++5mAcRvFsLEJM i3/EXLZwow55qWZB+WTZpcBh261PVRJcmnYr/8Yp2krQqpZ/kRkMpTU7NgofgOJZWxIB PCzqPqbEq3bj3YnAiTV6pHp7IGZtVnMmLywCbjLvFbd+n8yY0ly6zmcvqFp7hBmz/Uck aQ7QVkEOIFFfUN6BV1fjscjDyiv2mgi1fM+3Dx6j5ZWZhfEq2bQnoEVJurju8m3n2P0c sPrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yaMZlJHqbXqk6VDVf8Van0RdL9q0+zbBGzZzdJ4AXOg=; b=nppke+4UU64IAlm0Vt0dKZ3TZDVq+3L49DNvjZZvDP5p0de6UMu6bA4t6SqG/fCTef zTJoq+y5RmtpagnINGVfkbWWJDE8PRwzDjzcHdCPqkfmHp0l1UOWOsGjKtM1rnzZ2fJN mcFKc3KvHFPdfyw9fvF1cYygTVd3B1VqmQtyxZumanEyITL52ghrpq94LUbTihO2Gb0Z OthUrfrjIOhng9PUnCXPv1f+KEHPN5r5IqZmTE1a1pem/bBixtHJ4MgLV2YetR2oTaM3 3figMi1p0Vz3t2xdJGH5D3X79bmhgsWNihggneLbr37Wd84hqLxfeu4PC921Rkkkys8q acHw== X-Gm-Message-State: APjAAAX1RQZWEU4H/fyc5vUILkhIItdDILxeTRSoQKHYeSzwYaGa6kJ4 ELuuL6A0umYfIp7yxOD2Tie2acui X-Google-Smtp-Source: APXvYqyjes0BTE0lAizjg9W5MuxIkcTD+hdkilc7wsaH1Ss2nmoGD3ZjhVRv7Qel7xu9Q2YwKFO2BQ== X-Received: by 2002:a17:902:547:: with SMTP id 65mr8148255plf.50.1578716065685; Fri, 10 Jan 2020 20:14:25 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:25 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:57 +0800 Message-Id: <1578716038-9645-10-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 10/11] lavfi/zscale: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag Signed-off-by: Jun Zhao --- libavfilter/vf_zscale.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index db2dd17..46c5dd7 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -738,12 +738,13 @@ static int process_command(AVFilterContext *ctx, const char *cmd, const char *ar #define OFFSET(x) offsetof(ZScaleContext, x) #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM +#define TFLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM static const AVOption zscale_options[] = { - { "w", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "width", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "h", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, - { "height", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = FLAGS }, + { "w", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "width", "Output video width", OFFSET(w_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "h", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, + { "height", "Output video height", OFFSET(h_expr), AV_OPT_TYPE_STRING, .flags = TFLAGS }, { "size", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, { "s", "set video size", OFFSET(size_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, { "dither", "set dither type", OFFSET(dither), AV_OPT_TYPE_INT, {.i64 = 0}, 0, ZIMG_DITHER_ERROR_DIFFUSION, FLAGS, "dither" }, From patchwork Sat Jan 11 04:13:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 17292 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id E29B744B822 for ; Sat, 11 Jan 2020 06:14:31 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CA04D68AE2B; Sat, 11 Jan 2020 06:14:31 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3E24868A626 for ; Sat, 11 Jan 2020 06:14:30 +0200 (EET) Received: by mail-pl1-f173.google.com with SMTP id y8so1604546pll.13 for ; Fri, 10 Jan 2020 20:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RaxgjeEF5vbu26owanL/XEi3xnzXmRkM3FioXJ98sBQ=; b=BkOohzttRmpaHxvo2niIzxVcehYB02ok6qjoN7xGPvKByAuQTGZ3cJ79eRUtzQeBLp txtAjiRUeY7Jp037HBJa7M9xxn08xxuMoHO3KCucXK1Fs3EtUpVD8esqZRe2406zuitr oSc5OljxggkwXbZZx+tsNCOJp/G+10YsZ9dAYPtHccEZUMK7IM7EWjvSIcu+0Y173eTp YaPMbu/+rbjW7cgfKOCf8jek//gjyJmdAMtyItNDE6bO0iK3+7EXclBrTqDw50BDZzLZ Mo9hPWlNF2GMR7CfetCwC8tMOvII9bxNWpy5ZSGAgAh2hcCtDNG2MumvsFUC47joUuUZ pYpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RaxgjeEF5vbu26owanL/XEi3xnzXmRkM3FioXJ98sBQ=; b=ZO2vsjPROmvgxVjdq7uzelnSstlHs6GNE+WbMBIJsmw4Md5rO+HSHCZAsHOv4/CHeq LRzDM8PPcUpRm2+OLdlN/vNoc+LOhwz09m+g4PaCOd1iCP7hNZmLow6RAGgDp362HL+I dthoMTvwRxSux/P2EVlkkjKTZl++4DnSsyApREGKrRUAtWYAQyTsTvxkVm1TTzKmILTO XiW8MKArcmzH2AaOzlqJx8Qmgw5BpiAXJqCJXh6xXppUI6CDPRTjwx9zhclVkd5gtlvn szWolFufLjIaK8E696gsk+4fs8mLWvFmNzOdr7I+Y6vmMhiOGfU+M5PtBrY/nPEnYMd5 0Z8Q== X-Gm-Message-State: APjAAAUwkj7hqmlsBlvCYGRlqlHh3ANpoMPkZCx+WjR+mWOV2+hR0tDd hEMctHfCNT5YpKbGVYmzo6LdWolk X-Google-Smtp-Source: APXvYqyhP0qXvmDI6gcz/rRLBcACqKC9IPhYtD9RHsTuejr40GXKl98P2ke7vnQB4S44Wm7LiPej5Q== X-Received: by 2002:a17:902:bf41:: with SMTP id u1mr2420347pls.207.1578716068516; Fri, 10 Jan 2020 20:14:28 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id g21sm4808325pfo.126.2020.01.10.20.14.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 20:14:28 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sat, 11 Jan 2020 12:13:58 +0800 Message-Id: <1578716038-9645-11-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> References: <1578716038-9645-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 11/11] lavfi/vulume: enable runtime change flag 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 Cc: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From: Jun Zhao enable runtime change flag. Signed-off-by: Jun Zhao --- libavfilter/af_volume.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index b106ed8..213c571 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -62,10 +62,11 @@ static const char *const var_names[] = { #define OFFSET(x) offsetof(VolumeContext, x) #define A AV_OPT_FLAG_AUDIO_PARAM #define F AV_OPT_FLAG_FILTERING_PARAM +#define T AV_OPT_FLAG_RUNTIME_PARAM static const AVOption volume_options[] = { { "volume", "set volume adjustment expression", - OFFSET(volume_expr), AV_OPT_TYPE_STRING, { .str = "1.0" }, .flags = A|F }, + OFFSET(volume_expr), AV_OPT_TYPE_STRING, { .str = "1.0" }, .flags = A|F|T }, { "precision", "select mathematical precision", OFFSET(precision), AV_OPT_TYPE_INT, { .i64 = PRECISION_FLOAT }, PRECISION_FIXED, PRECISION_DOUBLE, A|F, "precision" }, { "fixed", "select 8-bit fixed-point", 0, AV_OPT_TYPE_CONST, { .i64 = PRECISION_FIXED }, INT_MIN, INT_MAX, A|F, "precision" },