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
0d00109f
Commit
0d00109f
authored
Dec 20, 2012
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Dec 20, 2012
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #244 from asmorkalov:manager_nonarm_fix
parents
7bee55b8
ee144852
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
CommonPackageManager.cpp
...service/engine/jni/NativeService/CommonPackageManager.cpp
+8
-0
No files found.
android/service/engine/jni/NativeService/CommonPackageManager.cpp
View file @
0d00109f
...
...
@@ -144,6 +144,13 @@ int CommonPackageManager::GetHardwareRating(int platform, int cpu_id, const std:
{
int
result
=
-
1
;
if
((
cpu_id
&
ARCH_X86
)
||
(
cpu_id
&
ARCH_X64
)
||
(
cpu_id
&
ARCH_MIPS
))
// Note: No raiting for x86, x64 and MIPS
// only one package is used
result
=
0
;
else
{
// Calculate rating for Arm
for
(
size_t
i
=
0
;
i
<
group
.
size
();
i
++
)
{
if
(
group
[
i
]
==
std
::
pair
<
int
,
int
>
(
platform
,
cpu_id
))
...
...
@@ -152,6 +159,7 @@ int CommonPackageManager::GetHardwareRating(int platform, int cpu_id, const std:
break
;
}
}
}
return
result
;
}
...
...
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