You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
598 B
Java
22 lines
598 B
Java
package com.xypower.mppreview;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.util.Log;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.camera.core.ImageAnalysis;
|
|
import androidx.camera.core.ImageProxy;
|
|
|
|
import com.xypower.mppreview.bean.Contants;
|
|
|
|
import java.util.Objects;
|
|
|
|
public class MyAnalyzer implements ImageAnalysis.Analyzer{
|
|
@SuppressLint("UnsafeOptInUsageError")
|
|
@Override
|
|
public void analyze(@NonNull ImageProxy image) {
|
|
Log.d(Contants.TAG, "Image's stamp is " + Objects.requireNonNull(image.getImage()).getTimestamp());
|
|
image.close();
|
|
}
|
|
}
|