Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
opencv
Commits
6de86e32
Commit
6de86e32
authored
Jan 21, 2019
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed (un)signed packing s16 -> u8
parent
48e471fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
color_yuv.cpp
modules/imgproc/src/color_yuv.cpp
+13
-13
No files found.
modules/imgproc/src/color_yuv.cpp
View file @
6de86e32
...
...
@@ -446,8 +446,8 @@ struct RGB2YCrCb_i<uchar>
swap
(
sr0
,
sb0
);
swap
(
sr1
,
sb1
);
}
v_
u
int32
cr00
,
cr01
,
cr10
,
cr11
;
v_
u
int32
cb00
,
cb01
,
cb10
,
cb11
;
v_int32
cr00
,
cr01
,
cr10
,
cr11
;
v_int32
cb00
,
cb01
,
cb10
,
cb11
;
// delta + descaleShift == descaleShift*(half*2+1)
{
...
...
@@ -460,15 +460,15 @@ struct RGB2YCrCb_i<uchar>
v_zip
(
sb0
,
vdescale
,
bd00
,
bd01
);
v_zip
(
sb1
,
vdescale
,
bd10
,
bd11
);
cr00
=
v_
reinterpret_as_u32
(
v_dotprod
(
rd00
,
c3h
)
);
cr01
=
v_
reinterpret_as_u32
(
v_dotprod
(
rd01
,
c3h
)
);
cr10
=
v_
reinterpret_as_u32
(
v_dotprod
(
rd10
,
c3h
)
);
cr11
=
v_
reinterpret_as_u32
(
v_dotprod
(
rd11
,
c3h
)
);
cr00
=
v_
dotprod
(
rd00
,
c3h
);
cr01
=
v_
dotprod
(
rd01
,
c3h
);
cr10
=
v_
dotprod
(
rd10
,
c3h
);
cr11
=
v_
dotprod
(
rd11
,
c3h
);
cb00
=
v_
reinterpret_as_u32
(
v_dotprod
(
bd00
,
c4h
)
);
cb01
=
v_
reinterpret_as_u32
(
v_dotprod
(
bd01
,
c4h
)
);
cb10
=
v_
reinterpret_as_u32
(
v_dotprod
(
bd10
,
c4h
)
);
cb11
=
v_
reinterpret_as_u32
(
v_dotprod
(
bd11
,
c4h
)
);
cb00
=
v_
dotprod
(
bd00
,
c4h
);
cb01
=
v_
dotprod
(
bd01
,
c4h
);
cb10
=
v_
dotprod
(
bd10
,
c4h
);
cb11
=
v_
dotprod
(
bd11
,
c4h
);
}
v_uint8
cr
,
cb
;
...
...
@@ -483,12 +483,12 @@ struct RGB2YCrCb_i<uchar>
cb10
=
cb10
>>
shift
;
cb11
=
cb11
>>
shift
;
v_
u
int16
cr0
,
cr1
,
cb0
,
cb1
;
v_int16
cr0
,
cr1
,
cb0
,
cb1
;
cr0
=
v_pack
(
cr00
,
cr01
);
cr1
=
v_pack
(
cr10
,
cr11
);
cb0
=
v_pack
(
cb00
,
cb01
);
cb1
=
v_pack
(
cb10
,
cb11
);
cr
=
v_pack
(
cr0
,
cr1
);
cb
=
v_pack
(
cb0
,
cb1
);
cr
=
v_pack
_u
(
cr0
,
cr1
);
cb
=
v_pack
_u
(
cb0
,
cb1
);
if
(
yuvOrder
)
{
...
...
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