aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorhwren <hwrenx@126.com>2018-10-18 23:02:08 +0800
committerJun Zhao <jun.zhao@intel.com>2018-10-28 14:20:29 +0800
commit9c190ad39481452a7424e65c3692c7cbf9533d84 (patch)
treea42be02a8166276192af328a9a3c2da68630e0d7 /libavcodec
parentcd34c6a57ee6d12b30e6283db94a7e44fbedb244 (diff)
downloadffmpeg-9c190ad39481452a7424e65c3692c7cbf9533d84.tar.gz
lavc/libxavs2: unified naming style
Signed-off-by: hwren <hwrenx@126.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libxavs2.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c
index 2b47d0c5d2..1152c634e8 100644
--- a/libavcodec/libxavs2.c
+++ b/libavcodec/libxavs2.c
@@ -78,18 +78,18 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
return AVERROR(ENOMEM);
}
- xavs2_opt_set2("width", "%d", avctx->width);
- xavs2_opt_set2("height", "%d", avctx->height);
- xavs2_opt_set2("bframes", "%d", avctx->max_b_frames);
- xavs2_opt_set2("bitdepth", "%d", bit_depth);
- xavs2_opt_set2("log", "%d", cae->log_level);
- xavs2_opt_set2("preset", "%d", cae->preset_level);
+ xavs2_opt_set2("Width", "%d", avctx->width);
+ xavs2_opt_set2("Height", "%d", avctx->height);
+ xavs2_opt_set2("BFrames", "%d", avctx->max_b_frames);
+ xavs2_opt_set2("BitDepth", "%d", bit_depth);
+ xavs2_opt_set2("Log", "%d", cae->log_level);
+ xavs2_opt_set2("Preset", "%d", cae->preset_level);
/* not the same parameter as the IntraPeriod in xavs2 log */
- xavs2_opt_set2("intraperiod", "%d", avctx->gop_size);
+ xavs2_opt_set2("IntraPeriod", "%d", avctx->gop_size);
- xavs2_opt_set2("thread_frames", "%d", avctx->thread_count);
- xavs2_opt_set2("thread_rows", "%d", cae->lcu_row_threads);
+ xavs2_opt_set2("ThreadFrames", "%d", avctx->thread_count);
+ xavs2_opt_set2("ThreadRows", "%d", cae->lcu_row_threads);
xavs2_opt_set2("OpenGOP", "%d", 1);
@@ -109,11 +109,11 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
if (avctx->bit_rate > 0) {
xavs2_opt_set2("RateControl", "%d", 1);
xavs2_opt_set2("TargetBitRate", "%"PRId64"", avctx->bit_rate);
- xavs2_opt_set2("initial_qp", "%d", cae->initial_qp);
- xavs2_opt_set2("max_qp", "%d", cae->max_qp);
- xavs2_opt_set2("min_qp", "%d", cae->min_qp);
+ xavs2_opt_set2("InitialQP", "%d", cae->initial_qp);
+ xavs2_opt_set2("MaxQP", "%d", cae->max_qp);
+ xavs2_opt_set2("MinQP", "%d", cae->min_qp);
} else {
- xavs2_opt_set2("initial_qp", "%d", cae->qp);
+ xavs2_opt_set2("InitialQP", "%d", cae->qp);
}