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
7d4656d4
Commit
7d4656d4
authored
Jun 20, 2007
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Should fix compilation
Add some news
parent
bf2bdcca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
NEWS
NEWS
+2
-0
modules/control/motion.c
modules/control/motion.c
+7
-4
modules/control/unimotion.c
modules/control/unimotion.c
+4
-4
No files found.
NEWS
View file @
7d4656d4
...
...
@@ -79,6 +79,7 @@ Video output and filters:
* New bluescreen video filter (for use with the mosaic_bridge module). This
was previously part of the mosaic module.
* Fix random characters problem in RSS filter.
* Add rotate-deciangle for more precision on rotate filter
Audio output
* Replay gain support.
...
...
@@ -99,6 +100,7 @@ Interfaces:
(Media Player Remote Interfacing specification), a common dbus control
interface for media players that intends to become an xdg standard when
finished.
* Motion module use disk accelerometers to keep video horizontal
Capture:
* new BDA device driver plugin for DVB-C/S/T capture cards on Microsoft
...
...
modules/control/motion.c
View file @
7d4656d4
...
...
@@ -47,8 +47,9 @@
struct
intf_sys_t
{
enum
{
NO_SENSOR
,
HDAPS_SENSOR
,
AMS_SENSOR
,
UNIMOTION_SENSOR
}
sensor
;
#ifdef __APPLE__
enum
sms_hardware
unimotion_hw
;
#endif
int
i_calibrate
;
vlc_bool_t
b_use_rotate
;
...
...
@@ -238,8 +239,10 @@ static void RunIntf( intf_thread_t *p_intf )
static
int
GetOrientation
(
intf_thread_t
*
p_intf
)
{
FILE
*
f
;
int
i_x
,
i_y
,
i_z
;
int
i_x
,
i_y
;
#ifdef __APPLE__
int
i_z
;
#endif
switch
(
p_intf
->
p_sys
->
sensor
)
{
case
HDAPS_SENSOR
:
...
...
@@ -279,9 +282,9 @@ static int GetOrientation( intf_thread_t *p_intf )
else
return
3600
+
asin
(
d_x
)
*
3600
/
3
.
141
;
}
#endif
else
return
0
;
#endif
default:
return
0
;
}
...
...
modules/control/unimotion.c
View file @
7d4656d4
...
...
@@ -260,10 +260,10 @@ int read_sms(int type, int *x, int *y, int *z)
if
(
!
ret
)
return
0
;
static
CFStringRef
app
=
CFSTR
(
"com.ramsayl.UniMotion"
);
static
CFStringRef
xoffstr
=
CFSTR
(
"x_offset"
);
static
CFStringRef
yoffstr
=
CFSTR
(
"y_offset"
);
static
CFStringRef
zoffstr
=
CFSTR
(
"z_offset"
);
CFStringRef
app
=
CFSTR
(
"com.ramsayl.UniMotion"
);
CFStringRef
xoffstr
=
CFSTR
(
"x_offset"
);
CFStringRef
yoffstr
=
CFSTR
(
"y_offset"
);
CFStringRef
zoffstr
=
CFSTR
(
"z_offset"
);
xoff
=
CFPreferencesGetAppIntegerValue
(
xoffstr
,
app
,
&
ok
);
if
(
ok
)
_x
+=
xoff
;
yoff
=
CFPreferencesGetAppIntegerValue
(
yoffstr
,
app
,
&
ok
);
...
...
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