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
d52c359d
Commit
d52c359d
authored
11 years ago
by
Jingning Han
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Tune the rounding operations in 8x8 ADST/DCT sse2"
parents
4c0f2838
0084e61d
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/fdct8x8_test.cc
+6
-0
test/fdct8x8_test.cc
vp9/encoder/x86/vp9_dct_sse2.c
+18
-0
vp9/encoder/x86/vp9_dct_sse2.c
with
24 additions
and
0 deletions
test/fdct8x8_test.cc
+
6
−
0
View file @
d52c359d
...
...
@@ -33,7 +33,13 @@ void idct8x8_add(int16_t *in, int16_t *out, uint8_t *dst,
vp9_short_idct8x8_add_c
(
out
,
dst
,
stride
>>
1
);
}
void
fht8x8
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
// TODO(jingning): need to refactor this to test both _c and _sse2 functions,
// when we have all inverse dct functions done sse2.
#if HAVE_SSE2
vp9_short_fht8x8_sse2
(
in
,
out
,
stride
>>
1
,
tx_type
);
#else
vp9_short_fht8x8_c
(
in
,
out
,
stride
>>
1
,
tx_type
);
#endif
}
void
iht8x8_add
(
int16_t
*
in
,
int16_t
*
out
,
uint8_t
*
dst
,
int
stride
,
int
tx_type
)
{
...
...
This diff is collapsed.
Click to expand it.
vp9/encoder/x86/vp9_dct_sse2.c
+
18
−
0
View file @
d52c359d
...
...
@@ -397,6 +397,24 @@ static INLINE void load_buffer_8x8(int16_t *input, __m128i in[8], int stride) {
// write 8x8 array
static
INLINE
void
write_buffer_8x8
(
int16_t
*
output
,
__m128i
res
[
8
])
{
__m128i
sign0
=
_mm_srai_epi16
(
res
[
0
],
15
);
__m128i
sign1
=
_mm_srai_epi16
(
res
[
1
],
15
);
__m128i
sign2
=
_mm_srai_epi16
(
res
[
2
],
15
);
__m128i
sign3
=
_mm_srai_epi16
(
res
[
3
],
15
);
__m128i
sign4
=
_mm_srai_epi16
(
res
[
4
],
15
);
__m128i
sign5
=
_mm_srai_epi16
(
res
[
5
],
15
);
__m128i
sign6
=
_mm_srai_epi16
(
res
[
6
],
15
);
__m128i
sign7
=
_mm_srai_epi16
(
res
[
7
],
15
);
res
[
0
]
=
_mm_sub_epi16
(
res
[
0
],
sign0
);
res
[
1
]
=
_mm_sub_epi16
(
res
[
1
],
sign1
);
res
[
2
]
=
_mm_sub_epi16
(
res
[
2
],
sign2
);
res
[
3
]
=
_mm_sub_epi16
(
res
[
3
],
sign3
);
res
[
4
]
=
_mm_sub_epi16
(
res
[
4
],
sign4
);
res
[
5
]
=
_mm_sub_epi16
(
res
[
5
],
sign5
);
res
[
6
]
=
_mm_sub_epi16
(
res
[
6
],
sign6
);
res
[
7
]
=
_mm_sub_epi16
(
res
[
7
],
sign7
);
res
[
0
]
=
_mm_srai_epi16
(
res
[
0
],
1
);
res
[
1
]
=
_mm_srai_epi16
(
res
[
1
],
1
);
res
[
2
]
=
_mm_srai_epi16
(
res
[
2
],
1
);
...
...
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