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
499ac6f7
Commit
499ac6f7
authored
Jun 16, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
galaktos: add an option for the size (just finish one piece of code).
parent
064cd58d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/visualization/galaktos/plugin.c
modules/visualization/galaktos/plugin.c
+14
-8
No files found.
modules/visualization/galaktos/plugin.c
View file @
499ac6f7
...
...
@@ -44,11 +44,23 @@
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define WIDTH_TEXT N_("Video width")
#define WIDTH_LONGTEXT N_("The width of the video window, in pixels.")
#define HEIGHT_TEXT N_("Video height")
#define HEIGHT_LONGTEXT N_("The height of the video window, in pixels.")
vlc_module_begin
()
set_description
(
N_
(
"GaLaktos visualization"
)
)
set_capability
(
"visualization"
,
0
)
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"galaktos"
)
add_integer
(
"galaktos-width"
,
640
,
NULL
,
WIDTH_TEXT
,
WIDTH_LONGTEXT
,
false
)
add_integer
(
"galaktos-height"
,
480
,
NULL
,
HEIGHT_TEXT
,
HEIGHT_LONGTEXT
,
false
)
vlc_module_end
()
/*****************************************************************************
...
...
@@ -102,17 +114,11 @@ static int Open( vlc_object_t *p_this )
vlc_object_create
(
p_filter
,
sizeof
(
galaktos_thread_t
)
);
vlc_object_attach
(
p_thread
,
p_this
);
/*
var_Create( p_thread, "galaktos-width", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Get( p_thread, "galaktos-width", &width );
var_Create( p_thread, "galaktos-height", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
var_Get( p_thread, "galaktos-height", &height );
*/
p_thread
->
i_cur_sample
=
0
;
bzero
(
p_thread
->
p_data
,
2
*
2
*
512
);
p_thread
->
i_width
=
600
;
p_thread
->
i_height
=
600
;
p_thread
->
i_width
=
var_CreateGetInteger
(
p_thread
,
"galaktos-width"
)
;
p_thread
->
i_height
=
var_CreateGetInteger
(
p_thread
,
"galaktos-height"
)
;
p_thread
->
b_fullscreen
=
0
;
galaktos_init
(
p_thread
);
...
...
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