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 },