Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
858057c2
Commit
858057c2
authored
Feb 02, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/framework: Don't use deprecated functions, fix style and fix \t.
parent
73ebd279
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+15
-14
No files found.
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
858057c2
...
...
@@ -270,7 +270,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
-
(
void
)
setCurrentVideoSubTitleIndex
:(
NSUInteger
)
index
{
libvlc_video_set_spu
(
instance
,
(
int
)
index
);
libvlc_video_set_spu
(
instance
,
(
int
)
index
);
}
-
(
NSUInteger
)
currentVideoSubTitleIndex
...
...
@@ -280,7 +280,7 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
if
(
count
<=
0
)
return
NSNotFound
;
return
libvlc_video_get_spu
(
instance
);
return
libvlc_video_get_spu
(
instance
);
}
-
(
BOOL
)
openVideoSubTitlesFromFile
:(
NSString
*
)
path
...
...
@@ -307,12 +307,12 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
-
(
void
)
setVideoCropGeometry
:(
char
*
)
value
{
libvlc_video_set_crop_geometry
(
instance
,
value
);
libvlc_video_set_crop_geometry
(
instance
,
value
);
}
-
(
char
*
)
videoCropGeometry
{
char
*
result
=
libvlc_video_get_crop_geometry
(
instance
);
char
*
result
=
libvlc_video_get_crop_geometry
(
instance
);
return
result
;
}
...
...
@@ -327,17 +327,16 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
return
result
;
}
-
(
void
)
saveVideoSnapshotAt
:
(
NSString
*
)
path
withWidth
:(
NSUInteger
)
width
andHeight
:(
NSUInteger
)
height
-
(
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
);
int
failure
=
libvlc_video_take_snapshot
(
instance
,
0
,
[
path
UTF8String
],
width
,
height
);
if
(
failure
)
[[
NSException
exceptionWithName
:
@"Can't take a video snapshot"
reason
:
@"No video output"
userInfo
:
nil
]
raise
];
}
-
(
void
)
setDeinterlaceFilter
:
(
NSString
*
)
name
-
(
void
)
setDeinterlaceFilter
:(
NSString
*
)
name
{
libvlc_video_set_deinterlace
(
instance
,
[
name
UTF8String
]
);
libvlc_video_set_deinterlace
(
instance
,
[
name
UTF8String
]
);
}
-
(
void
)
setRate
:(
float
)
value
...
...
@@ -352,9 +351,11 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
-
(
NSSize
)
videoSize
{
NSSize
result
=
NSMakeSize
(
libvlc_video_get_height
((
libvlc_media_player_t
*
)
instance
),
libvlc_video_get_width
((
libvlc_media_player_t
*
)
instance
));
return
result
;
unsigned
height
=
0
,
width
=
0
;
int
failure
=
libvlc_video_get_size
(
instance
,
0
,
&
width
,
&
height
);
if
(
failure
)
[[
NSException
exceptionWithName
:
@"Can't get video size"
reason
:
@"No video output"
userInfo
:
nil
]
raise
];
return
NSMakeSize
(
width
,
height
);
}
-
(
BOOL
)
hasVideoOut
...
...
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