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
c4c2c4df
Commit
c4c2c4df
authored
Feb 10, 2019
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi_encode_vp9: Fix whitespace after previous patch
parent
28e619e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
vaapi_encode_vp9.c
libavcodec/vaapi_encode_vp9.c
+15
-15
No files found.
libavcodec/vaapi_encode_vp9.c
View file @
c4c2c4df
...
@@ -182,21 +182,21 @@ static av_cold int vaapi_encode_vp9_configure(AVCodecContext *avctx)
...
@@ -182,21 +182,21 @@ static av_cold int vaapi_encode_vp9_configure(AVCodecContext *avctx)
VAAPIEncodeVP9Context
*
priv
=
avctx
->
priv_data
;
VAAPIEncodeVP9Context
*
priv
=
avctx
->
priv_data
;
if
(
ctx
->
rc_mode
->
quality
)
{
if
(
ctx
->
rc_mode
->
quality
)
{
priv
->
q_idx_p
=
av_clip
(
ctx
->
rc_quality
,
0
,
VP9_MAX_QUANT
);
priv
->
q_idx_p
=
av_clip
(
ctx
->
rc_quality
,
0
,
VP9_MAX_QUANT
);
if
(
avctx
->
i_quant_factor
>
0
.
0
)
if
(
avctx
->
i_quant_factor
>
0
.
0
)
priv
->
q_idx_idr
=
av_clip
((
priv
->
q_idx_p
*
priv
->
q_idx_idr
=
avctx
->
i_quant_factor
+
av_clip
((
avctx
->
i_quant_factor
*
priv
->
q_idx_p
+
avctx
->
i_quant_offset
)
+
0
.
5
,
avctx
->
i_quant_offset
)
+
0
.
5
,
0
,
VP9_MAX_QUANT
);
0
,
VP9_MAX_QUANT
);
else
else
priv
->
q_idx_idr
=
priv
->
q_idx_p
;
priv
->
q_idx_idr
=
priv
->
q_idx_p
;
if
(
avctx
->
b_quant_factor
>
0
.
0
)
if
(
avctx
->
b_quant_factor
>
0
.
0
)
priv
->
q_idx_b
=
av_clip
((
priv
->
q_idx_p
*
priv
->
q_idx_b
=
avctx
->
b_quant_factor
+
av_clip
((
avctx
->
b_quant_factor
*
priv
->
q_idx_p
+
avctx
->
b_quant_offset
)
+
0
.
5
,
avctx
->
b_quant_offset
)
+
0
.
5
,
0
,
VP9_MAX_QUANT
);
0
,
VP9_MAX_QUANT
);
else
else
priv
->
q_idx_b
=
priv
->
q_idx_p
;
priv
->
q_idx_b
=
priv
->
q_idx_p
;
}
else
{
}
else
{
// Arbitrary value.
// Arbitrary value.
priv
->
q_idx_idr
=
priv
->
q_idx_p
=
priv
->
q_idx_b
=
100
;
priv
->
q_idx_idr
=
priv
->
q_idx_p
=
priv
->
q_idx_b
=
100
;
...
...
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