Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
33983554
Commit
33983554
authored
Jun 04, 2006
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* added video height/width getters in libvlc
* libvlc playlist play uses locking
parent
840f845c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
5 deletions
+48
-5
include/vlc/libvlc.h
include/vlc/libvlc.h
+21
-2
src/control/playlist.c
src/control/playlist.c
+1
-1
src/control/video.c
src/control/video.c
+26
-2
No files found.
include/vlc/libvlc.h
View file @
33983554
...
@@ -269,8 +269,6 @@ vlc_int64_t libvlc_input_get_length( libvlc_input_t *, libvlc_exception_t *);
...
@@ -269,8 +269,6 @@ vlc_int64_t libvlc_input_get_length( libvlc_input_t *, libvlc_exception_t *);
vlc_int64_t
libvlc_input_get_time
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_int64_t
libvlc_input_get_time
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_position
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
float
libvlc_input_get_position
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
vlc_bool_t
libvlc_input_will_play
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/** @} */
/** @} */
...
@@ -302,8 +300,29 @@ void libvlc_set_fullscreen( libvlc_input_t *, int, libvlc_exception_t * );
...
@@ -302,8 +300,29 @@ void libvlc_set_fullscreen( libvlc_input_t *, int, libvlc_exception_t * );
* \return the fullscreen status (boolean)
* \return the fullscreen status (boolean)
*/
*/
int
libvlc_get_fullscreen
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
int
libvlc_get_fullscreen
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/**
* Get current video height
* \param p_input the input
* \param p_exception an initialized exception
* \return the video height
*/
int
libvlc_video_get_height
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/**
* Get current video width
* \param p_input the input
* \param p_exception an initialized exception
* \return the video width
*/
int
libvlc_video_get_width
(
libvlc_input_t
*
,
libvlc_exception_t
*
);
/**
* Take a snapshot of the current video window
* \param p_input the input
* \param psz_filepath the path where to save the screenshot to
* \param p_exception an initialized exception
*/
void
libvlc_video_take_snapshot
(
libvlc_input_t
*
,
char
*
,
libvlc_exception_t
*
);
void
libvlc_video_take_snapshot
(
libvlc_input_t
*
,
char
*
,
libvlc_exception_t
*
);
...
...
src/control/playlist.c
View file @
33983554
...
@@ -46,7 +46,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
...
@@ -46,7 +46,7 @@ void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
libvlc_exception_raise
(
p_exception
,
"Unable to find item "
);
libvlc_exception_raise
(
p_exception
,
"Unable to find item "
);
return
;
return
;
}
}
playlist_Control
(
p_instance
->
p_playlist
,
PLAYLIST_VIEWPLAY
,
playlist_
Lock
Control
(
p_instance
->
p_playlist
,
PLAYLIST_VIEWPLAY
,
p_instance
->
p_playlist
->
status
.
p_node
,
p_item
);
p_instance
->
p_playlist
->
status
.
p_node
,
p_item
);
}
}
else
else
...
...
src/control/video.c
View file @
33983554
...
@@ -125,7 +125,7 @@ void libvlc_toggle_fullscreen( libvlc_input_t *p_input,
...
@@ -125,7 +125,7 @@ void libvlc_toggle_fullscreen( libvlc_input_t *p_input,
}
}
void
void
libvlc_video_take_snapshot
(
libvlc_input_t
*
p_input
,
char
*
filepath
,
libvlc_video_take_snapshot
(
libvlc_input_t
*
p_input
,
char
*
psz_
filepath
,
libvlc_exception_t
*
p_e
)
libvlc_exception_t
*
p_e
)
{
{
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
vout_thread_t
*
p_vout
=
GetVout
(
p_input
,
p_e
);
...
@@ -148,7 +148,7 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *filepath,
...
@@ -148,7 +148,7 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *filepath,
return
NULL
;
return
NULL
;
}
}
snprintf
(
path
,
255
,
"%s"
,
filepath
);
snprintf
(
path
,
255
,
"%s"
,
psz_
filepath
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-path"
,
path
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
var_SetString
(
p_vout
,
"snapshot-format"
,
"png"
);
...
@@ -158,3 +158,27 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *filepath,
...
@@ -158,3 +158,27 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *filepath,
return
;
return
;
}
}
int
libvlc_video_get_height
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_e
)
{
vout_thread_t
*
p_vout1
=
GetVout
(
p_input
,
p_e
);
if
(
!
p_vout1
)
return
0
;
vlc_object_release
(
p_vout1
);
return
p_vout1
->
i_window_height
;
}
int
libvlc_video_get_width
(
libvlc_input_t
*
p_input
,
libvlc_exception_t
*
p_e
)
{
vout_thread_t
*
p_vout1
=
GetVout
(
p_input
,
p_e
);
if
(
!
p_vout1
)
return
0
;
vlc_object_release
(
p_vout1
);
return
p_vout1
->
i_window_width
;
}
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