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
0651db52
Commit
0651db52
authored
Mar 18, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
%f in galaktos (Closes:#585)
parent
13817ff8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
modules/visualization/galaktos/init_cond.c
modules/visualization/galaktos/init_cond.c
+5
-2
modules/visualization/galaktos/preset.c
modules/visualization/galaktos/preset.c
+8
-3
No files found.
modules/visualization/galaktos/init_cond.c
View file @
0651db52
...
...
@@ -22,7 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <vlc/vlc.h>
/* Library functions to manipulate initial condition values */
...
...
@@ -115,6 +115,7 @@ void init_cond_to_string(init_cond_t * init_cond) {
/* Create a string "param_name=val" */
switch
(
init_cond
->
param
->
type
)
{
lldiv_t
div
;
case
P_TYPE_BOOL
:
sprintf
(
string
,
"%s=%d
\n
"
,
init_cond
->
param
->
name
,
init_cond
->
init_val
.
bool_val
);
...
...
@@ -123,7 +124,9 @@ void init_cond_to_string(init_cond_t * init_cond) {
sprintf
(
string
,
"%s=%d
\n
"
,
init_cond
->
param
->
name
,
init_cond
->
init_val
.
int_val
);
break
;
case
P_TYPE_DOUBLE
:
sprintf
(
string
,
"%s=%f
\n
"
,
init_cond
->
param
->
name
,
init_cond
->
init_val
.
double_val
);
div
=
lldiv
(
init_cond
->
init_val
.
double_val
*
1000000
,
1000000
);
sprintf
(
string
,
"%s="
I64Fd
".%06u
\n
"
,
init_cond
->
param
->
name
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
break
;
default:
return
;
...
...
modules/visualization/galaktos/preset.c
View file @
0651db52
...
...
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <vlc/vlc.h>
#include <stdio.h>
...
...
@@ -886,15 +887,19 @@ void write_init(init_cond_t * init_cond) {
sprintf
(
s
,
"%s=%d
\n
"
,
init_cond
->
param
->
name
,
init_cond
->
init_val
.
int_val
);
else
if
(
init_cond
->
param
->
type
==
P_TYPE_DOUBLE
)
sprintf
(
s
,
"%s=%f
\n
"
,
init_cond
->
param
->
name
,
init_cond
->
init_val
.
double_val
);
{
lldiv_t
div
=
lldiv
(
init_cond
->
init_val
.
double_val
*
1000000
,
1000000
);
sprintf
(
s
,
"%s="
I64Fd
".%06u
\n
"
,
init_cond
->
param
->
name
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
}
else
{
printf
(
"write_init: unknown parameter type!
\n
"
);
return
;
}
len
=
strlen
(
s
);
if
((
fwrite
(
s
,
1
,
len
,
write_stream
))
!=
len
)
printf
(
"write_init: failed writing to file stream! Out of disk space?
\n
"
);
}
...
...
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