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
e1540cdf
Commit
e1540cdf
authored
Dec 12, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_uspp: use the average QP instead of QP[0]
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
51727823
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
vf_uspp.c
libavfilter/vf_uspp.c
+10
-2
No files found.
libavfilter/vf_uspp.c
View file @
e1540cdf
...
...
@@ -227,8 +227,16 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3],
if
(
p
->
qp
)
p
->
frame
->
quality
=
p
->
qp
*
FF_QP2LAMBDA
;
else
p
->
frame
->
quality
=
norm_qscale
(
qp_store
[
0
],
p
->
qscale_type
)
*
FF_QP2LAMBDA
;
else
{
int
qpsum
=
0
;
int
qpcount
=
(
height
>>
4
)
*
(
height
>>
4
);
for
(
y
=
0
;
y
<
(
height
>>
4
);
y
++
)
{
for
(
x
=
0
;
x
<
(
width
>>
4
);
x
++
)
qpsum
+=
qp_store
[
x
+
y
*
qp_stride
];
}
p
->
frame
->
quality
=
norm_qscale
((
qpsum
+
qpcount
/
2
)
/
qpcount
,
p
->
qscale_type
)
*
FF_QP2LAMBDA
;
}
// init per MB qscale stuff FIXME
p
->
frame
->
height
=
height
;
p
->
frame
->
width
=
width
;
...
...
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