Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ce37c799
authored
May 03, 2019
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix Javadoc
parent
71d7e0af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
library/core/src/main/java/com/google/android/exoplayer2/drm/OfflineLicenseHelper.java
library/core/src/main/java/com/google/android/exoplayer2/util/GlUtil.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/CanvasRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/drm/OfflineLicenseHelper.java
View file @
ce37c799
...
@@ -92,7 +92,7 @@ public final class OfflineLicenseHelper<T extends ExoMediaCrypto> {
...
@@ -92,7 +92,7 @@ public final class OfflineLicenseHelper<T extends ExoMediaCrypto> {
* @throws UnsupportedDrmException If the Widevine DRM scheme is unsupported or cannot be
* @throws UnsupportedDrmException If the Widevine DRM scheme is unsupported or cannot be
* instantiated.
* instantiated.
* @see DefaultDrmSessionManager#DefaultDrmSessionManager(java.util.UUID, ExoMediaDrm,
* @see DefaultDrmSessionManager#DefaultDrmSessionManager(java.util.UUID, ExoMediaDrm,
* MediaDrmCallback, HashMap
, Handler, DefaultDrmSessionEventListener
)
* MediaDrmCallback, HashMap)
*/
*/
public
static
OfflineLicenseHelper
<
FrameworkMediaCrypto
>
newWidevineInstance
(
public
static
OfflineLicenseHelper
<
FrameworkMediaCrypto
>
newWidevineInstance
(
String
defaultLicenseUrl
,
String
defaultLicenseUrl
,
...
@@ -115,7 +115,7 @@ public final class OfflineLicenseHelper<T extends ExoMediaCrypto> {
...
@@ -115,7 +115,7 @@ public final class OfflineLicenseHelper<T extends ExoMediaCrypto> {
* @param optionalKeyRequestParameters An optional map of parameters to pass as the last argument
* @param optionalKeyRequestParameters An optional map of parameters to pass as the last argument
* to {@link MediaDrm#getKeyRequest(byte[], byte[], String, int, HashMap)}. May be null.
* to {@link MediaDrm#getKeyRequest(byte[], byte[], String, int, HashMap)}. May be null.
* @see DefaultDrmSessionManager#DefaultDrmSessionManager(java.util.UUID, ExoMediaDrm,
* @see DefaultDrmSessionManager#DefaultDrmSessionManager(java.util.UUID, ExoMediaDrm,
* MediaDrmCallback, HashMap
, Handler, DefaultDrmSessionEventListener
)
* MediaDrmCallback, HashMap)
*/
*/
public
OfflineLicenseHelper
(
public
OfflineLicenseHelper
(
UUID
uuid
,
UUID
uuid
,
...
...
library/core/src/main/java/com/google/android/exoplayer2/util/GlUtil.java
View file @
ce37c799
...
@@ -51,7 +51,7 @@ public final class GlUtil {
...
@@ -51,7 +51,7 @@ public final class GlUtil {
}
}
/**
/**
* Builds a GL shader program from vertex
&
fragment shader code.
* Builds a GL shader program from vertex
and
fragment shader code.
*
*
* @param vertexCode GLES20 vertex shader program as arrays of strings. Strings are joined by
* @param vertexCode GLES20 vertex shader program as arrays of strings. Strings are joined by
* adding a new line character in between each of them.
* adding a new line character in between each of them.
...
@@ -64,7 +64,7 @@ public final class GlUtil {
...
@@ -64,7 +64,7 @@ public final class GlUtil {
}
}
/**
/**
* Builds a GL shader program from vertex
&
fragment shader code.
* Builds a GL shader program from vertex
and
fragment shader code.
*
*
* @param vertexCode GLES20 vertex shader program.
* @param vertexCode GLES20 vertex shader program.
* @param fragmentCode GLES20 fragment shader program.
* @param fragmentCode GLES20 fragment shader program.
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/CanvasRenderer.java
View file @
ce37c799
...
@@ -72,7 +72,7 @@ public final class CanvasRenderer {
...
@@ -72,7 +72,7 @@ public final class CanvasRenderer {
"}"
"}"
};
};
// The quad has 2 triangles built from 4 total vertices. Each vertex has 3 position
&
2 texture
// The quad has 2 triangles built from 4 total vertices. Each vertex has 3 position
and
2 texture
// coordinates.
// coordinates.
private
static
final
int
POSITION_COORDS_PER_VERTEX
=
3
;
private
static
final
int
POSITION_COORDS_PER_VERTEX
=
3
;
private
static
final
int
TEXTURE_COORDS_PER_VERTEX
=
2
;
private
static
final
int
TEXTURE_COORDS_PER_VERTEX
=
2
;
...
@@ -253,8 +253,8 @@ public final class CanvasRenderer {
...
@@ -253,8 +253,8 @@ public final class CanvasRenderer {
* Translates an orientation into pixel coordinates on the canvas.
* Translates an orientation into pixel coordinates on the canvas.
*
*
* <p>This is a minimal hit detection system that works for this quad because it has no model
* <p>This is a minimal hit detection system that works for this quad because it has no model
* matrix. All the math is based on the fact that its size
&
distance are hard-coded into this
* matrix. All the math is based on the fact that its size
and
distance are hard-coded into this
* class. For a more complex 3D mesh, a general bounding box
&
ray collision system would be
* class. For a more complex 3D mesh, a general bounding box
and
ray collision system would be
* required.
* required.
*
*
* @param yaw Yaw of the orientation in radians.
* @param yaw Yaw of the orientation in radians.
...
@@ -287,7 +287,7 @@ public final class CanvasRenderer {
...
@@ -287,7 +287,7 @@ public final class CanvasRenderer {
return
null
;
return
null
;
}
}
// Convert from the polar coordinates of the controller to the rectangular coordinates of the
// Convert from the polar coordinates of the controller to the rectangular coordinates of the
// View. Note the negative yaw
& pitch used to generate Android-compliant x &
y coordinates.
// View. Note the negative yaw
and pitch used to generate Android-compliant x and
y coordinates.
float
clickXPixel
=
(
float
)
(
widthPixel
-
clickXUnit
*
widthPixel
/
widthUnit
);
float
clickXPixel
=
(
float
)
(
widthPixel
-
clickXUnit
*
widthPixel
/
widthUnit
);
float
clickYPixel
=
(
float
)
(
heightPixel
-
clickYUnit
*
heightPixel
/
heightUnit
);
float
clickYPixel
=
(
float
)
(
heightPixel
-
clickYUnit
*
heightPixel
/
heightUnit
);
return
new
PointF
(
clickXPixel
,
clickYPixel
);
return
new
PointF
(
clickXPixel
,
clickYPixel
);
...
...
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