Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libyuv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libyuv
Commits
137aa63a
Commit
137aa63a
authored
Sep 15, 2016
by
Frank Barchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some comment typos
BUG=None TEST=try bots Review URL:
https://codereview.chromium.org/2346633002
.
parent
742be446
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
scale_common.cc
source/scale_common.cc
+1
-1
scale_gcc.cc
source/scale_gcc.cc
+1
-1
scale_neon.cc
source/scale_neon.cc
+3
-3
scale_neon64.cc
source/scale_neon64.cc
+6
-2
No files found.
source/scale_common.cc
View file @
137aa63a
...
@@ -421,7 +421,7 @@ void ScaleColsUp2_16_C(uint16* dst_ptr, const uint16* src_ptr,
...
@@ -421,7 +421,7 @@ void ScaleColsUp2_16_C(uint16* dst_ptr, const uint16* src_ptr,
#define BLENDER(a, b, f) (uint8)((int)(a) + \
#define BLENDER(a, b, f) (uint8)((int)(a) + \
((((int)((f)) * ((int)(b) - (int)(a))) + 0x8000) >> 16))
((((int)((f)) * ((int)(b) - (int)(a))) + 0x8000) >> 16))
#else
#else
//
intel
uses 7 bit math with rounding.
//
Intel
uses 7 bit math with rounding.
#define BLENDER(a, b, f) (uint8)((int)(a) + \
#define BLENDER(a, b, f) (uint8)((int)(a) + \
(((int)((f) >> 9) * ((int)(b) - (int)(a)) + 0x40) >> 7))
(((int)((f) >> 9) * ((int)(b) - (int)(a)) + 0x40) >> 7))
#endif
#endif
...
...
source/scale_gcc.cc
View file @
137aa63a
...
@@ -867,7 +867,7 @@ void ScaleFilterCols_SSSE3(uint8* dst_ptr, const uint8* src_ptr,
...
@@ -867,7 +867,7 @@ void ScaleFilterCols_SSSE3(uint8* dst_ptr, const uint8* src_ptr,
"pshufb %%xmm5,%%xmm1
\n
"
"pshufb %%xmm5,%%xmm1
\n
"
"punpcklwd %%xmm4,%%xmm0
\n
"
"punpcklwd %%xmm4,%%xmm0
\n
"
"psubb %8,%%xmm0
\n
"
// make pixels signed.
"psubb %8,%%xmm0
\n
"
// make pixels signed.
"pxor %%xmm6,%%xmm1
\n
"
// 128 -f = (f ^ 127 ) + 1
"pxor %%xmm6,%%xmm1
\n
"
// 128 -
f = (f ^ 127 ) + 1
"paddusb %%xmm7,%%xmm1
\n
"
"paddusb %%xmm7,%%xmm1
\n
"
"pmaddubsw %%xmm0,%%xmm1
\n
"
"pmaddubsw %%xmm0,%%xmm1
\n
"
"pextrw $0x1,%%xmm2,%k3
\n
"
"pextrw $0x1,%%xmm2,%k3
\n
"
...
...
source/scale_neon.cc
View file @
137aa63a
...
@@ -572,9 +572,9 @@ void ScaleAddRows_NEON(const uint8* src_ptr, ptrdiff_t src_stride,
...
@@ -572,9 +572,9 @@ void ScaleAddRows_NEON(const uint8* src_ptr, ptrdiff_t src_stride,
MEMACCESS(6) \
MEMACCESS(6) \
"vld2.8 {d6["#n"], d7["#n"]}, [%6] \n"
"vld2.8 {d6["#n"], d7["#n"]}, [%6] \n"
// The NEON version mimics this formula:
// The NEON version mimics this formula
(from row_common.cc)
:
// #define BLENDER(a, b, f) (uint8)((int)(a) +
// #define BLENDER(a, b, f) (uint8)((int)(a) +
\
// ((
int)(f) * ((int)(b) - (int)(a)
) >> 16))
// ((
((int)((f)) * ((int)(b) - (int)(a))) + 0x8000
) >> 16))
void
ScaleFilterCols_NEON
(
uint8
*
dst_ptr
,
const
uint8
*
src_ptr
,
void
ScaleFilterCols_NEON
(
uint8
*
dst_ptr
,
const
uint8
*
src_ptr
,
int
dst_width
,
int
x
,
int
dx
)
{
int
dst_width
,
int
x
,
int
dx
)
{
...
...
source/scale_neon64.cc
View file @
137aa63a
...
@@ -587,6 +587,10 @@ void ScaleAddRows_NEON(const uint8* src_ptr, ptrdiff_t src_stride,
...
@@ -587,6 +587,10 @@ void ScaleAddRows_NEON(const uint8* src_ptr, ptrdiff_t src_stride,
MEMACCESS(6) \
MEMACCESS(6) \
"ld2 {v4.b, v5.b}["#n"], [%6] \n"
"ld2 {v4.b, v5.b}["#n"], [%6] \n"
// The NEON version mimics this formula (from row_common.cc):
// #define BLENDER(a, b, f) (uint8)((int)(a) + \
// ((((int)((f)) * ((int)(b) - (int)(a))) + 0x8000) >> 16))
void
ScaleFilterCols_NEON
(
uint8
*
dst_ptr
,
const
uint8
*
src_ptr
,
void
ScaleFilterCols_NEON
(
uint8
*
dst_ptr
,
const
uint8
*
src_ptr
,
int
dst_width
,
int
x
,
int
dx
)
{
int
dst_width
,
int
x
,
int
dx
)
{
int
dx_offset
[
4
]
=
{
0
,
1
,
2
,
3
};
int
dx_offset
[
4
]
=
{
0
,
1
,
2
,
3
};
...
@@ -626,8 +630,8 @@ void ScaleFilterCols_NEON(uint8* dst_ptr, const uint8* src_ptr,
...
@@ -626,8 +630,8 @@ void ScaleFilterCols_NEON(uint8* dst_ptr, const uint8* src_ptr,
"ushll2 v6.4s, v6.8h, #0
\n
"
"ushll2 v6.4s, v6.8h, #0
\n
"
"mul v16.4s, v16.4s, v7.4s
\n
"
"mul v16.4s, v16.4s, v7.4s
\n
"
"mul v17.4s, v17.4s, v6.4s
\n
"
"mul v17.4s, v17.4s, v6.4s
\n
"
"rshrn
v6.4h, v16.4s, #16
\n
"
"rshrn
v6.4h, v16.4s, #16
\n
"
"rshrn2
v6.8h, v17.4s, #16
\n
"
"rshrn2
v6.8h, v17.4s, #16
\n
"
"add v4.8h, v4.8h, v6.8h
\n
"
"add v4.8h, v4.8h, v6.8h
\n
"
"xtn v4.8b, v4.8h
\n
"
"xtn v4.8b, v4.8h
\n
"
...
...
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