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
2a9b9579
Commit
2a9b9579
authored
Mar 22, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postproc/postprocess_template: Move QP initialization down
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
330113b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
postprocess_template.c
libpostproc/postprocess_template.c
+22
-23
No files found.
libpostproc/postprocess_template.c
View file @
2a9b9579
...
...
@@ -3475,29 +3475,6 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
const
int
stride
=
dstStride
;
av_unused
uint8_t
*
tmpXchg
;
if
(
isColor
){
QP
=
QPptr
[
x
>>
qpHShift
];
c
.
nonBQP
=
nonBQPptr
[
x
>>
qpHShift
];
}
else
{
QP
=
QPptr
[
x
>>
4
];
QP
=
(
QP
*
QPCorrecture
+
256
*
128
)
>>
16
;
c
.
nonBQP
=
nonBQPptr
[
x
>>
4
];
c
.
nonBQP
=
(
c
.
nonBQP
*
QPCorrecture
+
256
*
128
)
>>
16
;
yHistogram
[
srcBlock
[
srcStride
*
12
+
4
]
]
++
;
}
c
.
QP
=
QP
;
#if TEMPLATE_PP_MMX
__asm__
volatile
(
"movd %1, %%mm7
\n\t
"
"packuswb %%mm7, %%mm7
\n\t
"
// 0, 0, 0, QP, 0, 0, 0, QP
"packuswb %%mm7, %%mm7
\n\t
"
// 0,QP, 0, QP, 0,QP, 0, QP
"packuswb %%mm7, %%mm7
\n\t
"
// QP,..., QP
"movq %%mm7, %0
\n\t
"
:
"=m"
(
c
.
pQPb
)
:
"r"
(
QP
)
);
#endif
#if TEMPLATE_PP_MMXEXT && HAVE_6REGS
/*
...
...
@@ -3546,6 +3523,28 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
RENAME(deInterlaceBlendCubic)(dstBlock, dstStride);
*/
if
(
isColor
){
QP
=
QPptr
[
x
>>
qpHShift
];
c
.
nonBQP
=
nonBQPptr
[
x
>>
qpHShift
];
}
else
{
QP
=
QPptr
[
x
>>
4
];
QP
=
(
QP
*
QPCorrecture
+
256
*
128
)
>>
16
;
c
.
nonBQP
=
nonBQPptr
[
x
>>
4
];
c
.
nonBQP
=
(
c
.
nonBQP
*
QPCorrecture
+
256
*
128
)
>>
16
;
yHistogram
[
srcBlock
[
srcStride
*
12
+
4
]
]
++
;
}
c
.
QP
=
QP
;
#if TEMPLATE_PP_MMX
__asm__
volatile
(
"movd %1, %%mm7
\n\t
"
"packuswb %%mm7, %%mm7
\n\t
"
// 0, 0, 0, QP, 0, 0, 0, QP
"packuswb %%mm7, %%mm7
\n\t
"
// 0,QP, 0, QP, 0,QP, 0, QP
"packuswb %%mm7, %%mm7
\n\t
"
// QP,..., QP
"movq %%mm7, %0
\n\t
"
:
"=m"
(
c
.
pQPb
)
:
"r"
(
QP
)
);
#endif
/* only deblock if we have 2 blocks */
if
(
y
+
8
<
height
){
if
(
mode
&
V_X1_FILTER
)
...
...
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