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
57c76045
Commit
57c76045
authored
Mar 11, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android build warning
parent
abe2c2fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
rgbdodometry.cpp
modules/contrib/src/rgbdodometry.cpp
+2
-1
No files found.
modules/contrib/src/rgbdodometry.cpp
View file @
57c76045
...
@@ -137,7 +137,8 @@ void set2shorts( int& dst, int short_v1, int short_v2 )
...
@@ -137,7 +137,8 @@ void set2shorts( int& dst, int short_v1, int short_v2 )
static
inline
static
inline
void
get2shorts
(
int
src
,
int
&
short_v1
,
int
&
short_v2
)
void
get2shorts
(
int
src
,
int
&
short_v1
,
int
&
short_v2
)
{
{
unsigned
short
*
ptr
=
reinterpret_cast
<
unsigned
short
*>
(
&
src
);
typedef
union
{
int
vint32
;
unsigned
short
vuint16
[
2
];
}
s32tou16
;
const
unsigned
short
*
ptr
=
(
reinterpret_cast
<
s32tou16
*>
(
&
src
))
->
vuint16
;
short_v1
=
ptr
[
0
];
short_v1
=
ptr
[
0
];
short_v2
=
ptr
[
1
];
short_v2
=
ptr
[
1
];
}
}
...
...
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