Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
cd0bf0e4
Commit
cd0bf0e4
authored
12 years ago
by
Stefan Holmer
Browse files
Options
Download
Patches
Plain Diff
Fixes a win build issue related to denoising.
Change-Id: I912384f526865089aa03ca8875591324e5c1c449
parent
0927a411
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
vp9-preview
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
v1.2.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8/encoder/x86/denoising_sse2.c
+12
-11
vp8/encoder/x86/denoising_sse2.c
with
12 additions
and
11 deletions
vp8/encoder/x86/denoising_sse2.c
+
12
−
11
View file @
cd0bf0e4
...
...
@@ -22,13 +22,6 @@ union sum_union {
short
e
[
8
];
};
static
inline
int
sum_vec_128i
(
__m128i
vec
)
{
union
sum_union
s
=
{
.
v
=
vec
};
return
s
.
e
[
0
]
+
s
.
e
[
1
]
+
s
.
e
[
2
]
+
s
.
e
[
3
]
+
s
.
e
[
4
]
+
s
.
e
[
5
]
+
s
.
e
[
6
]
+
s
.
e
[
7
];
}
int
vp8_denoiser_filter_sse2
(
YV12_BUFFER_CONFIG
*
mc_running_avg
,
YV12_BUFFER_CONFIG
*
running_avg
,
MACROBLOCK
*
signal
,
unsigned
int
motion_magnitude
,
...
...
@@ -44,7 +37,7 @@ int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg,
int
avg_y_stride
=
running_avg
->
y_stride
;
const
union
coeff_pair
*
LUT
=
vp8_get_filter_coeff_LUT
(
motion_magnitude
);
int
r
,
c
;
__m128i
sum
_diff
=
{
0
};
__m128i
acc
_diff
=
{
0
};
for
(
r
=
0
;
r
<
16
;
++
r
)
{
...
...
@@ -125,7 +118,7 @@ int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg,
// isn't classified as noise.
diff0
=
_mm_sub_epi16
(
v_sig0
,
res0
);
diff1
=
_mm_sub_epi16
(
v_sig1
,
res2
);
sum
_diff
=
_mm_add_epi16
(
sum
_diff
,
_mm_add_epi16
(
diff0
,
diff1
));
acc
_diff
=
_mm_add_epi16
(
acc
_diff
,
_mm_add_epi16
(
diff0
,
diff1
));
diff0sq
=
_mm_mullo_epi16
(
diff0
,
diff0
);
diff1sq
=
_mm_mullo_epi16
(
diff1
,
diff1
);
...
...
@@ -143,9 +136,17 @@ int vp8_denoiser_filter_sse2(YV12_BUFFER_CONFIG *mc_running_avg,
mc_running_avg_y
+=
mc_avg_y_stride
;
running_avg_y
+=
avg_y_stride
;
}
if
(
abs
(
sum_vec_128i
(
sum_diff
))
>
SUM_DIFF_THRESHOLD
)
{
return
COPY_BLOCK
;
// Compute the sum of all pixel differences of this MB.
union
sum_union
s
;
int
sum_diff
;
s
.
v
=
acc_diff
;
sum_diff
=
s
.
e
[
0
]
+
s
.
e
[
1
]
+
s
.
e
[
2
]
+
s
.
e
[
3
]
+
s
.
e
[
4
]
+
s
.
e
[
5
]
+
s
.
e
[
6
]
+
s
.
e
[
7
];
if
(
abs
(
sum_diff
)
>
SUM_DIFF_THRESHOLD
)
{
return
COPY_BLOCK
;
}
}
vp8_copy_mem16x16
(
filtered_buf
,
16
,
signal
->
thismb
,
sig_stride
);
return
FILTER_BLOCK
;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets