From patchwork Tue Oct 2 13:42:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hwren X-Patchwork-Id: 10636 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:ab0:73d2:0:0:0:0:0 with SMTP id m18csp2977000uaq; Tue, 2 Oct 2018 07:14:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV60rX8PYX+jHzpxJDYKUodjzO+QcY/cwDR09uBTLZlKY6aLiOkw9WSvFPf8+NYilqQ/VdbuQ X-Received: by 2002:a1c:f313:: with SMTP id q19-v6mr1933189wmq.87.1538489677278; Tue, 02 Oct 2018 07:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538489677; cv=none; d=google.com; s=arc-20160816; b=lFqYB1JucWmdV4O3VLIECicO7UGay7vJs7hUEZixR976SJXqitnQb0bOONrK0tpjEH oB02siHoHKunPsy6YkXO6lL6uHXH7HSwHQ/1v8zuOsnbQNsmsQIdX3bQDkrENmUKelP+ NksNNug0yXsptY7HEk/JQbePKmgWs6UX+zm6QaP6TStz1l0e1yfqv1O1vyRjFKcMnwY0 gdl/5mbtLv8nv7E6+Qm+lg4kkWQjluW99Itf9hAnkM9CU0iTVpASi0NxQHjb3PC/U6ta dV70wdfSGCJAdQz2R1cG+hOJ9Rwg7xBSyzCiP2J2sU49F5HHPjCbi4xONsXfQwAQ2HPB /Q5g== 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:dkim-signature:delivered-to; bh=kN1bgJiW3yc6kRySS9ilBqGCNZRUWmE87AG2hsrprf4=; b=kDcu5ITqApfJlMlRt8K7Ikvv+R0QgNVsJ5vfJUaoz5zDuPEbmeXqYcKfCaHoQorMGH cvZDq2JPnxR/xrHPxm6n1BKq7pgZ24Ac7PJXlcqa1uoksznAV+0P5mNFdpzZ9AQ4ui0F 39MS7BFiSoekVGWw6ucEmrWQ91owdGLq9KrLBfCXOqP2rteJU0EZ6WrMlfzqUyROoBiP dKEO12+EhsUwHDTRfcDHgE86289wVdlx4M9UmNdvzF/Shho7C7ivqZ4SAd9M3qNsb1xE tDs619vadq4lHs3vT3xn0DAhjB0t9aLIhkktVP9xeNr3qoqhj9lKkHNC0345QrxNyo5e W/yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@126.com header.s=s110527 header.b=Zc9EkZ9P; 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=126.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i17-v6si12533662wrr.17.2018.10.02.07.14.36; Tue, 02 Oct 2018 07:14:37 -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=@126.com header.s=s110527 header.b=Zc9EkZ9P; 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=126.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1AA0268A277; Tue, 2 Oct 2018 17:14:05 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from m15-112.126.com (m15-112.126.com [220.181.15.112]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F55168A20D for ; Tue, 2 Oct 2018 17:13:55 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=RWYwYMw+/4huJNcJGJ lEHVDejhxTbhFea2n5U8S1Hbk=; b=Zc9EkZ9PcV4FjM3eACUgwI3mVty7erPS2W WyIwiJTopnRe3vXLNNHK/k3YNQRYGB9qifhaoaN1Xmk7R4ZcqFwfa2VeKaoAS/FG G6uFtLXSUdmMJk+HRynlrjkX3Is7IchiftbNz1XAhOHBWZxBCU2LSChuwHNnn1Vd RryJyeVcg= Received: from localhost.localdomain (unknown [162.105.162.85]) by smtp2 (Coremail) with SMTP id DMmowAD3JkXjdbNbP1JXJQ--.58062S5; Tue, 02 Oct 2018 21:43:01 +0800 (CST) From: hwren To: ffmpeg-devel@ffmpeg.org Date: Tue, 2 Oct 2018 21:42:59 +0800 Message-Id: <1538487779-3283-3-git-send-email-hwrenx@126.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538487779-3283-1-git-send-email-hwrenx@126.com> References: <1538487779-3283-1-git-send-email-hwrenx@126.com> X-CM-TRANSID: DMmowAD3JkXjdbNbP1JXJQ--.58062S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7Ar47tw1DAF1Duw48Cw45KFg_yoW8uFW5pr y5XrZIqr1DJ3W8Zr93AFWkG3W5ur1fWan3G3yakr47Jw10kr9rtFy7CFy5XrZ2vr4kJrWU ZryYyF1xCw45GrJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jUWrXUUUUU= X-Originating-IP: [162.105.162.85] X-CM-SenderInfo: pkzuv0b06rjloofrz/1tbiqAXT6VpD5+FhAAAAsp Subject: [FFmpeg-devel] [PATCH v1 3/3] lavc/libxavs2: unified option descriptions format 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" Signed-off-by: hwren --- libavcodec/libxavs2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index cb01291..6267b98 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -249,14 +249,14 @@ static av_cold int xavs2_close(AVCodecContext *avctx) #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { - { "lcu_row_threads" , "number of parallel threads for rows" , OFFSET(lcu_row_threads) , AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, VE }, + { "lcu_row_threads" , "Number of parallel threads for rows" , OFFSET(lcu_row_threads) , AV_OPT_TYPE_INT, {.i64 = 0 }, 0, INT_MAX, VE }, { "initial_qp" , "Quantization initial parameter" , OFFSET(initial_qp) , AV_OPT_TYPE_INT, {.i64 = 34 }, 1, 63, VE }, { "qp" , "Quantization parameter" , OFFSET(qp) , AV_OPT_TYPE_INT, {.i64 = 34 }, 1, 63, VE }, - { "max_qp" , "max qp for rate control" , OFFSET(max_qp) , AV_OPT_TYPE_INT, {.i64 = 55 }, 0, 63, VE }, - { "min_qp" , "min qp for rate control" , OFFSET(min_qp) , AV_OPT_TYPE_INT, {.i64 = 20 }, 0, 63, VE }, + { "max_qp" , "Max qp for rate control" , OFFSET(max_qp) , AV_OPT_TYPE_INT, {.i64 = 55 }, 0, 63, VE }, + { "min_qp" , "Min qp for rate control" , OFFSET(min_qp) , AV_OPT_TYPE_INT, {.i64 = 20 }, 0, 63, VE }, { "speed_level" , "Speed level, higher is better but slower", OFFSET(preset_level) , AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 9, VE }, - { "log_level" , "log level: -1: none, 0: error, 1: warning, 2: info, 3: debug", OFFSET(log_level) , AV_OPT_TYPE_INT, {.i64 = 0 }, -1, 3, VE }, - { "xavs2-params" , "set the xavs2 configuration using a :-separated list of key=value parameters", OFFSET(xavs2_opts), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, + { "log_level" , "Log level: -1: none, 0: error, 1: warning, 2: info, 3: debug", OFFSET(log_level) , AV_OPT_TYPE_INT, {.i64 = 0 }, -1, 3, VE }, + { "xavs2-params" , "Set the xavs2 configuration using a :-separated list of key=value parameters", OFFSET(xavs2_opts), AV_OPT_TYPE_STRING, { 0 }, 0, 0, VE }, { NULL }, };