Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9c190ad3
Commit
9c190ad3
authored
Oct 18, 2018
by
hwren
Committed by
Jun Zhao
Oct 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libxavs2: unified naming style
Signed-off-by:
hwren
<
hwrenx@126.com
>
parent
cd34c6a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
libxavs2.c
libavcodec/libxavs2.c
+13
-13
No files found.
libavcodec/libxavs2.c
View file @
9c190ad3
...
...
@@ -78,18 +78,18 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
return
AVERROR
(
ENOMEM
);
}
xavs2_opt_set2
(
"
w
idth"
,
"%d"
,
avctx
->
width
);
xavs2_opt_set2
(
"
h
eight"
,
"%d"
,
avctx
->
height
);
xavs2_opt_set2
(
"
bf
rames"
,
"%d"
,
avctx
->
max_b_frames
);
xavs2_opt_set2
(
"
bitd
epth"
,
"%d"
,
bit_depth
);
xavs2_opt_set2
(
"
l
og"
,
"%d"
,
cae
->
log_level
);
xavs2_opt_set2
(
"
p
reset"
,
"%d"
,
cae
->
preset_level
);
xavs2_opt_set2
(
"
W
idth"
,
"%d"
,
avctx
->
width
);
xavs2_opt_set2
(
"
H
eight"
,
"%d"
,
avctx
->
height
);
xavs2_opt_set2
(
"
BF
rames"
,
"%d"
,
avctx
->
max_b_frames
);
xavs2_opt_set2
(
"
BitD
epth"
,
"%d"
,
bit_depth
);
xavs2_opt_set2
(
"
L
og"
,
"%d"
,
cae
->
log_level
);
xavs2_opt_set2
(
"
P
reset"
,
"%d"
,
cae
->
preset_level
);
/* not the same parameter as the IntraPeriod in xavs2 log */
xavs2_opt_set2
(
"
intrap
eriod"
,
"%d"
,
avctx
->
gop_size
);
xavs2_opt_set2
(
"
IntraP
eriod"
,
"%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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment