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
6ad72bfc
Commit
6ad72bfc
authored
Sep 06, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed detail:: prefix int video_reader
it conflicts with cv::detail
parent
a0771630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
video_reader.cpp
modules/gpucodec/src/video_reader.cpp
+12
-10
No files found.
modules/gpucodec/src/video_reader.cpp
View file @
6ad72bfc
...
...
@@ -58,12 +58,14 @@ namespace cv { namespace gpu { namespace cudev
void
NV12_to_RGB
(
const
PtrStepb
decodedFrame
,
PtrStepSz
<
uint
>
interopFrame
,
cudaStream_t
stream
=
0
);
}}}
using
namespace
cv
::
gpucodec
::
detail
;
namespace
{
class
VideoReaderImpl
:
public
VideoReader
{
public
:
explicit
VideoReaderImpl
(
const
Ptr
<
detail
::
VideoSource
>&
source
);
explicit
VideoReaderImpl
(
const
Ptr
<
VideoSource
>&
source
);
~
VideoReaderImpl
();
bool
nextFrame
(
OutputArray
frame
);
...
...
@@ -71,11 +73,11 @@ namespace
FormatInfo
format
()
const
;
private
:
Ptr
<
detail
::
VideoSource
>
videoSource_
;
Ptr
<
VideoSource
>
videoSource_
;
Ptr
<
detail
::
FrameQueue
>
frameQueue_
;
Ptr
<
detail
::
VideoDecoder
>
videoDecoder_
;
Ptr
<
detail
::
VideoParser
>
videoParser_
;
Ptr
<
FrameQueue
>
frameQueue_
;
Ptr
<
VideoDecoder
>
videoDecoder_
;
Ptr
<
VideoParser
>
videoParser_
;
CUvideoctxlock
lock_
;
...
...
@@ -87,7 +89,7 @@ namespace
return
videoSource_
->
format
();
}
VideoReaderImpl
::
VideoReaderImpl
(
const
Ptr
<
detail
::
VideoSource
>&
source
)
:
VideoReaderImpl
::
VideoReaderImpl
(
const
Ptr
<
VideoSource
>&
source
)
:
videoSource_
(
source
),
lock_
(
0
)
{
...
...
@@ -159,7 +161,7 @@ namespace
return
false
;
// Wait a bit
detail
::
Thread
::
sleep
(
1
);
Thread
::
sleep
(
1
);
}
bool
isProgressive
=
displayInfo
.
progressive_frame
!=
0
;
...
...
@@ -212,7 +214,7 @@ Ptr<VideoReader> cv::gpucodec::createVideoReader(const String& filename)
{
CV_Assert
(
!
filename
.
empty
()
);
Ptr
<
detail
::
VideoSource
>
videoSource
;
Ptr
<
VideoSource
>
videoSource
;
try
{
...
...
@@ -220,7 +222,7 @@ Ptr<VideoReader> cv::gpucodec::createVideoReader(const String& filename)
}
catch
(...)
{
Ptr
<
RawVideoSource
>
source
(
new
detail
::
FFmpegVideoSource
(
filename
));
Ptr
<
RawVideoSource
>
source
(
new
FFmpegVideoSource
(
filename
));
videoSource
.
reset
(
new
RawVideoSourceWrapper
(
source
));
}
...
...
@@ -229,7 +231,7 @@ Ptr<VideoReader> cv::gpucodec::createVideoReader(const String& filename)
Ptr
<
VideoReader
>
cv
::
gpucodec
::
createVideoReader
(
const
Ptr
<
RawVideoSource
>&
source
)
{
Ptr
<
detail
::
VideoSource
>
videoSource
(
new
detail
::
RawVideoSourceWrapper
(
source
));
Ptr
<
VideoSource
>
videoSource
(
new
RawVideoSourceWrapper
(
source
));
return
makePtr
<
VideoReaderImpl
>
(
videoSource
);
}
...
...
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