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
467f9364
Commit
467f9364
authored
Nov 25, 2011
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding optimized Mat Allocator
parent
f05259f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
OpenCVModule.cmake
OpenCVModule.cmake
+3
-1
matrix.cpp
modules/core/src/matrix.cpp
+3
-0
No files found.
OpenCVModule.cmake
View file @
467f9364
...
...
@@ -210,7 +210,9 @@ macro(define_opencv_module name)
endif
()
# Dependencies of this target:
add_dependencies
(
${
the_target
}
${
ARGN
}
)
if
(
ARGN
)
add_dependencies
(
${
the_target
}
${
ARGN
}
)
endif
()
install
(
TARGETS
${
the_target
}
RUNTIME DESTINATION bin COMPONENT main
...
...
modules/core/src/matrix.cpp
View file @
467f9364
...
...
@@ -203,6 +203,9 @@ void Mat::create(int d, const int* _sizes, int _type)
if
(
total
()
>
0
)
{
#ifdef HAVE_TGPU
if
(
!
allocator
)
allocator
=
tegra
::
getAllocator
(
d
,
_sizes
,
_type
);
#endif
if
(
!
allocator
)
{
size_t
total
=
alignSize
(
step
.
p
[
0
]
*
size
.
p
[
0
],
(
int
)
sizeof
(
*
refcount
));
...
...
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