mirror of
https://github.com/androidx/media.git
synced 2025-05-08 08:00:49 +08:00
Move Spherical UI components to the UI module
PiperOrigin-RevId: 357549002
This commit is contained in:
parent
6a642ec58b
commit
1b6dd40aa5
@ -8,6 +8,8 @@
|
||||
* Add builder for `PlayerNotificationManager`.
|
||||
* Library restructuring:
|
||||
* `DebugTextViewHelper` moved from `ui` package to `util` package.
|
||||
* Spherical UI components moved from `video.spherical` package to
|
||||
`ui.spherical` package, and made package private.
|
||||
* Remove deprecated symbols:
|
||||
* Remove `Player.DefaultEventListener`. Use `Player.EventListener`
|
||||
instead.
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import android.opengl.Matrix;
|
||||
import com.google.android.exoplayer2.util.TimedValueQueue;
|
||||
@ -27,7 +27,7 @@ import com.google.android.exoplayer2.util.TimedValueQueue;
|
||||
* <li>Recenters the rotations to componsate the yaw of the initial rotation.
|
||||
* </ul>
|
||||
*/
|
||||
public final class FrameRotationQueue {
|
||||
/* package */ final class FrameRotationQueue {
|
||||
private final float[] recenterMatrix;
|
||||
private final float[] rotationMatrix;
|
||||
private final TimedValueQueue<float[]> rotations;
|
@ -23,7 +23,6 @@ import android.opengl.Matrix;
|
||||
import android.view.Display;
|
||||
import android.view.Surface;
|
||||
import androidx.annotation.BinderThread;
|
||||
import com.google.android.exoplayer2.video.spherical.FrameRotationQueue;
|
||||
|
||||
/**
|
||||
* Listens for orientation sensor events, converts event data to rotation matrix and roll value, and
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
import com.google.android.exoplayer2.C;
|
||||
@ -24,7 +24,7 @@ import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/** The projection mesh used with 360/VR videos. */
|
||||
public final class Projection {
|
||||
/* package */ final class Projection {
|
||||
|
||||
/** Enforces allowed (sub) mesh draw modes. */
|
||||
@Documented
|
@ -13,15 +13,15 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.ui.spherical.Projection.Mesh;
|
||||
import com.google.android.exoplayer2.ui.spherical.Projection.SubMesh;
|
||||
import com.google.android.exoplayer2.util.ParsableBitArray;
|
||||
import com.google.android.exoplayer2.util.ParsableByteArray;
|
||||
import com.google.android.exoplayer2.util.Util;
|
||||
import com.google.android.exoplayer2.video.spherical.Projection.Mesh;
|
||||
import com.google.android.exoplayer2.video.spherical.Projection.SubMesh;
|
||||
import java.util.ArrayList;
|
||||
import java.util.zip.Inflater;
|
||||
|
||||
@ -34,7 +34,7 @@ import java.util.zip.Inflater;
|
||||
*
|
||||
* <p>The decoder does not perform CRC checks at the moment.
|
||||
*/
|
||||
public final class ProjectionDecoder {
|
||||
/* package */ final class ProjectionDecoder {
|
||||
|
||||
private static final int TYPE_YTMP = 0x79746d70;
|
||||
private static final int TYPE_MSHP = 0x6d736870;
|
@ -22,7 +22,6 @@ import android.opengl.GLES20;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.util.GlUtil;
|
||||
import com.google.android.exoplayer2.video.spherical.Projection;
|
||||
import java.nio.FloatBuffer;
|
||||
|
||||
/**
|
||||
|
@ -29,9 +29,6 @@ import com.google.android.exoplayer2.util.GlUtil;
|
||||
import com.google.android.exoplayer2.util.TimedValueQueue;
|
||||
import com.google.android.exoplayer2.video.VideoFrameMetadataListener;
|
||||
import com.google.android.exoplayer2.video.spherical.CameraMotionListener;
|
||||
import com.google.android.exoplayer2.video.spherical.FrameRotationQueue;
|
||||
import com.google.android.exoplayer2.video.spherical.Projection;
|
||||
import com.google.android.exoplayer2.video.spherical.ProjectionDecoder;
|
||||
import java.util.Arrays;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
|
@ -44,7 +44,7 @@ import androidx.annotation.Nullable;
|
||||
* a nicer UI. An even more advanced UI would reproject the user's touch point into 3D and drag the
|
||||
* Mesh as the user moves their finger. However, that requires quaternion interpolation.
|
||||
*/
|
||||
/* package */ class TouchTracker extends GestureDetector.SimpleOnGestureListener
|
||||
/* package */ final class TouchTracker extends GestureDetector.SimpleOnGestureListener
|
||||
implements View.OnTouchListener, OrientationListener.Listener {
|
||||
|
||||
/* package */ interface Listener {
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.google.android.exoplayer2.video.spherical;
|
||||
package com.google.android.exoplayer2.ui.spherical;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.junit.Assert.assertEquals;
|
Loading…
x
Reference in New Issue
Block a user