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
5ff5fdd7
Commit
5ff5fdd7
authored
Sep 24, 2013
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
marked some methods of ocl::Context as const
parent
d64fb235
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ocl.hpp
modules/ocl/include/opencv2/ocl/ocl.hpp
+2
-2
initialization.cpp
modules/ocl/src/initialization.cpp
+2
-2
No files found.
modules/ocl/include/opencv2/ocl/ocl.hpp
View file @
5ff5fdd7
...
@@ -158,8 +158,8 @@ namespace cv
...
@@ -158,8 +158,8 @@ namespace cv
static
void
setContext
(
Info
&
oclinfo
);
static
void
setContext
(
Info
&
oclinfo
);
enum
{
CL_DOUBLE
,
CL_UNIFIED_MEM
,
CL_VER_1_2
};
enum
{
CL_DOUBLE
,
CL_UNIFIED_MEM
,
CL_VER_1_2
};
bool
supportsFeature
(
int
ftype
);
bool
supportsFeature
(
int
ftype
)
const
;
size_t
computeUnits
();
size_t
computeUnits
()
const
;
void
*
oclContext
();
void
*
oclContext
();
void
*
oclCommandQueue
();
void
*
oclCommandQueue
();
};
};
...
...
modules/ocl/src/initialization.cpp
View file @
5ff5fdd7
...
@@ -1013,7 +1013,7 @@ namespace cv
...
@@ -1013,7 +1013,7 @@ namespace cv
programCache
->
releaseProgram
();
programCache
->
releaseProgram
();
}
}
bool
Context
::
supportsFeature
(
int
ftype
)
bool
Context
::
supportsFeature
(
int
ftype
)
const
{
{
switch
(
ftype
)
switch
(
ftype
)
{
{
...
@@ -1028,7 +1028,7 @@ namespace cv
...
@@ -1028,7 +1028,7 @@ namespace cv
}
}
}
}
size_t
Context
::
computeUnits
()
size_t
Context
::
computeUnits
()
const
{
{
return
impl
->
maxComputeUnits
;
return
impl
->
maxComputeUnits
;
}
}
...
...
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