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
ef6c2366
Commit
ef6c2366
authored
Feb 24, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore missed gpu functionality after merge #
dddd285d
parent
dddd285d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
gpumat.hpp
modules/core/include/opencv2/core/gpumat.hpp
+1
-0
gpumat.cpp
modules/core/src/gpumat.cpp
+9
-0
No files found.
modules/core/include/opencv2/core/gpumat.hpp
View file @
ef6c2366
...
...
@@ -143,6 +143,7 @@ namespace cv { namespace gpu
int
multi_processor_count_
;
int
majorVersion_
;
int
minorVersion_
;
size_t
sharedMemPerBlock_
;
};
CV_EXPORTS
void
printCudaDeviceInfo
(
int
device
);
...
...
modules/core/src/gpumat.cpp
View file @
ef6c2366
...
...
@@ -379,6 +379,8 @@ void cv::gpu::DeviceInfo::query()
sharedMemPerBlock_
=
prop
.
sharedMemPerBlock
;
}
size_t
cv
::
gpu
::
DeviceInfo
::
sharedMemPerBlock
()
const
{
return
sharedMemPerBlock_
;}
void
cv
::
gpu
::
DeviceInfo
::
queryMemory
(
size_t
&
free_memory
,
size_t
&
total_memory
)
const
{
int
prev_device_id
=
getDevice
();
...
...
@@ -802,6 +804,13 @@ void cv::gpu::ensureSizeIsEnough(int rows, int cols, int type, GpuMat& m)
}
}
GpuMat
cv
::
gpu
::
allocMatFromBuf
(
int
rows
,
int
cols
,
int
type
,
GpuMat
&
mat
)
{
if
(
!
mat
.
empty
()
&&
mat
.
type
()
==
type
&&
mat
.
rows
>=
rows
&&
mat
.
cols
>=
cols
)
return
mat
(
Rect
(
0
,
0
,
cols
,
rows
));
return
mat
=
GpuMat
(
rows
,
cols
,
type
);
}
namespace
{
class
GpuFuncTable
...
...
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