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
5000cdf0
Commit
5000cdf0
authored
11 years ago
by
Jim Bankoski
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Wide loopfilter 16 pix at a time"
parents
aedc7c59
64f7a4d8
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
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
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
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
vp9/common/vp9_loopfilter.c
+17
-9
vp9/common/vp9_loopfilter.c
vp9/common/vp9_loopfilter_filters.c
+3
-2
vp9/common/vp9_loopfilter_filters.c
vp9/common/vp9_rtcd_defs.sh
+1
-1
vp9/common/vp9_rtcd_defs.sh
vp9/common/x86/vp9_loopfilter_intrin_sse2.c
+490
-6
vp9/common/x86/vp9_loopfilter_intrin_sse2.c
with
511 additions
and
18 deletions
vp9/common/vp9_loopfilter.c
+
17
−
9
View file @
5000cdf0
...
...
@@ -186,14 +186,22 @@ static void filter_selectively_horiz(uint8_t *s, int pitch,
int
only_4x4_1
,
const
struct
loop_filter_info
*
lfi
)
{
unsigned
int
mask
;
int
count
;
for
(
mask
=
mask_16x16
|
mask_8x8
|
mask_4x4
|
mask_4x4_int
;
mask
;
mask
>>=
1
)
{
mask
;
mask
>>=
count
)
{
count
=
1
;
if
(
mask
&
1
)
{
if
(
!
only_4x4_1
)
{
if
(
mask_16x16
&
1
)
{
vp9_mb_lpf_horizontal_edge_w
(
s
,
pitch
,
lfi
->
mblim
,
lfi
->
lim
,
lfi
->
hev_thr
);
if
((
mask_16x16
&
3
)
==
3
)
{
vp9_mb_lpf_horizontal_edge_w
(
s
,
pitch
,
lfi
->
mblim
,
lfi
->
lim
,
lfi
->
hev_thr
,
2
);
count
=
2
;
}
else
{
vp9_mb_lpf_horizontal_edge_w
(
s
,
pitch
,
lfi
->
mblim
,
lfi
->
lim
,
lfi
->
hev_thr
,
1
);
}
assert
(
!
(
mask_8x8
&
1
));
assert
(
!
(
mask_4x4
&
1
));
assert
(
!
(
mask_4x4_int
&
1
));
...
...
@@ -214,12 +222,12 @@ static void filter_selectively_horiz(uint8_t *s, int pitch,
vp9_loop_filter_horizontal_edge
(
s
+
4
*
pitch
,
pitch
,
lfi
->
mblim
,
lfi
->
lim
,
lfi
->
hev_thr
,
1
);
}
s
+=
8
;
lfi
++
;
mask_16x16
>>=
1
;
mask_8x8
>>=
1
;
mask_4x4
>>=
1
;
mask_4x4_int
>>=
1
;
s
+=
8
*
count
;
lfi
+=
count
;
mask_16x16
>>=
count
;
mask_8x8
>>=
count
;
mask_4x4
>>=
count
;
mask_4x4_int
>>=
count
;
}
}
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_loopfilter_filters.c
+
3
−
2
View file @
5000cdf0
...
...
@@ -258,12 +258,13 @@ static INLINE void wide_mbfilter(int8_t mask, uint8_t hev,
void
vp9_mb_lpf_horizontal_edge_w_c
(
uint8_t
*
s
,
int
p
,
const
uint8_t
*
blimit
,
const
uint8_t
*
limit
,
const
uint8_t
*
thresh
)
{
const
uint8_t
*
thresh
,
int
count
)
{
int
i
;
// loop filter designed to work using chars so that we can make maximum use
// of 8 bit simd instructions.
for
(
i
=
0
;
i
<
8
;
++
i
)
{
for
(
i
=
0
;
i
<
8
*
count
;
++
i
)
{
const
uint8_t
p3
=
s
[
-
4
*
p
],
p2
=
s
[
-
3
*
p
],
p1
=
s
[
-
2
*
p
],
p0
=
s
[
-
p
];
const
uint8_t
q0
=
s
[
0
*
p
],
q1
=
s
[
1
*
p
],
q2
=
s
[
2
*
p
],
q3
=
s
[
3
*
p
];
const
int8_t
mask
=
filter_mask
(
*
limit
,
*
blimit
,
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_rtcd_defs.sh
+
1
−
1
View file @
5000cdf0
...
...
@@ -222,7 +222,7 @@ specialize vp9_mbloop_filter_vertical_edge sse2 neon
prototype void vp9_loop_filter_vertical_edge
"uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
specialize vp9_loop_filter_vertical_edge mmx neon
prototype void vp9_mb_lpf_horizontal_edge_w
"uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh"
prototype void vp9_mb_lpf_horizontal_edge_w
"uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh
, int count
"
specialize vp9_mb_lpf_horizontal_edge_w sse2
prototype void vp9_mbloop_filter_horizontal_edge
"uint8_t *s, int pitch, const uint8_t *blimit, const uint8_t *limit, const uint8_t *thresh, int count"
...
...
This diff is collapsed.
Click to expand it.
vp9/common/x86/vp9_loopfilter_intrin_sse2.c
+
490
−
6
View file @
5000cdf0
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