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
22725ddf
authored
Aug 03, 2022
by
hschlueter
Committed by
tonihei
Aug 03, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Move effects functionality out of transformer to effects module.
PiperOrigin-RevId: 465038852
parent
87623220
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
109 additions
and
52 deletions
demos/transformer/build.gradle
demos/transformer/src/main/java/androidx/media3/demo/transformer/BitmapOverlayProcessor.java
demos/transformer/src/main/java/androidx/media3/demo/transformer/MatrixTransformationFactory.java
demos/transformer/src/main/java/androidx/media3/demo/transformer/PeriodicVignetteProcessor.java
demos/transformer/src/main/java/androidx/media3/demo/transformer/TransformerActivity.java
demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java
libraries/effect/build.gradle
libraries/effect/src/androidTest/AndroidManifest.xml
libraries/transformer/src/androidTest/java/androidx/media3/transformer/BitmapTestUtil.java → libraries/effect/src/androidTest/java/androidx/media3/effect/BitmapTestUtil.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/ContrastPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/ContrastPixelTest.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/CropPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/CropPixelTest.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/GlEffectsFrameProcessorPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/GlEffectsFrameProcessorPixelTest.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/MatrixTransformationProcessorPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/MatrixTransformationProcessorPixelTest.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/PresentationPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/PresentationPixelTest.java
libraries/transformer/src/androidTest/java/androidx/media3/transformer/RgbaMatrixPixelTest.java → libraries/effect/src/androidTest/java/androidx/media3/effect/RgbaMatrixPixelTest.java
libraries/transformer/src/main/assets/shaders/fragment_shader_contrast_es2.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_contrast_es2.glsl
libraries/transformer/src/main/assets/shaders/fragment_shader_copy_es2.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_copy_es2.glsl
libraries/transformer/src/main/assets/shaders/fragment_shader_copy_external_es2.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_copy_external_es2.glsl
libraries/transformer/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl
libraries/transformer/src/main/assets/shaders/fragment_shader_hlg_eotf_es3.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_hlg_eotf_es3.glsl
libraries/transformer/src/main/assets/shaders/fragment_shader_transformation_es2.glsl → libraries/effect/src/main/assets/shaders/fragment_shader_transformation_es2.glsl
libraries/transformer/src/main/assets/shaders/vertex_shader_transformation_es2.glsl → libraries/effect/src/main/assets/shaders/vertex_shader_transformation_es2.glsl
libraries/transformer/src/main/assets/shaders/vertex_shader_transformation_es3.glsl → libraries/effect/src/main/assets/shaders/vertex_shader_transformation_es3.glsl
libraries/transformer/src/main/java/androidx/media3/transformer/ChainingGlTextureProcessorListener.java → libraries/effect/src/main/java/androidx/media3/effect/ChainingGlTextureProcessorListener.java
libraries/transformer/src/main/java/androidx/media3/transformer/Contrast.java → libraries/effect/src/main/java/androidx/media3/effect/Contrast.java
libraries/transformer/src/main/java/androidx/media3/transformer/ContrastProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/ContrastProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/Crop.java → libraries/effect/src/main/java/androidx/media3/effect/Crop.java
libraries/transformer/src/main/java/androidx/media3/transformer/ExternalTextureProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/ExternalTextureProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/FinalMatrixTransformationProcessorWrapper.java → libraries/effect/src/main/java/androidx/media3/effect/FinalMatrixTransformationProcessorWrapper.java
libraries/transformer/src/main/java/androidx/media3/transformer/FrameProcessingTask.java → libraries/effect/src/main/java/androidx/media3/effect/FrameProcessingTask.java
libraries/transformer/src/main/java/androidx/media3/transformer/FrameProcessingTaskExecutor.java → libraries/effect/src/main/java/androidx/media3/effect/FrameProcessingTaskExecutor.java
libraries/transformer/src/main/java/androidx/media3/transformer/GlEffect.java → libraries/effect/src/main/java/androidx/media3/effect/GlEffect.java
libraries/transformer/src/main/java/androidx/media3/transformer/GlEffectsFrameProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/GlEffectsFrameProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/GlMatrixTransformation.java → libraries/effect/src/main/java/androidx/media3/effect/GlMatrixTransformation.java
libraries/transformer/src/main/java/androidx/media3/transformer/GlTextureProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/GlTextureProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/MatrixTransformation.java → libraries/effect/src/main/java/androidx/media3/effect/MatrixTransformation.java
libraries/transformer/src/main/java/androidx/media3/transformer/MatrixTransformationProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/MatrixTransformationProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/MatrixUtils.java → libraries/effect/src/main/java/androidx/media3/effect/MatrixUtils.java
libraries/transformer/src/main/java/androidx/media3/transformer/Presentation.java → libraries/effect/src/main/java/androidx/media3/effect/Presentation.java
libraries/transformer/src/main/java/androidx/media3/transformer/RgbaMatrix.java → libraries/effect/src/main/java/androidx/media3/effect/RgbaMatrix.java
libraries/transformer/src/main/java/androidx/media3/transformer/RgbaMatrixProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/RgbaMatrixProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/ScaleToFitTransformation.java → libraries/effect/src/main/java/androidx/media3/effect/ScaleToFitTransformation.java
libraries/transformer/src/main/java/androidx/media3/transformer/SingleFrameGlTextureProcessor.java → libraries/effect/src/main/java/androidx/media3/effect/SingleFrameGlTextureProcessor.java
libraries/transformer/src/main/java/androidx/media3/transformer/TextureInfo.java → libraries/effect/src/main/java/androidx/media3/effect/TextureInfo.java
libraries/transformer/src/test/java/androidx/media3/transformer/ChainingGlTextureProcessorListenerTest.java → libraries/effect/src/test/java/androidx/media3/effect/ChainingGlTextureProcessorListenerTest.java
libraries/transformer/src/test/java/androidx/media3/transformer/CropTest.java → libraries/effect/src/test/java/androidx/media3/effect/CropTest.java
libraries/transformer/src/test/java/androidx/media3/transformer/MatrixUtilsTest.java → libraries/effect/src/test/java/androidx/media3/effect/MatrixUtilsTest.java
libraries/transformer/src/test/java/androidx/media3/transformer/PresentationTest.java → libraries/effect/src/test/java/androidx/media3/effect/PresentationTest.java
libraries/transformer/src/test/java/androidx/media3/transformer/ScaleToFitTransformationTest.java → libraries/effect/src/test/java/androidx/media3/effect/ScaleToFitTransformationTest.java
libraries/transformer/build.gradle
libraries/transformer/src/main/java/androidx/media3/transformer/Transformer.java
libraries/transformer/src/main/java/androidx/media3/transformer/VideoTranscodingSamplePipeline.java
demos/transformer/build.gradle
View file @
22725ddf
...
@@ -76,6 +76,7 @@ dependencies {
...
@@ -76,6 +76,7 @@ dependencies {
implementation
'androidx.constraintlayout:constraintlayout:'
+
androidxConstraintLayoutVersion
implementation
'androidx.constraintlayout:constraintlayout:'
+
androidxConstraintLayoutVersion
implementation
'androidx.multidex:multidex:'
+
androidxMultidexVersion
implementation
'androidx.multidex:multidex:'
+
androidxMultidexVersion
implementation
'com.google.android.material:material:'
+
androidxMaterialVersion
implementation
'com.google.android.material:material:'
+
androidxMaterialVersion
implementation
project
(
modulePrefix
+
'lib-effect'
)
implementation
project
(
modulePrefix
+
'lib-exoplayer'
)
implementation
project
(
modulePrefix
+
'lib-exoplayer'
)
implementation
project
(
modulePrefix
+
'lib-exoplayer-dash'
)
implementation
project
(
modulePrefix
+
'lib-exoplayer-dash'
)
implementation
project
(
modulePrefix
+
'lib-transformer'
)
implementation
project
(
modulePrefix
+
'lib-transformer'
)
...
...
demos/transformer/src/main/java/androidx/media3/demo/transformer/BitmapOverlayProcessor.java
View file @
22725ddf
...
@@ -33,7 +33,7 @@ import androidx.media3.common.C;
...
@@ -33,7 +33,7 @@ import androidx.media3.common.C;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.util.GlProgram
;
import
androidx.media3.common.util.GlProgram
;
import
androidx.media3.common.util.GlUtil
;
import
androidx.media3.common.util.GlUtil
;
import
androidx.media3.
transformer
.SingleFrameGlTextureProcessor
;
import
androidx.media3.
effect
.SingleFrameGlTextureProcessor
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.Locale
;
import
java.util.Locale
;
...
...
demos/transformer/src/main/java/androidx/media3/demo/transformer/MatrixTransformationFactory.java
View file @
22725ddf
...
@@ -18,8 +18,8 @@ package androidx.media3.demo.transformer;
...
@@ -18,8 +18,8 @@ package androidx.media3.demo.transformer;
import
android.graphics.Matrix
;
import
android.graphics.Matrix
;
import
androidx.media3.common.C
;
import
androidx.media3.common.C
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.
transformer
.GlMatrixTransformation
;
import
androidx.media3.
effect
.GlMatrixTransformation
;
import
androidx.media3.
transformer
.MatrixTransformation
;
import
androidx.media3.
effect
.MatrixTransformation
;
/**
/**
* Factory for {@link GlMatrixTransformation GlMatrixTransformations} and {@link
* Factory for {@link GlMatrixTransformation GlMatrixTransformations} and {@link
...
...
demos/transformer/src/main/java/androidx/media3/demo/transformer/PeriodicVignetteProcessor.java
View file @
22725ddf
...
@@ -23,7 +23,7 @@ import android.util.Pair;
...
@@ -23,7 +23,7 @@ import android.util.Pair;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.util.GlProgram
;
import
androidx.media3.common.util.GlProgram
;
import
androidx.media3.common.util.GlUtil
;
import
androidx.media3.common.util.GlUtil
;
import
androidx.media3.
transformer
.SingleFrameGlTextureProcessor
;
import
androidx.media3.
effect
.SingleFrameGlTextureProcessor
;
import
java.io.IOException
;
import
java.io.IOException
;
/**
/**
...
...
demos/transformer/src/main/java/androidx/media3/demo/transformer/TransformerActivity.java
View file @
22725ddf
...
@@ -41,12 +41,12 @@ import androidx.media3.common.Effect;
...
@@ -41,12 +41,12 @@ import androidx.media3.common.Effect;
import
androidx.media3.common.MediaItem
;
import
androidx.media3.common.MediaItem
;
import
androidx.media3.common.util.Log
;
import
androidx.media3.common.util.Log
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.effect.Contrast
;
import
androidx.media3.effect.GlEffect
;
import
androidx.media3.effect.GlTextureProcessor
;
import
androidx.media3.exoplayer.ExoPlayer
;
import
androidx.media3.exoplayer.ExoPlayer
;
import
androidx.media3.exoplayer.util.DebugTextViewHelper
;
import
androidx.media3.exoplayer.util.DebugTextViewHelper
;
import
androidx.media3.transformer.Contrast
;
import
androidx.media3.transformer.DefaultEncoderFactory
;
import
androidx.media3.transformer.DefaultEncoderFactory
;
import
androidx.media3.transformer.GlEffect
;
import
androidx.media3.transformer.GlTextureProcessor
;
import
androidx.media3.transformer.ProgressHolder
;
import
androidx.media3.transformer.ProgressHolder
;
import
androidx.media3.transformer.TransformationException
;
import
androidx.media3.transformer.TransformationException
;
import
androidx.media3.transformer.TransformationRequest
;
import
androidx.media3.transformer.TransformationRequest
;
...
@@ -279,7 +279,7 @@ public final class TransformerActivity extends AppCompatActivity {
...
@@ -279,7 +279,7 @@ public final class TransformerActivity extends AppCompatActivity {
Class
<?>
clazz
=
Class
.
forName
(
"androidx.media3.demo.transformer.MediaPipeProcessor"
);
Class
<?>
clazz
=
Class
.
forName
(
"androidx.media3.demo.transformer.MediaPipeProcessor"
);
Constructor
<?>
constructor
=
Constructor
<?>
constructor
=
clazz
.
getConstructor
(
clazz
.
getConstructor
(
Context
.
class
,
B
oolean
.
class
,
String
.
class
,
String
.
class
,
String
.
class
);
Context
.
class
,
b
oolean
.
class
,
String
.
class
,
String
.
class
,
String
.
class
);
effects
.
add
(
effects
.
add
(
(
GlEffect
)
(
GlEffect
)
(
Context
context
,
boolean
useHdr
)
->
{
(
Context
context
,
boolean
useHdr
)
->
{
...
...
demos/transformer/src/withMediaPipe/java/androidx/media3/demo/transformer/MediaPipeProcessor.java
View file @
22725ddf
...
@@ -28,8 +28,8 @@ import androidx.media3.common.C;
...
@@ -28,8 +28,8 @@ import androidx.media3.common.C;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.util.LibraryLoader
;
import
androidx.media3.common.util.LibraryLoader
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.
transformer
.GlTextureProcessor
;
import
androidx.media3.
effect
.GlTextureProcessor
;
import
androidx.media3.
transformer
.TextureInfo
;
import
androidx.media3.
effect
.TextureInfo
;
import
com.google.mediapipe.components.FrameProcessor
;
import
com.google.mediapipe.components.FrameProcessor
;
import
com.google.mediapipe.framework.AppTextureFrame
;
import
com.google.mediapipe.framework.AppTextureFrame
;
import
com.google.mediapipe.framework.TextureFrame
;
import
com.google.mediapipe.framework.TextureFrame
;
...
...
libraries/effect/build.gradle
View file @
22725ddf
...
@@ -35,6 +35,24 @@ android {
...
@@ -35,6 +35,24 @@ android {
}
}
}
}
dependencies
{
implementation
'androidx.annotation:annotation:'
+
androidxAnnotationVersion
implementation
project
(
modulePrefix
+
'lib-common'
)
compileOnly
'com.google.errorprone:error_prone_annotations:'
+
errorProneVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-compat-qual:'
+
checkerframeworkCompatVersion
compileOnly
'org.jetbrains.kotlin:kotlin-annotations-jvm:'
+
kotlinAnnotationsVersion
testImplementation
project
(
modulePrefix
+
'test-utils-robolectric'
)
testImplementation
project
(
modulePrefix
+
'test-utils'
)
testImplementation
project
(
modulePrefix
+
'test-data'
)
testImplementation
'org.robolectric:robolectric:'
+
robolectricVersion
testImplementation
'com.google.truth:truth:'
+
truthVersion
androidTestImplementation
'junit:junit:'
+
junitVersion
androidTestImplementation
'androidx.test:runner:'
+
androidxTestRunnerVersion
androidTestImplementation
'com.google.truth:truth:'
+
truthVersion
androidTestImplementation
project
(
modulePrefix
+
'test-utils'
)
}
ext
{
ext
{
javadocTitle
=
'Effect module'
javadocTitle
=
'Effect module'
}
}
...
...
libraries/effect/src/androidTest/AndroidManifest.xml
0 → 100644
View file @
22725ddf
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
package=
"androidx.media3.effect"
>
<uses-sdk/>
<application
android:allowBackup=
"false"
tools:ignore=
"MissingApplicationIcon,HardcodedDebugMode"
android:usesCleartextTraffic=
"true"
/>
<instrumentation
android:targetPackage=
"androidx.media3.effect"
android:name=
"androidx.test.runner.AndroidJUnitRunner"
/>
</manifest>
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/BitmapTestUtil.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/BitmapTestUtil.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/ContrastPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/ContrastPixelTest.java
View file @
22725ddf
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/CropPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/CropPixelTest.java
View file @
22725ddf
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/GlEffectsFrameProcessorPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/GlEffectsFrameProcessorPixelTest.java
View file @
22725ddf
...
@@ -13,11 +13,11 @@
...
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
java
.
util
.
Arrays
.
asList
;
import
static
java
.
util
.
Arrays
.
asList
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/MatrixTransformationProcessorPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/MatrixTransformationProcessorPixelTest.java
View file @
22725ddf
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/PresentationPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/PresentationPixelTest.java
View file @
22725ddf
...
@@ -13,10 +13,10 @@
...
@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/androidTest/java/androidx/media3/transformer
/RgbaMatrixPixelTest.java
→
libraries/
effect/src/androidTest/java/androidx/media3/effect
/RgbaMatrixPixelTest.java
View file @
22725ddf
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkNotNull
;
import
static
androidx
.
media3
.
transformer
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
media3
.
effect
.
BitmapTestUtil
.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
androidx
.
test
.
core
.
app
.
ApplicationProvider
.
getApplicationContext
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer
/src/main/assets/shaders/fragment_shader_contrast_es2.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_contrast_es2.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/fragment_shader_copy_es2.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_copy_es2.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/fragment_shader_copy_external_es2.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_copy_external_es2.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_copy_external_yuv_es3.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/fragment_shader_hlg_eotf_es3.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_hlg_eotf_es3.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/fragment_shader_transformation_es2.glsl
→
libraries/
effect
/src/main/assets/shaders/fragment_shader_transformation_es2.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/vertex_shader_transformation_es2.glsl
→
libraries/
effect
/src/main/assets/shaders/vertex_shader_transformation_es2.glsl
View file @
22725ddf
File moved
libraries/
transformer
/src/main/assets/shaders/vertex_shader_transformation_es3.glsl
→
libraries/
effect
/src/main/assets/shaders/vertex_shader_transformation_es3.glsl
View file @
22725ddf
File moved
libraries/
transformer/src/main/java/androidx/media3/transformer
/ChainingGlTextureProcessorListener.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/ChainingGlTextureProcessorListener.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.util.Pair
;
import
android.util.Pair
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/Contrast.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/Contrast.java
View file @
22725ddf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/ContrastProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/ContrastProcessor.java
View file @
22725ddf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.content.Context
;
import
android.content.Context
;
import
android.opengl.GLES20
;
import
android.opengl.GLES20
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/Crop.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/Crop.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/ExternalTextureProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/ExternalTextureProcessor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
/**
/**
* Interface for a {@link GlTextureProcessor} that samples from an external texture.
* Interface for a {@link GlTextureProcessor} that samples from an external texture.
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/FinalMatrixTransformationProcessorWrapper.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/FinalMatrixTransformationProcessorWrapper.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/FrameProcessingTask.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/FrameProcessingTask.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.util.GlUtil
;
import
androidx.media3.common.util.GlUtil
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/FrameProcessingTaskExecutor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/FrameProcessingTaskExecutor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
java
.
util
.
concurrent
.
TimeUnit
.
MILLISECONDS
;
import
static
java
.
util
.
concurrent
.
TimeUnit
.
MILLISECONDS
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/GlEffect.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/GlEffect.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.content.Context
;
import
android.content.Context
;
import
androidx.media3.common.Effect
;
import
androidx.media3.common.Effect
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/GlEffectsFrameProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/GlEffectsFrameProcessor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/GlMatrixTransformation.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/GlMatrixTransformation.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.content.Context
;
import
android.content.Context
;
import
android.opengl.Matrix
;
import
android.opengl.Matrix
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/GlTextureProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/GlTextureProcessor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.util.UnstableApi
;
import
androidx.media3.common.util.UnstableApi
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/MatrixTransformation.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/MatrixTransformation.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.graphics.Matrix
;
import
android.graphics.Matrix
;
import
androidx.media3.common.util.UnstableApi
;
import
androidx.media3.common.util.UnstableApi
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/MatrixTransformationProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/MatrixTransformationProcessor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkState
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/MatrixUtils.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/MatrixUtils.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/Presentation.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/Presentation.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/RgbaMatrix.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/RgbaMatrix.java
View file @
22725ddf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.content.Context
;
import
android.content.Context
;
import
androidx.media3.common.FrameProcessingException
;
import
androidx.media3.common.FrameProcessingException
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/RgbaMatrixProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/RgbaMatrixProcessor.java
View file @
22725ddf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.content.Context
;
import
android.content.Context
;
import
android.opengl.GLES20
;
import
android.opengl.GLES20
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/ScaleToFitTransformation.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/ScaleToFitTransformation.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkArgument
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
import
static
androidx
.
media3
.
common
.
util
.
Assertions
.
checkStateNotNull
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/SingleFrameGlTextureProcessor.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/SingleFrameGlTextureProcessor.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
android.util.Pair
;
import
android.util.Pair
;
import
androidx.annotation.CallSuper
;
import
androidx.annotation.CallSuper
;
...
...
libraries/
transformer/src/main/java/androidx/media3/transformer
/TextureInfo.java
→
libraries/
effect/src/main/java/androidx/media3/effect
/TextureInfo.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
androidx.media3.common.util.UnstableApi
;
import
androidx.media3.common.util.UnstableApi
;
...
...
libraries/
transformer/src/test/java/androidx/media3/transformer
/ChainingGlTextureProcessorListenerTest.java
→
libraries/
effect/src/test/java/androidx/media3/effect
/ChainingGlTextureProcessorListenerTest.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
spy
;
import
static
org
.
mockito
.
Mockito
.
spy
;
...
...
libraries/
transformer/src/test/java/androidx/media3/transformer
/CropTest.java
→
libraries/
effect/src/test/java/androidx/media3/effect
/CropTest.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/test/java/androidx/media3/transformer
/MatrixUtilsTest.java
→
libraries/
effect/src/test/java/androidx/media3/effect
/MatrixUtilsTest.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
import
static
org
.
junit
.
Assert
.
assertThrows
;
...
...
libraries/
transformer/src/test/java/androidx/media3/transformer
/PresentationTest.java
→
libraries/
effect/src/test/java/androidx/media3/effect
/PresentationTest.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/
transformer/src/test/java/androidx/media3/transformer
/ScaleToFitTransformationTest.java
→
libraries/
effect/src/test/java/androidx/media3/effect
/ScaleToFitTransformationTest.java
View file @
22725ddf
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
androidx
.
media3
.
transformer
;
package
androidx
.
media3
.
effect
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
import
static
com
.
google
.
common
.
truth
.
Truth
.
assertThat
;
...
...
libraries/transformer/build.gradle
View file @
22725ddf
...
@@ -38,6 +38,7 @@ android {
...
@@ -38,6 +38,7 @@ android {
dependencies
{
dependencies
{
implementation
'androidx.annotation:annotation:'
+
androidxAnnotationVersion
implementation
'androidx.annotation:annotation:'
+
androidxAnnotationVersion
implementation
project
(
modulePrefix
+
'lib-exoplayer'
)
implementation
project
(
modulePrefix
+
'lib-exoplayer'
)
implementation
project
(
modulePrefix
+
'lib-effect'
)
compileOnly
'com.google.errorprone:error_prone_annotations:'
+
errorProneVersion
compileOnly
'com.google.errorprone:error_prone_annotations:'
+
errorProneVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-qual:'
+
checkerframeworkVersion
compileOnly
'org.checkerframework:checker-compat-qual:'
+
checkerframeworkCompatVersion
compileOnly
'org.checkerframework:checker-compat-qual:'
+
checkerframeworkCompatVersion
...
...
libraries/transformer/src/main/java/androidx/media3/transformer/Transformer.java
View file @
22725ddf
...
@@ -48,6 +48,9 @@ import androidx.media3.common.util.Clock;
...
@@ -48,6 +48,9 @@ import androidx.media3.common.util.Clock;
import
androidx.media3.common.util.ListenerSet
;
import
androidx.media3.common.util.ListenerSet
;
import
androidx.media3.common.util.UnstableApi
;
import
androidx.media3.common.util.UnstableApi
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.effect.GlEffect
;
import
androidx.media3.effect.GlEffectsFrameProcessor
;
import
androidx.media3.effect.GlMatrixTransformation
;
import
androidx.media3.exoplayer.DefaultLoadControl
;
import
androidx.media3.exoplayer.DefaultLoadControl
;
import
androidx.media3.exoplayer.ExoPlayer
;
import
androidx.media3.exoplayer.ExoPlayer
;
import
androidx.media3.exoplayer.Renderer
;
import
androidx.media3.exoplayer.Renderer
;
...
@@ -198,9 +201,9 @@ public final class Transformer {
...
@@ -198,9 +201,9 @@ public final class Transformer {
* {@linkplain Effect effects} to the video frames.
* {@linkplain Effect effects} to the video frames.
*
*
* <p>This factory will be used to create the {@link FrameProcessor} used for applying the
* <p>This factory will be used to create the {@link FrameProcessor} used for applying the
* {@link Effect} instances passed to {@link #setVideoEffects(List
<Effect>)} and any additional
* {@link Effect} instances passed to {@link #setVideoEffects(List
)} and any additional {@link
*
{@link GlMatrixTransformation} instances derived from the {@link TransformationRequest} set
*
GlMatrixTransformation} instances derived from the {@link TransformationRequest} set using
*
using
{@link #setTransformationRequest(TransformationRequest)}.
* {@link #setTransformationRequest(TransformationRequest)}.
*
*
* <p>The default is {@link GlEffectsFrameProcessor.Factory}.
* <p>The default is {@link GlEffectsFrameProcessor.Factory}.
*
*
...
...
libraries/transformer/src/main/java/androidx/media3/transformer/VideoTranscodingSamplePipeline.java
View file @
22725ddf
...
@@ -34,6 +34,8 @@ import androidx.media3.common.FrameProcessor;
...
@@ -34,6 +34,8 @@ import androidx.media3.common.FrameProcessor;
import
androidx.media3.common.SurfaceInfo
;
import
androidx.media3.common.SurfaceInfo
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.common.util.Util
;
import
androidx.media3.decoder.DecoderInputBuffer
;
import
androidx.media3.decoder.DecoderInputBuffer
;
import
androidx.media3.effect.Presentation
;
import
androidx.media3.effect.ScaleToFitTransformation
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableList
;
import
java.nio.ByteBuffer
;
import
java.nio.ByteBuffer
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
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