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
05aad79a
Commit
05aad79a
authored
Oct 01, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more marq format strings
parent
6db8af99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
4 deletions
+76
-4
modules/video_filter/marq.c
modules/video_filter/marq.c
+76
-4
No files found.
modules/video_filter/marq.c
View file @
05aad79a
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include "vlc_playlist.h"
#include "vlc_playlist.h"
#include "vlc_meta.h"
#include "vlc_meta.h"
#include "vlc_input.h"
#include "vlc_input.h"
#include <vlc/aout.h>
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -90,8 +91,11 @@ struct filter_sys_t
...
@@ -90,8 +91,11 @@ struct filter_sys_t
"$d = description, $e = encoded by, $g = genre, " \
"$d = description, $e = encoded by, $g = genre, " \
"$l = language, $n = track num, $p = now playing, " \
"$l = language, $n = track num, $p = now playing, " \
"$r = rating, $t = title, $u = url, $A = date, " \
"$r = rating, $t = title, $u = url, $A = date, " \
"$D = duration, $F = full name with path, $L = time left, " \
"$B = audio bitrate (in kb/s), $C = chapter," \
"$N = name, $P = publisher, $T = time, $_ = new line) ")
"$D = duration, $F = full name with path, $I = title, "\
"$L = time left, " \
"$N = name, $P = position (in %), $S = audio sample rate (in kHz), " \
"$T = time, $U = publisher, $V = volume, $_ = new line) ")
#define POSX_TEXT N_("X offset")
#define POSX_TEXT N_("X offset")
#define POSX_LONGTEXT N_("X offset, from the left screen edge." )
#define POSX_LONGTEXT N_("X offset, from the left screen edge." )
#define POSY_TEXT N_("Y offset")
#define POSY_TEXT N_("Y offset")
...
@@ -349,6 +353,30 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
...
@@ -349,6 +353,30 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
p_item
->
p_meta
->
psz_date
);
p_item
->
p_meta
->
psz_date
);
break
;
break
;
case
'B'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%d"
,
var_GetInteger
(
p_input
,
"bit-rate"
)
/
1000
);
}
else
{
sprintf
(
buf
,
"-"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'C'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%d"
,
var_GetInteger
(
p_input
,
"chapter"
)
);
}
else
{
sprintf
(
buf
,
"-"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'D'
:
case
'D'
:
if
(
p_item
)
if
(
p_item
)
{
{
...
@@ -366,6 +394,18 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
...
@@ -366,6 +394,18 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
case
'F'
:
case
'F'
:
INSERT_STRING
(
p_item
,
p_item
->
psz_uri
);
INSERT_STRING
(
p_item
,
p_item
->
psz_uri
);
break
;
break
;
case
'I'
:
if
(
p_input
)
{
snprintf
(
buf
,
10
,
"%d"
,
var_GetInteger
(
p_input
,
"title"
)
);
}
else
{
sprintf
(
buf
,
"-"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'L'
:
case
'L'
:
if
(
p_item
&&
p_input
)
if
(
p_item
&&
p_input
)
{
{
...
@@ -384,8 +424,28 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
...
@@ -384,8 +424,28 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
INSERT_STRING
(
p_item
,
p_item
->
psz_name
);
INSERT_STRING
(
p_item
,
p_item
->
psz_name
);
break
;
break
;
case
'P'
:
case
'P'
:
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
if
(
p_input
)
p_item
->
p_meta
->
psz_publisher
);
{
snprintf
(
buf
,
10
,
"%2.1lf"
,
var_GetFloat
(
p_input
,
"position"
)
*
100
.
);
}
else
{
sprintf
(
buf
,
"--.-%%"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
case
'S'
:
if
(
p_input
)
{
int
r
=
var_GetInteger
(
p_input
,
"sample-rate"
);
snprintf
(
buf
,
10
,
"%d.%d"
,
r
/
1000
,
(
r
/
100
)
%
10
);
}
else
{
sprintf
(
buf
,
"-"
);
}
INSERT_STRING
(
1
,
buf
);
break
;
break
;
case
'T'
:
case
'T'
:
if
(
p_input
)
if
(
p_input
)
...
@@ -401,6 +461,18 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
...
@@ -401,6 +461,18 @@ char *FormatMeta( vlc_object_t *p_object, char *string )
}
}
INSERT_STRING
(
1
,
buf
);
INSERT_STRING
(
1
,
buf
);
break
;
break
;
case
'U'
:
INSERT_STRING
(
p_item
&&
p_item
->
p_meta
,
p_item
->
p_meta
->
psz_publisher
);
break
;
case
'V'
:
{
audio_volume_t
volume
;
aout_VolumeGet
(
p_object
,
&
volume
);
snprintf
(
buf
,
10
,
"%d"
,
volume
);
INSERT_STRING
(
1
,
buf
);
break
;
}
case
'_'
:
case
'_'
:
*
d
=
'\n'
;
*
d
=
'\n'
;
d
++
;
d
++
;
...
...
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