Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
34a9bcde
Commit
34a9bcde
authored
Feb 22, 2014
by
Edward Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LibVLC: use symbolic constants
parent
692243f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
vlc-android/src/org/videolan/libvlc/LibVLC.java
vlc-android/src/org/videolan/libvlc/LibVLC.java
+8
-3
No files found.
vlc-android/src/org/videolan/libvlc/LibVLC.java
View file @
34a9bcde
...
...
@@ -37,6 +37,11 @@ public class LibVLC {
public
static
final
int
VOUT_ANDROID_SURFACE
=
0
;
public
static
final
int
VOUT_OPEGLES2
=
1
;
public
static
final
int
HW_ACCELERATION_AUTOMATIC
=
-
1
;
public
static
final
int
HW_ACCELERATION_DISABLED
=
0
;
public
static
final
int
HW_ACCELERATION_DECODING
=
1
;
public
static
final
int
HW_ACCELERATION_FULL
=
2
;
private
static
LibVLC
sInstance
;
/** libVLC instance C pointer */
...
...
@@ -58,7 +63,7 @@ public class LibVLC {
//private WakeLock mWakeLock;
/** Settings */
private
int
hardwareAcceleration
=
-
1
;
private
int
hardwareAcceleration
=
HW_ACCELERATION_AUTOMATIC
;
private
String
subtitlesEncoding
=
""
;
private
int
aout
=
LibVlcUtil
.
isGingerbreadOrLater
()
?
AOUT_OPENSLES
:
AOUT_AUDIOTRACK_JAVA
;
private
int
vout
=
VOUT_ANDROID_SURFACE
;
...
...
@@ -227,9 +232,9 @@ public class LibVLC {
if
(
hardwareAcceleration
<
0
)
{
// Automatic mode: activate MediaCodec opaque direct rendering for 4.3 and above.
if
(
LibVlcUtil
.
isJellyBeanMR2OrLater
())
this
.
hardwareAcceleration
=
2
;
this
.
hardwareAcceleration
=
HW_ACCELERATION_FULL
;
else
this
.
hardwareAcceleration
=
0
;
this
.
hardwareAcceleration
=
HW_ACCELERATION_DISABLED
;
}
else
this
.
hardwareAcceleration
=
hardwareAcceleration
;
...
...
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