mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-19 12:23:19 +01:00
85 lines
2.4 KiB
Java
85 lines
2.4 KiB
Java
package androidx.camera.extensions.internal;
|
|
|
|
import android.content.Context;
|
|
import android.hardware.camera2.CameraCharacteristics;
|
|
import android.hardware.camera2.CaptureResult;
|
|
import android.util.Pair;
|
|
import android.util.Range;
|
|
import android.util.Size;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.camera.core.CameraInfo;
|
|
import androidx.camera.core.impl.SessionProcessor;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public interface VendorExtender {
|
|
@Nullable
|
|
default SessionProcessor createSessionProcessor(@NonNull Context context) {
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
default Range<Long> getEstimatedCaptureLatencyRange(@Nullable Size size) {
|
|
return null;
|
|
}
|
|
|
|
@NonNull
|
|
default List<Pair<Integer, Size[]>> getSupportedCaptureOutputResolutions() {
|
|
return Collections.EMPTY_LIST;
|
|
}
|
|
|
|
@NonNull
|
|
default List<CaptureResult.Key> getSupportedCaptureResultKeys() {
|
|
return Collections.EMPTY_LIST;
|
|
}
|
|
|
|
@NonNull
|
|
default Map<Integer, List<Size>> getSupportedPostviewResolutions(@NonNull Size size) {
|
|
return Collections.EMPTY_MAP;
|
|
}
|
|
|
|
@NonNull
|
|
default List<Pair<Integer, Size[]>> getSupportedPreviewOutputResolutions() {
|
|
return Collections.EMPTY_LIST;
|
|
}
|
|
|
|
@NonNull
|
|
default Size[] getSupportedYuvAnalysisResolutions() {
|
|
return new Size[0];
|
|
}
|
|
|
|
default boolean isCaptureProcessProgressAvailable() {
|
|
return false;
|
|
}
|
|
|
|
default boolean isCurrentExtensionModeAvailable() {
|
|
return false;
|
|
}
|
|
|
|
default boolean isExtensionAvailable(@NonNull String str, @NonNull Map<String, CameraCharacteristics> map) {
|
|
return false;
|
|
}
|
|
|
|
default boolean isExtensionStrengthAvailable() {
|
|
return false;
|
|
}
|
|
|
|
default boolean isPostviewAvailable() {
|
|
return false;
|
|
}
|
|
|
|
default boolean willReceiveOnCaptureCompleted() {
|
|
Version version = Version.VERSION_1_2;
|
|
if (ClientVersion.isMaximumCompatibleVersion(version) || ExtensionVersion.isMaximumCompatibleVersion(version)) {
|
|
return false;
|
|
}
|
|
return !getSupportedCaptureResultKeys().isEmpty();
|
|
}
|
|
|
|
default void init(@NonNull CameraInfo cameraInfo) {
|
|
}
|
|
}
|