Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uvcengine
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Thiago Santini
uvcengine
Commits
72b37013
Commit
72b37013
authored
Jul 24, 2017
by
Thiago Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forwards internal timestamp to clients
parent
01beb749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
uvcengine/uvccamerasession.cpp
uvcengine/uvccamerasession.cpp
+1
-3
No files found.
uvcengine/uvccamerasession.cpp
View file @
72b37013
...
...
@@ -63,9 +63,7 @@ void UVCCameraSession::callback(uvc_frame_t *frame)
void
UVCCameraSession
::
presentFrame
(
QVideoFrame
frame
,
const
qreal
t
)
{
qreal
latency
=
frameReference
.
elapsed
()
-
t
;
frame
.
setMetaData
(
"latency"
,
latency
);
frame
.
map
(
QAbstractVideoBuffer
::
ReadOnly
);
frame
.
unmap
();
frame
.
setMetaData
(
"timestamp"
,
t
);
if
(
latency
<=
MAX_LATENCY_MS
)
m_surface
->
present
(
frame
);
//else
...
...
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