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
f0975acb
Commit
f0975acb
authored
Nov 28, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* const warning fixes. formatting fixes (squash them tabs)
parent
b087885b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
207 additions
and
205 deletions
+207
-205
modules/video_output/opengl.c
modules/video_output/opengl.c
+207
-205
No files found.
modules/video_output/opengl.c
View file @
f0975acb
...
...
@@ -90,13 +90,13 @@
#define OPENGL_EFFECT_NONE 1
#define OPENGL_EFFECT_CUBE 2
#define OPENGL_EFFECT_TRANSPARENT_CUBE 4
#if defined( HAVE_GL_GLU_H ) || defined(
SYS_DARWIN
)
#if defined( HAVE_GL_GLU_H ) || defined(
__APPLE__
)
#define OPENGL_MORE_EFFECT 8
#endif
#ifdef OPENGL_MORE_EFFECT
#include <math.h>
#ifdef SYS_DARWIN
#ifdef __APPLE__
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
...
...
@@ -116,9 +116,9 @@
#define SIGN(x) (x < 0 ? (-1) : 1)
#define PID2 1.570796326794896619231322
static
char
*
ppsz_effects
[]
=
{
static
const
char
*
ppsz_effects
[]
=
{
"none"
,
"cube"
,
"transparent-cube"
,
"cylinder"
,
"torus"
,
"sphere"
,
"SQUAREXY"
,
"SQUARER"
,
"ASINXY"
,
"ASINR"
,
"SINEXY"
,
"SINER"
};
static
char
*
ppsz_effects_text
[]
=
{
static
const
char
*
ppsz_effects_text
[]
=
{
N_
(
"None"
),
N_
(
"Cube"
),
N_
(
"Transparent Cube"
),
N_
(
"Cylinder"
),
N_
(
"Torus"
),
N_
(
"Sphere"
),
N_
(
"SQUAREXY"
),
N_
(
"SQUARER"
),
N_
(
"ASINXY"
),
N_
(
"ASINR"
),
N_
(
"SINEXY"
),
N_
(
"SINER"
)
};
#endif
...
...
@@ -137,14 +137,17 @@ static int Control ( vout_thread_t *, int, va_list );
static
inline
int
GetAlignedSize
(
int
);
static
int
InitTextures
(
vout_thread_t
*
);
static
int
SendEvents
(
vlc_object_t
*
,
char
const
*
,
static
int
InitTextures
(
vout_thread_t
*
);
static
int
SendEvents
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
#ifdef OPENGL_MORE_EFFECT
static
float
Z_Compute
(
float
,
int
,
float
,
float
);
static
void
Transform
(
float
,
int
,
float
,
float
,
int
,
int
,
int
,
int
,
double
*
,
double
*
);
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#ifdef OPENGL_MORE_EFFECT
#define ACCURACY_TEXT N_( "OpenGL sampling accuracy " )
#define ACCURACY_LONGTEXT N_( "Select the accuracy of 3D object sampling(1 = min and 10 = max)" )
#define RADIUS_TEXT N_( "OpenGL Cylinder radius" )
...
...
@@ -167,9 +170,9 @@ static int SendEvents( vlc_object_t *, char const *,
"Several visual OpenGL effects are available." )
#ifndef OPENGL_MORE_EFFECT
static
char
*
ppsz_effects
[]
=
{
static
c
onst
c
har
*
ppsz_effects
[]
=
{
"none"
,
"cube"
,
"transparent-cube"
};
static
char
*
ppsz_effects_text
[]
=
{
static
c
onst
c
har
*
ppsz_effects_text
[]
=
{
N_
(
"None"
),
N_
(
"Cube"
),
N_
(
"Transparent Cube"
)
};
#endif
...
...
@@ -741,7 +744,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
/*****************************************************************************
* Transform: Calculate the distorted grid coordinates
*****************************************************************************/
void
Transform
(
float
p
,
int
distortion
,
float
width
,
float
height
,
int
i
,
int
j
,
int
i_visible_width
,
int
i_visible_height
,
double
*
ix
,
double
*
iy
)
static
void
Transform
(
float
p
,
int
distortion
,
float
width
,
float
height
,
int
i
,
int
j
,
int
i_visible_width
,
int
i_visible_height
,
double
*
ix
,
double
*
iy
)
{
double
x
,
y
,
xnew
,
ynew
;
double
r
,
theta
,
rnew
,
thetanew
;
...
...
@@ -799,11 +802,10 @@ void Transform(float p, int distortion, float width, float height,int i, int j,
*
iy
=
height
*
(
ynew
+
1
)
/
(
2
.
0
);
}
/*****************************************************************************
* Z_Compute: Calculate the Z-coordinate
*****************************************************************************/
float
Z_Compute
(
float
p
,
int
distortion
,
float
x
,
float
y
)
static
float
Z_Compute
(
float
p
,
int
distortion
,
float
x
,
float
y
)
{
float
f_z
=
0
.
0
;
double
d_p
=
p
/
100
.
0
;
...
...
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