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
6b6c2f60
Commit
6b6c2f60
authored
Dec 11, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gapi: fix build with GCC 4.8
parent
9a18330f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gfluidbuffer.cpp
modules/gapi/src/backends/fluid/gfluidbuffer.cpp
+12
-0
No files found.
modules/gapi/src/backends/fluid/gfluidbuffer.cpp
View file @
6b6c2f60
...
@@ -347,12 +347,20 @@ std::unique_ptr<fluid::BufferStorage> createStorage(int capacity, int desc_width
...
@@ -347,12 +347,20 @@ std::unique_ptr<fluid::BufferStorage> createStorage(int capacity, int desc_width
std
::
unique_ptr
<
fluid
::
BufferStorageWithBorder
>
storage
(
new
BufferStorageWithBorder
);
std
::
unique_ptr
<
fluid
::
BufferStorageWithBorder
>
storage
(
new
BufferStorageWithBorder
);
storage
->
init
(
type
,
border_size
,
border
.
value
());
storage
->
init
(
type
,
border_size
,
border
.
value
());
storage
->
create
(
capacity
,
desc_width
,
type
);
storage
->
create
(
capacity
,
desc_width
,
type
);
#if defined __GNUC__ && __GNUC__ < 5
return
std
::
move
(
storage
);
#else
return
storage
;
return
storage
;
#endif
}
}
std
::
unique_ptr
<
BufferStorageWithoutBorder
>
storage
(
new
BufferStorageWithoutBorder
);
std
::
unique_ptr
<
BufferStorageWithoutBorder
>
storage
(
new
BufferStorageWithoutBorder
);
storage
->
create
(
capacity
,
desc_width
,
type
);
storage
->
create
(
capacity
,
desc_width
,
type
);
#if defined __GNUC__ && __GNUC__ < 5
return
std
::
move
(
storage
);
#else
return
storage
;
return
storage
;
#endif
}
}
std
::
unique_ptr
<
BufferStorage
>
createStorage
(
const
cv
::
gapi
::
own
::
Mat
&
data
,
cv
::
gapi
::
own
::
Rect
roi
);
std
::
unique_ptr
<
BufferStorage
>
createStorage
(
const
cv
::
gapi
::
own
::
Mat
&
data
,
cv
::
gapi
::
own
::
Rect
roi
);
...
@@ -360,7 +368,11 @@ std::unique_ptr<BufferStorage> createStorage(const cv::gapi::own::Mat& data, cv:
...
@@ -360,7 +368,11 @@ std::unique_ptr<BufferStorage> createStorage(const cv::gapi::own::Mat& data, cv:
{
{
std
::
unique_ptr
<
BufferStorageWithoutBorder
>
storage
(
new
BufferStorageWithoutBorder
);
std
::
unique_ptr
<
BufferStorageWithoutBorder
>
storage
(
new
BufferStorageWithoutBorder
);
storage
->
attach
(
data
,
roi
);
storage
->
attach
(
data
,
roi
);
#if defined __GNUC__ && __GNUC__ < 5
return
std
::
move
(
storage
);
#else
return
storage
;
return
storage
;
#endif
}
}
}
// namespace
}
// namespace
}
// namespace fluid
}
// namespace fluid
...
...
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