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
7366be69
Commit
7366be69
authored
Sep 22, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgproc: fix win32 build
parent
4ccde133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
color.cpp
modules/imgproc/src/color.cpp
+14
-4
No files found.
modules/imgproc/src/color.cpp
View file @
7366be69
...
...
@@ -4502,7 +4502,7 @@ struct HSV2RGB_b
#if CV_SSE2
void
process
(
__m128i
v_r
,
__m128i
v_g
,
__m128i
v_b
,
__m128
v_coeffs
,
const
__m128
&
v_coeffs_
,
float
*
buf
)
const
{
__m128
v_r0
=
_mm_cvtepi32_ps
(
_mm_unpacklo_epi16
(
v_r
,
v_zero
));
...
...
@@ -4513,6 +4513,8 @@ struct HSV2RGB_b
__m128
v_g1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_g
,
v_zero
));
__m128
v_b1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_b
,
v_zero
));
__m128
v_coeffs
=
v_coeffs_
;
v_r0
=
_mm_mul_ps
(
v_r0
,
v_coeffs
);
v_g1
=
_mm_mul_ps
(
v_g1
,
v_coeffs
);
...
...
@@ -4979,7 +4981,7 @@ struct HLS2RGB_b
#if CV_SSE2
void
process
(
__m128i
v_r
,
__m128i
v_g
,
__m128i
v_b
,
__m128
v_coeffs
,
const
__m128
&
v_coeffs_
,
float
*
buf
)
const
{
__m128
v_r0
=
_mm_cvtepi32_ps
(
_mm_unpacklo_epi16
(
v_r
,
v_zero
));
...
...
@@ -4990,6 +4992,8 @@ struct HLS2RGB_b
__m128
v_g1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_g
,
v_zero
));
__m128
v_b1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_b
,
v_zero
));
__m128
v_coeffs
=
v_coeffs_
;
v_r0
=
_mm_mul_ps
(
v_r0
,
v_coeffs
);
v_g1
=
_mm_mul_ps
(
v_g1
,
v_coeffs
);
...
...
@@ -5468,7 +5472,7 @@ struct Lab2RGB_b
#if CV_SSE2
// 16s x 8
void
process
(
__m128i
v_r
,
__m128i
v_g
,
__m128i
v_b
,
__m128
v_coeffs
,
__m128
v_res
,
const
__m128
&
v_coeffs_
,
const
__m128
&
v_res_
,
float
*
buf
)
const
{
__m128
v_r0
=
_mm_cvtepi32_ps
(
_mm_unpacklo_epi16
(
v_r
,
v_zero
));
...
...
@@ -5479,6 +5483,9 @@ struct Lab2RGB_b
__m128
v_g1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_g
,
v_zero
));
__m128
v_b1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_b
,
v_zero
));
__m128
v_coeffs
=
v_coeffs_
;
__m128
v_res
=
v_res_
;
v_r0
=
_mm_sub_ps
(
_mm_mul_ps
(
v_r0
,
v_coeffs
),
v_res
);
v_g1
=
_mm_sub_ps
(
_mm_mul_ps
(
v_g1
,
v_coeffs
),
v_res
);
...
...
@@ -6001,7 +6008,7 @@ struct Luv2RGB_b
#if CV_SSE2
// 16s x 8
void
process
(
__m128i
v_l
,
__m128i
v_u
,
__m128i
v_v
,
__m128
v_coeffs
,
__m128
v_res
,
const
__m128
&
v_coeffs_
,
const
__m128
&
v_res_
,
float
*
buf
)
const
{
__m128
v_l0
=
_mm_cvtepi32_ps
(
_mm_unpacklo_epi16
(
v_l
,
v_zero
));
...
...
@@ -6012,6 +6019,9 @@ struct Luv2RGB_b
__m128
v_u1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_u
,
v_zero
));
__m128
v_v1
=
_mm_cvtepi32_ps
(
_mm_unpackhi_epi16
(
v_v
,
v_zero
));
__m128
v_coeffs
=
v_coeffs_
;
__m128
v_res
=
v_res_
;
v_l0
=
_mm_mul_ps
(
v_l0
,
v_coeffs
);
v_u1
=
_mm_mul_ps
(
v_u1
,
v_coeffs
);
v_l0
=
_mm_sub_ps
(
v_l0
,
v_res
);
...
...
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