mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00
Move BitmapLoader to common.
The migration strategy is to deprecate `androidx.media3.session.BitmapLoader` and copy the file into common since BitmapLoader is a public interface that apps could be relying on. PiperOrigin-RevId: 501266521
This commit is contained in:
parent
bbffa8ae27
commit
a786c03a34
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License
|
||||
*/
|
||||
package com.google.android.exoplayer2.effect;
|
||||
package com.google.android.exoplayer2.util;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
@ -21,9 +21,6 @@ import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.MediaMetadata;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
// TODO(b/258685047): delete this copy once session/BitmapLoader.java is moved to common
|
||||
// (b/194284041, b/258658893).
|
||||
|
||||
/** Loads images. */
|
||||
public interface BitmapLoader {
|
||||
/** Decodes an image from compressed binary data. */
|
@ -21,6 +21,7 @@ import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.opengl.GLES20;
|
||||
import android.opengl.GLUtils;
|
||||
import com.google.android.exoplayer2.util.BitmapLoader;
|
||||
import com.google.android.exoplayer2.util.FrameProcessingException;
|
||||
import com.google.android.exoplayer2.util.GlUtil;
|
||||
import com.google.android.exoplayer2.util.Size;
|
||||
|
@ -22,6 +22,7 @@ import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.net.Uri;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.util.BitmapLoader;
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.base.Suppliers;
|
||||
import com.google.common.io.ByteStreams;
|
||||
|
Loading…
x
Reference in New Issue
Block a user