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
93abdbf2
Commit
93abdbf2
authored
Jul 24, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12041 from mshabunin:fix-static-2
parents
391b9586
e0603bb4
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
21 deletions
+28
-21
types.hpp
modules/core/include/opencv2/core/types.hpp
+7
-0
types_c.h
modules/core/include/opencv2/core/types_c.h
+0
-1
array.cpp
modules/core/src/array.cpp
+2
-2
persistence_types.cpp
modules/core/src/persistence_types.cpp
+2
-2
resize_layer.cpp
modules/dnn/src/layers/resize_layer.cpp
+1
-1
filter.cpp
modules/imgproc/src/filter.cpp
+1
-1
undistort.cpp
modules/imgproc/src/undistort.cpp
+1
-0
cap_mjpeg_encoder.cpp
modules/videoio/src/cap_mjpeg_encoder.cpp
+14
-14
No files found.
modules/core/include/opencv2/core/types.hpp
View file @
93abdbf2
...
...
@@ -859,6 +859,13 @@ public:
*/
TermCriteria
(
int
type
,
int
maxCount
,
double
epsilon
);
inline
bool
isValid
()
const
{
const
bool
isCount
=
(
type
&
COUNT
)
&&
maxCount
>
0
;
const
bool
isEps
=
(
type
&
EPS
)
&&
!
cvIsNaN
(
epsilon
);
return
isCount
||
isEps
;
}
int
type
;
//!< the type of termination criteria: COUNT, EPS or COUNT + EPS
int
maxCount
;
//!< the maximum number of iterations/elements
double
epsilon
;
//!< the desired accuracy
...
...
modules/core/include/opencv2/core/types_c.h
View file @
93abdbf2
...
...
@@ -629,7 +629,6 @@ CV_INLINE int cvIplDepth( int type )
#define CV_TYPE_NAME_MATND "opencv-nd-matrix"
#define CV_MAX_DIM 32
#define CV_MAX_DIM_HEAP 1024
/**
@deprecated consider using cv::Mat instead
...
...
modules/core/src/array.cpp
View file @
93abdbf2
...
...
@@ -1725,8 +1725,8 @@ cvPtr1D( const CvArr* arr, int idx, int* _type )
else
{
int
i
,
n
=
m
->
dims
;
CV_DbgAssert
(
n
<=
CV_MAX_DIM
_HEAP
);
int
_idx
[
CV_MAX_DIM
_HEAP
];
CV_DbgAssert
(
n
<=
CV_MAX_DIM
);
int
_idx
[
CV_MAX_DIM
];
for
(
i
=
n
-
1
;
i
>=
0
;
i
--
)
{
...
...
modules/core/src/persistence_types.cpp
View file @
93abdbf2
...
...
@@ -302,7 +302,7 @@ static void* icvReadSparseMat( CvFileStorage* fs, CvFileNode* node )
CvFileNode
*
sizes_node
;
CvSeqReader
reader
;
CvSeq
*
elements
;
int
sizes
[
CV_MAX_DIM
_HEAP
],
dims
,
elem_type
,
cn
;
int
sizes
[
CV_MAX_DIM
],
dims
,
elem_type
,
cn
;
int
i
;
sizes_node
=
cvGetFileNodeByName
(
fs
,
node
,
"sizes"
);
...
...
@@ -327,7 +327,7 @@ static void* icvReadSparseMat( CvFileStorage* fs, CvFileNode* node )
mat
=
cvCreateSparseMat
(
dims
,
sizes
,
elem_type
);
cn
=
CV_MAT_CN
(
elem_type
);
int
idx
[
CV_MAX_DIM
_HEAP
];
int
idx
[
CV_MAX_DIM
];
elements
=
data
->
data
.
seq
;
cvStartReadRawData
(
fs
,
data
,
&
reader
);
...
...
modules/dnn/src/layers/resize_layer.cpp
View file @
93abdbf2
...
...
@@ -14,7 +14,7 @@ namespace cv { namespace dnn {
class
ResizeLayerImpl
:
public
ResizeLayer
{
public
:
ResizeLayerImpl
(
const
LayerParams
&
params
)
:
scaleWidth
(
0
),
scaleHeight
(
0
)
ResizeLayerImpl
(
const
LayerParams
&
params
)
:
zoomFactorWidth
(
0
),
zoomFactorHeight
(
0
),
scaleWidth
(
0
),
scaleHeight
(
0
)
{
setParamsFrom
(
params
);
outWidth
=
params
.
get
<
float
>
(
"width"
,
0
);
...
...
modules/imgproc/src/filter.cpp
View file @
93abdbf2
...
...
@@ -4284,7 +4284,7 @@ static bool ocl_sepFilter2D_SinglePass(InputArray _src, OutputArray _dst,
size_t
src_step
=
_src
.
step
(),
src_offset
=
_src
.
offset
();
bool
doubleSupport
=
ocl
::
Device
::
getDefault
().
doubleFPConfig
()
>
0
;
if
(
esz
==
0
if
(
esz
==
0
||
src_step
==
0
||
(
src_offset
%
src_step
)
%
esz
!=
0
||
(
!
doubleSupport
&&
(
sdepth
==
CV_64F
||
ddepth
==
CV_64F
))
||
!
(
borderType
==
BORDER_CONSTANT
...
...
modules/imgproc/src/undistort.cpp
View file @
93abdbf2
...
...
@@ -370,6 +370,7 @@ static void cvUndistortPointsInternal( const CvMat* _src, CvMat* _dst, const CvM
const
CvMat
*
_distCoeffs
,
const
CvMat
*
matR
,
const
CvMat
*
matP
,
cv
::
TermCriteria
criteria
)
{
CV_Assert
(
criteria
.
isValid
());
double
A
[
3
][
3
],
RR
[
3
][
3
],
k
[
14
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
CvMat
matA
=
cvMat
(
3
,
3
,
CV_64F
,
A
),
_Dk
;
CvMat
_RR
=
cvMat
(
3
,
3
,
CV_64F
,
RR
);
...
...
modules/videoio/src/cap_mjpeg_encoder.cpp
View file @
93abdbf2
...
...
@@ -158,8 +158,9 @@ public:
data
.
resize
(
size
);
}
void
put
(
unsigned
bits
,
int
len
)
inline
void
put_bits
(
unsigned
bits
,
int
len
)
{
CV_Assert
(
len
>=
0
&&
len
<
32
);
if
((
m_pos
==
(
data
.
size
()
-
1
)
&&
len
>
bits_free
)
||
m_pos
==
data
.
size
())
{
resize
(
int
(
2
*
data
.
size
()));
...
...
@@ -182,6 +183,12 @@ public:
}
}
inline
void
put_val
(
int
val
,
const
unsigned
*
table
)
{
unsigned
code
=
table
[(
val
)
+
2
];
put_bits
(
code
>>
8
,
(
int
)(
code
&
255
));
}
void
finish
()
{
if
(
bits_free
==
32
)
...
...
@@ -1188,13 +1195,6 @@ public:
void
operator
()(
const
cv
::
Range
&
range
)
const
CV_OVERRIDE
{
const
int
CAT_TAB_SIZE
=
4096
;
unsigned
code
=
0
;
#define JPUT_BITS(val, bits) output_buffer.put(val, bits)
#define JPUT_HUFF(val, table) \
code = table[(val) + 2]; \
JPUT_BITS(code >> 8, (int)(code & 255))
int
x
,
y
;
int
i
,
j
;
...
...
@@ -1300,8 +1300,8 @@ public:
int
cat
=
cat_table
[
val
+
CAT_TAB_SIZE
];
//CV_Assert( cat <= 11 );
JPUT_HUFF
(
cat
,
huff_dc_tab
[
is_chroma
]
);
JPUT_BITS
(
val
-
(
val
<
0
?
1
:
0
),
cat
);
output_buffer
.
put_val
(
cat
,
huff_dc_tab
[
is_chroma
]
);
output_buffer
.
put_bits
(
val
-
(
val
<
0
?
1
:
0
),
cat
);
}
for
(
j
=
1
;
j
<
64
;
j
++
)
...
...
@@ -1316,15 +1316,15 @@ public:
{
while
(
run
>=
16
)
{
JPUT_HUFF
(
0xF0
,
htable
);
// encode 16 zeros
output_buffer
.
put_val
(
0xF0
,
htable
);
// encode 16 zeros
run
-=
16
;
}
{
int
cat
=
cat_table
[
val
+
CAT_TAB_SIZE
];
//CV_Assert( cat <= 10 );
JPUT_HUFF
(
cat
+
run
*
16
,
htable
);
JPUT_BITS
(
val
-
(
val
<
0
?
1
:
0
),
cat
);
output_buffer
.
put_val
(
cat
+
run
*
16
,
htable
);
output_buffer
.
put_bits
(
val
-
(
val
<
0
?
1
:
0
),
cat
);
}
run
=
0
;
...
...
@@ -1333,7 +1333,7 @@ public:
if
(
run
)
{
JPUT_HUFF
(
0x00
,
htable
);
// encode EOB
output_buffer
.
put_val
(
0x00
,
htable
);
// encode EOB
}
}
}
...
...
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