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
7429ed07
Commit
7429ed07
authored
Jul 29, 2016
by
MYLS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve warnings in sample file
parent
39358553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
filestorage_base64.cpp
samples/cpp/filestorage_base64.cpp
+2
-2
No files found.
samples/cpp/filestorage_base64.cpp
View file @
7429ed07
...
...
@@ -38,7 +38,7 @@ static void two_ways_to_write_rawdata_in_base64()
CvFileStorage
*
fs
=
cvOpenFileStorage
(
"example.xml"
,
0
,
CV_STORAGE_WRITE
);
// both CV_NODE_SEQ and "binary" are necessary.
cvStartWriteStruct
(
fs
,
"rawdata"
,
CV_NODE_SEQ
|
CV_NODE_FLOW
,
"binary"
);
cvWriteRawDataBase64
(
fs
,
rawdata
.
data
(),
rawdata
.
size
(
),
"i"
);
cvWriteRawDataBase64
(
fs
,
rawdata
.
data
(),
static_cast
<
int
>
(
rawdata
.
size
()
),
"i"
);
cvEndWriteStruct
(
fs
);
cvReleaseFileStorage
(
&
fs
);
//! [without_base64_flag]
...
...
@@ -49,7 +49,7 @@ static void two_ways_to_write_rawdata_in_base64()
CvFileStorage
*
fs
=
cvOpenFileStorage
(
"example.xml"
,
0
,
CV_STORAGE_WRITE_BASE64
);
// parameter, typename "binary" could be omitted.
cvStartWriteStruct
(
fs
,
"rawdata"
,
CV_NODE_SEQ
|
CV_NODE_FLOW
);
cvWriteRawData
(
fs
,
rawdata
.
data
(),
rawdata
.
size
(
),
"i"
);
cvWriteRawData
(
fs
,
rawdata
.
data
(),
static_cast
<
int
>
(
rawdata
.
size
()
),
"i"
);
cvEndWriteStruct
(
fs
);
cvReleaseFileStorage
(
&
fs
);
//! [with_write_base64_flag]
...
...
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