mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-05 20:09:49 +01:00
38 lines
946 B
Java
38 lines
946 B
Java
package androidx.camera.video.internal.encoder;
|
|
|
|
import android.util.Range;
|
|
import androidx.annotation.NonNull;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public interface VideoEncoderInfo extends EncoderInfo {
|
|
boolean canSwapWidthHeight();
|
|
|
|
int getHeightAlignment();
|
|
|
|
@NonNull
|
|
Range<Integer> getSupportedBitrateRange();
|
|
|
|
@NonNull
|
|
Range<Integer> getSupportedHeights();
|
|
|
|
@NonNull
|
|
Range<Integer> getSupportedHeightsFor(int i);
|
|
|
|
@NonNull
|
|
Range<Integer> getSupportedWidths();
|
|
|
|
@NonNull
|
|
Range<Integer> getSupportedWidthsFor(int i);
|
|
|
|
int getWidthAlignment();
|
|
|
|
boolean isSizeSupported(int i, int i2);
|
|
|
|
default boolean isSizeSupportedAllowSwapping(int i, int i2) {
|
|
if (isSizeSupported(i, i2)) {
|
|
return true;
|
|
}
|
|
return canSwapWidthHeight() && isSizeSupported(i2, i);
|
|
}
|
|
}
|