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
59ebf4ed
Commit
59ebf4ed
authored
Feb 25, 2013
by
yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the ocl::cvtColor mismatch on some devices
parent
620c6994
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cvt_color.cl
modules/ocl/src/kernels/cvt_color.cl
+3
-3
No files found.
modules/ocl/src/kernels/cvt_color.cl
View file @
59ebf4ed
...
@@ -203,8 +203,8 @@ __kernel void YUV2RGB(int cols,int rows,int src_step,int dst_step,int channels,
...
@@ -203,8 +203,8 @@ __kernel void YUV2RGB(int cols,int rows,int src_step,int dst_step,int channels,
__constant
int
ITUR_BT_601_CY
=
1220542
;
__constant
int
ITUR_BT_601_CY
=
1220542
;
__constant
int
ITUR_BT_601_CUB
=
2116026
;
__constant
int
ITUR_BT_601_CUB
=
2116026
;
__constant
int
ITUR_BT_601_CUG
=
-
409993
;
__constant
int
ITUR_BT_601_CUG
=
409993
;
__constant
int
ITUR_BT_601_CVG
=
-
852492
;
__constant
int
ITUR_BT_601_CVG
=
852492
;
__constant
int
ITUR_BT_601_CVR
=
1673527
;
__constant
int
ITUR_BT_601_CVR
=
1673527
;
__constant
int
ITUR_BT_601_SHIFT
=
20
;
__constant
int
ITUR_BT_601_SHIFT
=
20
;
...
@@ -229,7 +229,7 @@ __kernel void YUV2RGBA_NV12(int cols,int rows,int src_step,int dst_step,
...
@@ -229,7 +229,7 @@ __kernel void YUV2RGBA_NV12(int cols,int rows,int src_step,int dst_step,
int
V
=
usrc[1]
-
128
;
int
V
=
usrc[1]
-
128
;
int
ruv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
+
ITUR_BT_601_CVR
*
V
;
int
ruv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
+
ITUR_BT_601_CVR
*
V
;
int
guv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
+
ITUR_BT_601_CVG
*
V
+
ITUR_BT_601_CUG
*
U
;
int
guv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
-
ITUR_BT_601_CVG
*
V
-
ITUR_BT_601_CUG
*
U
;
int
buv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
+
ITUR_BT_601_CUB
*
U
;
int
buv
=
(
1
<<
(
ITUR_BT_601_SHIFT
-
1
))
+
ITUR_BT_601_CUB
*
U
;
Y1
=
max
(
0
,
Y1
-
16
)
*
ITUR_BT_601_CY
;
Y1
=
max
(
0
,
Y1
-
16
)
*
ITUR_BT_601_CY
;
...
...
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