Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1e4bfd0d
Commit
1e4bfd0d
authored
Jul 18, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: now both GLX 1.2 and 1.3 are supported
parent
3a6efa71
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
199 additions
and
133 deletions
+199
-133
modules/visualization/galaktos/glx.c
modules/visualization/galaktos/glx.c
+184
-125
modules/visualization/galaktos/glx.h
modules/visualization/galaktos/glx.h
+1
-2
modules/visualization/galaktos/main.c
modules/visualization/galaktos/main.c
+3
-3
modules/visualization/galaktos/plugin.c
modules/visualization/galaktos/plugin.c
+5
-3
modules/visualization/galaktos/plugin.h
modules/visualization/galaktos/plugin.h
+6
-0
No files found.
modules/visualization/galaktos/glx.c
View file @
1e4bfd0d
This diff is collapsed.
Click to expand it.
modules/visualization/galaktos/glx.h
View file @
1e4bfd0d
...
...
@@ -26,8 +26,7 @@
#include "plugin.h"
int
galaktos_glx_init
(
galaktos_thread_t
*
p_thread
,
int
i_width
,
int
i_height
,
int
b_fullscreen
);
int
galaktos_glx_init
(
galaktos_thread_t
*
p_thread
);
void
galaktos_glx_done
(
galaktos_thread_t
*
p_thread
);
int
galaktos_glx_handle_events
(
galaktos_thread_t
*
p_thread
);
void
galaktos_glx_activate_pbuffer
(
galaktos_thread_t
*
p_thread
);
...
...
modules/visualization/galaktos/main.c
View file @
1e4bfd0d
...
...
@@ -127,8 +127,8 @@ int galaktos_init( galaktos_thread_t *p_thread )
initPresetLoader
();
/* Load default preset directory */
//
loadPresetDir("/home/cyril/.vlc/galaktos");
loadPresetDir
(
"/etc/projectM/presets"
);
loadPresetDir
(
"/home/cyril/.vlc/galaktos"
);
//
loadPresetDir("/etc/projectM/presets");
initPCM
(
maxsamples
);
initBeatDetect
();
...
...
@@ -207,7 +207,7 @@ int galaktos_update( galaktos_thread_t *p_thread )
//and then we perform our manipulations on it
//in pass 2 we will copy the texture into texture memory
//
galaktos_glx_activate_pbuffer( p_thread );
//
galaktos_glx_activate_pbuffer( p_thread );
glPushAttrib
(
GL_ALL_ATTRIB_BITS
);
/* Overkill, but safe */
...
...
modules/visualization/galaktos/plugin.c
View file @
1e4bfd0d
...
...
@@ -113,7 +113,10 @@ static int Open( vlc_object_t *p_this )
p_thread
->
i_cur_sample
=
0
;
bzero
(
p_thread
->
p_data
,
2
*
2
*
512
);
galaktos_glx_init
(
p_thread
,
600
,
600
,
0
);
p_thread
->
i_width
=
600
;
p_thread
->
i_height
=
600
;
p_thread
->
b_fullscreen
=
0
;
galaktos_glx_init
(
p_thread
);
galaktos_init
(
p_thread
);
p_thread
->
i_channels
=
aout_FormatNbChannels
(
&
p_filter
->
input
);
...
...
@@ -199,10 +202,9 @@ static void Thread( vlc_object_t *p_this )
int
timed
=
0
;
int
timestart
=
0
;
int
mspf
=
0
;
int
w
=
600
,
h
=
600
;
galaktos_glx_activate_window
(
p_thread
);
setup_opengl
(
w
,
h
);
setup_opengl
(
p_thread
->
i_width
,
p_thread
->
i_height
);
CreateRenderTarget
(
512
,
&
RenderTargetTextureID
,
NULL
);
timestart
=
mdate
()
/
1000
;
...
...
modules/visualization/galaktos/plugin.h
View file @
1e4bfd0d
...
...
@@ -35,9 +35,15 @@ typedef struct
char
*
psz_title
;
/* Window properties */
int
i_width
;
int
i_height
;
int
b_fullscreen
;
/* Audio properties */
int
i_channels
;
/* Audio buffer */
int16_t
p_data
[
2
][
512
];
int
i_cur_sample
;
...
...
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