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
a206b9f5
Commit
a206b9f5
authored
Jan 23, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlcpp: getSomething => something
parent
da79f90e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
53 deletions
+47
-53
bindings/libvlcpp/src/libvlc.cpp
bindings/libvlcpp/src/libvlc.cpp
+4
-4
bindings/libvlcpp/src/libvlc.hpp
bindings/libvlcpp/src/libvlc.hpp
+4
-4
bindings/libvlcpp/src/media.cpp
bindings/libvlcpp/src/media.cpp
+7
-7
bindings/libvlcpp/src/media.hpp
bindings/libvlcpp/src/media.hpp
+9
-9
bindings/libvlcpp/src/media_player.cpp
bindings/libvlcpp/src/media_player.cpp
+12
-18
bindings/libvlcpp/src/media_player.hpp
bindings/libvlcpp/src/media_player.hpp
+11
-11
No files found.
bindings/libvlcpp/src/libvlc.cpp
View file @
a206b9f5
...
...
@@ -37,22 +37,22 @@ libVLC::~libVLC()
libvlc_release
(
m_instance
);
}
libvlc_instance_t
*
libVLC
::
getI
nstance
()
libvlc_instance_t
*
libVLC
::
i
nstance
()
{
return
m_instance
;
}
const
char
*
libVLC
::
getV
ersion
()
const
char
*
libVLC
::
v
ersion
()
{
return
libvlc_get_version
();
}
const
char
*
libVLC
::
getC
ompiler
()
const
char
*
libVLC
::
c
ompiler
()
{
return
libvlc_get_compiler
();
}
const
char
*
libVLC
::
getC
hanset
()
const
char
*
libVLC
::
c
hanset
()
{
return
libvlc_get_changeset
();
}
bindings/libvlcpp/src/libvlc.hpp
View file @
a206b9f5
...
...
@@ -49,26 +49,26 @@ public:
* Get the version of libVLC
* @return the version
*/
const
char
*
getV
ersion
();
const
char
*
v
ersion
();
/**
* Get the compiler use for this binari
* @return the compiler used
*/
const
char
*
getC
ompiler
();
const
char
*
c
ompiler
();
/**
* Get the chanset of libvlc
* @return thje changeset
*/
const
char
*
getC
hanset
();
const
char
*
c
hanset
();
private:
/**
* Get the instance of libvlc that cannot be modified
* @return the instance of libvlc
*/
libvlc_instance_t
*
getI
nstance
();
libvlc_instance_t
*
i
nstance
();
/** The instance of libvlc */
libvlc_instance_t
*
m_instance
;
...
...
bindings/libvlcpp/src/media.cpp
View file @
a206b9f5
...
...
@@ -29,7 +29,7 @@ using namespace libvlc;
Media
::
Media
(
libVLC
&
libvlcInstance
,
const
char
*
psz_mrl
)
{
Exception
ex
;
m_media
=
libvlc_media_new
(
libvlcInstance
.
getI
nstance
(),
psz_mrl
,
&
ex
.
ex
);
m_media
=
libvlc_media_new
(
libvlcInstance
.
i
nstance
(),
psz_mrl
,
&
ex
.
ex
);
}
Media
::
Media
(
const
Media
&
original
)
...
...
@@ -52,7 +52,7 @@ void Media::addOption( const char *ppsz_options, libvlc_media_option_t flag )
libvlc_media_add_option_flag
(
m_media
,
ppsz_options
,
flag
);
}
int64_t
Media
::
getD
uration
()
int64_t
Media
::
d
uration
()
{
Exception
ex
;
return
libvlc_media_get_duration
(
m_media
,
&
ex
.
ex
);
...
...
@@ -63,12 +63,12 @@ int Media::isPreparsed()
return
libvlc_media_is_preparsed
(
m_media
);
}
char
*
Media
::
getM
rl
()
char
*
Media
::
m
rl
()
{
return
libvlc_media_get_mrl
(
m_media
);
}
char
*
Media
::
getM
eta
(
libvlc_meta_t
e_meta
)
char
*
Media
::
m
eta
(
libvlc_meta_t
e_meta
)
{
return
libvlc_media_get_meta
(
m_media
,
e_meta
);
}
...
...
@@ -83,7 +83,7 @@ int Media::saveMeta()
return
libvlc_media_save_meta
(
m_media
);
}
libvlc_state_t
Media
::
getS
tate
()
libvlc_state_t
Media
::
s
tate
()
{
return
libvlc_media_get_state
(
m_media
);
}
...
...
@@ -93,12 +93,12 @@ void Media::setUserData( void *p_user_data )
libvlc_media_set_user_data
(
m_media
,
p_user_data
);
}
void
*
Media
::
getU
serData
()
void
*
Media
::
u
serData
()
{
return
libvlc_media_get_user_data
(
m_media
);
}
libvlc_media_t
*
Media
::
getI
nstance
()
libvlc_media_t
*
Media
::
i
nstance
()
{
return
m_media
;
}
bindings/libvlcpp/src/media.hpp
View file @
a206b9f5
...
...
@@ -73,7 +73,7 @@ public:
* Get the duration of the media
* @return the duration
*/
int64_t
getD
uration
();
int64_t
d
uration
();
/**
* Get preparsed status of the media
...
...
@@ -85,14 +85,14 @@ public:
* Get the MRL of the media
* @return the MRL of the media
*/
char
*
getM
rl
();
char
*
m
rl
();
/**
* Get the requiered meta
* @param e_meta: type of the meta
* @return the requiered meta
*/
char
*
getM
eta
(
libvlc_meta_t
e_meta
);
char
*
m
eta
(
libvlc_meta_t
e_meta
);
/**
* Set the given meta
...
...
@@ -111,16 +111,16 @@ public:
* Get the state of the media
* @return the state of the media
*/
libvlc_state_t
getS
tate
();
libvlc_state_t
s
tate
();
/**
* Get some statistics about this media
* @return the statistics
*/
libvlc_media_stats_t
*
getS
tats
();
libvlc_media_stats_t
*
s
tats
();
/**\todo:
getS
ubItems */
/**\todo:
getE
ventManager */
/**\todo:
s
ubItems */
/**\todo:
e
ventManager */
/**
* Set media descriptor's user data
...
...
@@ -132,14 +132,14 @@ public:
* Retrive user data specified by a call to setUserData
* @return the user data pointer
*/
void
*
getU
serData
();
void
*
u
serData
();
private:
/**
* Get the instance of the libvlc_media_t
* @return the pointer to libvlc_media_t
*/
libvlc_media_t
*
getI
nstance
();
libvlc_media_t
*
i
nstance
();
/** The media */
libvlc_media_t
*
m_media
;
...
...
bindings/libvlcpp/src/media_player.cpp
View file @
a206b9f5
...
...
@@ -29,13 +29,13 @@ using namespace libvlc;
MediaPlayer
::
MediaPlayer
(
libVLC
&
libvlcInstance
)
{
Exception
ex
;
m_player
=
libvlc_media_player_new
(
libvlcInstance
.
getI
nstance
(),
&
ex
.
ex
);
m_player
=
libvlc_media_player_new
(
libvlcInstance
.
i
nstance
(),
&
ex
.
ex
);
}
MediaPlayer
::
MediaPlayer
(
Media
&
media
)
{
Exception
ex
;
m_player
=
libvlc_media_player_new_from_media
(
media
.
getI
nstance
(),
&
ex
.
ex
);
m_player
=
libvlc_media_player_new_from_media
(
media
.
i
nstance
(),
&
ex
.
ex
);
}
MediaPlayer
::~
MediaPlayer
()
...
...
@@ -46,7 +46,7 @@ MediaPlayer::~MediaPlayer()
void
MediaPlayer
::
setMedia
(
Media
&
media
)
{
Exception
ex
;
libvlc_media_player_set_media
(
m_player
,
media
.
getI
nstance
(),
&
ex
.
ex
);
libvlc_media_player_set_media
(
m_player
,
media
.
i
nstance
(),
&
ex
.
ex
);
}
int
MediaPlayer
::
isPlaying
()
...
...
@@ -79,7 +79,7 @@ void MediaPlayer::setNSObject( void *drawable )
libvlc_media_player_set_nsobject
(
m_player
,
drawable
,
&
ex
.
ex
);
}
void
*
MediaPlayer
::
getNSO
bject
()
void
*
MediaPlayer
::
nso
bject
()
{
return
libvlc_media_player_get_nsobject
(
m_player
);
}
...
...
@@ -90,7 +90,7 @@ void MediaPlayer::setAgl( uint32_t drawable )
libvlc_media_player_set_agl
(
m_player
,
drawable
,
&
ex
.
ex
);
}
uint32_t
MediaPlayer
::
getA
gl
()
uint32_t
MediaPlayer
::
a
gl
()
{
return
libvlc_media_player_get_agl
(
m_player
);
}
...
...
@@ -101,7 +101,7 @@ void MediaPlayer::setXWindow( uint32_t drawable )
libvlc_media_player_set_xwindow
(
m_player
,
drawable
,
&
ex
.
ex
);
}
uint32_t
MediaPlayer
::
getXW
indow
()
uint32_t
MediaPlayer
::
xw
indow
()
{
return
libvlc_media_player_get_xwindow
(
m_player
);
}
...
...
@@ -112,18 +112,18 @@ void MediaPlayer::setHwnd( void *drawable )
libvlc_media_player_set_hwnd
(
m_player
,
drawable
,
&
ex
.
ex
);
}
void
*
MediaPlayer
::
getH
wnd
()
void
*
MediaPlayer
::
h
wnd
()
{
return
libvlc_media_player_get_hwnd
(
m_player
);
}
int64_t
MediaPlayer
::
getL
enght
()
int64_t
MediaPlayer
::
l
enght
()
{
Exception
ex
;
return
libvlc_media_player_get_length
(
m_player
,
&
ex
.
ex
);
}
int64_t
MediaPlayer
::
getT
ime
()
int64_t
MediaPlayer
::
t
ime
()
{
Exception
ex
;
return
libvlc_media_player_get_time
(
m_player
,
&
ex
.
ex
);
...
...
@@ -135,7 +135,7 @@ void MediaPlayer::setTime( int64_t new_time )
libvlc_media_player_set_time
(
m_player
,
new_time
,
&
ex
.
ex
);
}
float
MediaPlayer
::
getP
osition
()
float
MediaPlayer
::
p
osition
()
{
Exception
ex
;
return
libvlc_media_player_get_position
(
m_player
,
&
ex
.
ex
);
...
...
@@ -147,13 +147,13 @@ void MediaPlayer::setPosition( float position )
libvlc_media_player_set_position
(
m_player
,
position
,
&
ex
.
ex
);
}
int
MediaPlayer
::
getC
hapter
()
int
MediaPlayer
::
c
hapter
()
{
Exception
ex
;
return
libvlc_media_player_get_chapter
(
m_player
,
&
ex
.
ex
);
}
int
MediaPlayer
::
getC
hapterCount
()
int
MediaPlayer
::
c
hapterCount
()
{
Exception
ex
;
return
libvlc_media_player_get_chapter_count
(
m_player
,
&
ex
.
ex
);
...
...
@@ -165,9 +165,3 @@ int MediaPlayer::willPlay()
return
libvlc_media_player_will_play
(
m_player
,
&
ex
.
ex
);
}
/*int MediaPlayer::getTitle()
{
Exception ex;
return libvlc_media_player_get_title( m_player, &ex.ex );
}*/
bindings/libvlcpp/src/media_player.hpp
View file @
a206b9f5
...
...
@@ -64,13 +64,13 @@ public:
* Get the media associated with the player
* @return the media
*/
///@todo
getM
edia();
///@todo
m
edia();
/**
* Get the event manager associated to the media player
* @return the event manager
*/
///@todo
getE
ventManager()
///@todo
e
ventManager()
/**
* Is the player playing
...
...
@@ -104,7 +104,7 @@ public:
* Get the NSView handler associated with the media player
* @return the NSView handler
*/
void
*
getNSO
bject
();
void
*
nso
bject
();
/**
* Set the agl handler where the media player shoud render the video
...
...
@@ -116,7 +116,7 @@ public:
* Get the agl handler associated with the media player
* @return the agl handler
*/
uint32_t
getA
gl
();
uint32_t
a
gl
();
/**
* Set the X Window drawable where the media player shoud render the video
...
...
@@ -128,7 +128,7 @@ public:
* Get the X Window drawable associated with the media player
* @return the X Window drawable
*/
uint32_t
getXW
indow
();
uint32_t
xw
indow
();
/**
* Set the Win32/Win64 API window handle where the media player shoud
...
...
@@ -141,20 +141,20 @@ public:
* Get the Win32/Win64 API window handle associated with the media player
* @return the windows handle
*/
void
*
getH
wnd
();
void
*
h
wnd
();
/**
* Get the movie lenght (in ms)
* @return the movie length
*/
int64_t
getL
enght
();
int64_t
l
enght
();
/**
* Get the current movie time (in ms)
* @return the current movie time
*/
int64_t
getT
ime
();
int64_t
t
ime
();
/**
* Set the movie time (in ms)
...
...
@@ -166,7 +166,7 @@ public:
* Get the movie position (in percent)
* @return the movie position
*/
float
getP
osition
();
float
p
osition
();
/**
* Set the movie position (in percent)
...
...
@@ -178,13 +178,13 @@ public:
* Get the current movie chapter
* @return the current chapter
*/
int
getC
hapter
();
int
c
hapter
();
/**
* Get the movie chapter count
* @return the movie chapter count
*/
int
getC
hapterCount
();
int
c
hapterCount
();
/**
* Is the player going to play the media (not dead or dying)
...
...
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