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
e19000a5
Commit
e19000a5
authored
Feb 11, 2017
by
chacha21
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adaptation for iOS buildbot
parent
7521bcc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
drawing.cpp
modules/imgproc/src/drawing.cpp
+4
-1
No files found.
modules/imgproc/src/drawing.cpp
View file @
e19000a5
...
@@ -1086,6 +1086,7 @@ EllipseEx( Mat& img, Point2l center, Size2l axes,
...
@@ -1086,6 +1086,7 @@ EllipseEx( Mat& img, Point2l center, Size2l axes,
#endif
#endif
#if !defined(OPENCV_BYTEORDER)
#if !defined(OPENCV_BYTEORDER)
# define OPENCV_BYTEORDER 0
static
const
int
opencvOne
=
1
;
static
const
int
opencvOne
=
1
;
# define OPENCV_BIGENDIAN (*(char *)(&opencvOne)==0)
# define OPENCV_BIGENDIAN (*(char *)(&opencvOne)==0)
# define OPENCV_LITTLEENDIAN (*(char *)(&opencvOne)==1)
# define OPENCV_LITTLEENDIAN (*(char *)(&opencvOne)==1)
...
@@ -1143,13 +1144,15 @@ static inline uint32_t opencvLittleToHost32(const uchar* p){
...
@@ -1143,13 +1144,15 @@ static inline uint32_t opencvLittleToHost32(const uchar* p){
uint32_t
x
;
uint32_t
x
;
memcpy
(
&
x
,
p
,
4
);
memcpy
(
&
x
,
p
,
4
);
return
_byteswap_ulong
(
x
);
return
_byteswap_ulong
(
x
);
#elif OPENCV_LITTLEENDIAN
return
x
;
#else
#else
return
((
unsigned
)
p
[
0
]
<<
24
)
|
(
p
[
1
]
<<
16
)
|
(
p
[
2
]
<<
8
)
|
p
[
3
];
return
((
unsigned
)
p
[
0
]
<<
24
)
|
(
p
[
1
]
<<
16
)
|
(
p
[
2
]
<<
8
)
|
p
[
3
];
#endif
#endif
}
}
static
inline
uint32_t
opencvLittleToHost32
(
uint32_t
x
){
static
inline
uint32_t
opencvLittleToHost32
(
uint32_t
x
){
#if OPENCV_
BYTEORDER==1234
#if OPENCV_
LITTLEENDIAN
return
x
;
return
x
;
#else
#else
return
opencvLittleToHost32
((
uchar
*
)
&
x
);
return
opencvLittleToHost32
((
uchar
*
)
&
x
);
...
...
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