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
2d46bfc2
Commit
2d46bfc2
authored
Oct 11, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx/framework: added wrapper methods for snapshots and deinterlacing
parent
93f7584b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
+20
-0
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+16
-0
No files found.
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
View file @
2d46bfc2
...
...
@@ -112,6 +112,26 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
-
(
void
)
setVideoTeleText
:(
int
)
value
;
-
(
int
)
videoTeleText
;
/**
* Take a snapshot of the current video.
*
* If width AND height is 0, original size is used.
* If width OR height is 0, original aspect-ratio is preserved.
*
* \param path the path where to save the screenshot to
* \param width the snapshot's width
* \param height the snapshot's height
*/
-
(
void
)
saveVideoSnapshotAt
:
(
NSString
*
)
path
withWidth
:(
NSUInteger
)
width
andHeight
:(
NSUInteger
)
height
;
/**
* Enable or disable deinterlace filter
*
* \param name of deinterlace filter to use (availability depends on underlying VLC version)
* \param enable boolean to enable or disable deinterlace filter
*/
-
(
void
)
setDeinterlaceFilter
:
(
NSString
*
)
name
enabled
:
(
BOOL
)
enabled
;
@property
float
rate
;
@property
(
readonly
)
VLCAudio
*
audio
;
...
...
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
2d46bfc2
...
...
@@ -304,6 +304,22 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
return
result
;
}
-
(
void
)
saveVideoSnapshotAt
:
(
NSString
*
)
path
withWidth
:(
NSUInteger
)
width
andHeight
:(
NSUInteger
)
height
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_video_take_snapshot
(
instance
,
[
path
UTF8String
],
width
,
height
,
&
ex
);
catch_exception
(
&
ex
);
}
-
(
void
)
setDeinterlaceFilter
:
(
NSString
*
)
name
enabled
:
(
BOOL
)
enabled
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
libvlc_video_set_deinterlace
(
instance
,
(
int
)
enabled
,
[
name
UTF8String
],
&
ex
);
catch_exception
(
&
ex
);
}
-
(
void
)
setRate
:(
float
)
value
{
libvlc_media_player_set_rate
(
instance
,
value
,
NULL
);
...
...
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