Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
344b1df5
Commit
344b1df5
authored
Jul 21, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qtcapture: Use Hosttime when available.
parent
1d31c009
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
configure.ac
configure.ac
+1
-0
modules/access/qtcapture.m
modules/access/qtcapture.m
+6
-1
No files found.
configure.ac
View file @
344b1df5
...
@@ -4954,6 +4954,7 @@ then
...
@@ -4954,6 +4954,7 @@ then
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,IOKit])
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,IOKit])
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,QuickTime])
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,QuickTime])
VLC_ADD_LDFLAGS([macosx qtcapture], [-Wl,-framework,QTKit])
VLC_ADD_LDFLAGS([macosx qtcapture], [-Wl,-framework,QTKit])
VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,CoreAudio])
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,WebKit])
VLC_ADD_LDFLAGS([macosx], [-Wl,-framework,WebKit])
VLC_ADD_LDFLAGS([opengllayer qtcapture], [-Wl,-framework,QuartzCore])
VLC_ADD_LDFLAGS([opengllayer qtcapture], [-Wl,-framework,QuartzCore])
VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,CoreVideo])
VLC_ADD_LDFLAGS([qtcapture], [-Wl,-framework,CoreVideo])
...
...
modules/access/qtcapture.m
View file @
344b1df5
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <vlc_interface.h>
#include <vlc_interface.h>
#import <QTKit/QTKit.h>
#import <QTKit/QTKit.h>
#import <CoreAudio/CoreAudio.h>
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -109,7 +110,11 @@ vlc_module_end();
...
@@ -109,7 +110,11 @@ vlc_module_end();
{
{
imageBufferToRelease
=
currentImageBuffer
;
imageBufferToRelease
=
currentImageBuffer
;
currentImageBuffer
=
videoFrame
;
currentImageBuffer
=
videoFrame
;
currentPts
=
1000000L
/
[
sampleBuffer
presentationTime
].
timeScale
*
[
sampleBuffer
presentationTime
].
timeValue
;
currentPts
=
(
mtime_t
)(
1000000L
/
[
sampleBuffer
presentationTime
].
timeScale
*
[
sampleBuffer
presentationTime
].
timeValue
);
/* Try to use hosttime of the sample if available, because iSight Pts seems broken */
NSNumber
*
hosttime
=
(
NSNumber
*
)[
sampleBuffer
attributeForKey
:
QTSampleBufferHostTimeAttribute
];
if
(
hosttime
)
currentPts
=
(
mtime_t
)
AudioConvertHostTimeToNanos
([
hosttime
unsignedLongLongValue
])
/
1000
;
}
}
CVBufferRelease
(
imageBufferToRelease
);
CVBufferRelease
(
imageBufferToRelease
);
}
}
...
...
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