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
0d646490
Commit
0d646490
authored
Mar 30, 2018
by
ltqusst
Committed by
Li
Mar 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #10557
Fix overflow bugs in conversion from NV12 VA-surface/D3D11texture2D to OpenCL UMat
parent
6ffc4876
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cvtclr_dx.cl
modules/core/src/opencl/cvtclr_dx.cl
+3
-4
No files found.
modules/core/src/opencl/cvtclr_dx.cl
View file @
0d646490
...
@@ -92,9 +92,9 @@ void YUV2BGR_NV12_8u(
...
@@ -92,9 +92,9 @@ void YUV2BGR_NV12_8u(
int
x
=
get_global_id
(
0
)
;
int
x
=
get_global_id
(
0
)
;
int
y
=
get_global_id
(
1
)
;
int
y
=
get_global_id
(
1
)
;
if
(
x
<
cols
)
if
(
x
+
1
<
cols
)
{
{
if
(
y
<
rows
)
if
(
y
+
1
<
rows
)
{
{
__global
uchar*
pDstRow1
=
pBGR
+
mad24
(
y,
bgrStep,
mad24
(
x,
NCHANNELS,
0
))
;
__global
uchar*
pDstRow1
=
pBGR
+
mad24
(
y,
bgrStep,
mad24
(
x,
NCHANNELS,
0
))
;
__global
uchar*
pDstRow2
=
pDstRow1
+
bgrStep
;
__global
uchar*
pDstRow2
=
pDstRow1
+
bgrStep
;
...
@@ -204,4 +204,4 @@ void BGR2YUV_NV12_8u(
...
@@ -204,4 +204,4 @@ void BGR2YUV_NV12_8u(
write_imagef
(
imgUV,
(
int2
)((
x/2
)
,
(
y/2
))
,
UV
)
;
write_imagef
(
imgUV,
(
int2
)((
x/2
)
,
(
y/2
))
,
UV
)
;
}
}
}
}
}
}
\ No newline at end of file
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