VideoCaptureConfig

@RequiresApi(value = 21) public final class VideoCaptureConfig<T extends VideoOutput> implements Config, ReadableConfig, TargetConfig, Config, ReadableConfig, UseCaseEventConfig, Config, ReadableConfig, ImageInputConfig, UseCaseConfig, Config, ReadableConfig, ImageOutputConfig, Config, ReadableConfig, ThreadConfig


Config for a video capture use case.

In the earlier stage, the VideoCapture is deprioritized.

Parameters
<T extends VideoOutput>

the type of VideoOutput

Summary

Public constructors

Public methods

@NonNull @Override Config

Returns the underlying immutable Config object.

@Override @NonNull int

Retrieves the format of the image that is fed as input.

@NonNull T

Inherited methods

From class Config
static @NonNull boolean
hasConflict(
    @NonNull Config.OptionPriority priority1,
    @NonNull Config.OptionPriority priority2
)

Returns if values with these OptionPriority conflict or not.

static @NonNull Config
mergeConfigs(@Nullable Config extendedConfig, @Nullable Config baseConfig)

Merges two configs

abstract @Nullable ValueT
<ValueT> retrieveOption(
    @NonNull Config.Option<@NonNull ValueT> id,
    @Nullable ValueT valueIfMissing
)

Retrieves the value for the specified option if it exists in the configuration.

From class ImageOutputConfig
@NonNull Size

Retrieves the default resolution of the target intending to use from this configuration.

@Nullable Size

Retrieves the default resolution of the target intending to use from this configuration.

@NonNull Size

Retrieves the max resolution limitation of the target intending to use from this configuration.

@Nullable Size
getMaxResolution(@Nullable Size valueIfMissing)

Retrieves the max resolution limitation of the target intending to use from this configuration.

@NonNull List<@NonNull Pair<@NonNull Integer, @NonNull Size[]>>

Retrieves the supported resolutions can be used by the target from this configuration.

@Nullable List<@NonNull Pair<@NonNull Integer, @NonNull Size[]>>
getSupportedResolutions(
    @Nullable List<@NonNull Pair<@NonNull Integer, @NonNull Size[]>> valueIfMissing
)

Retrieves the supported resolutions can be used by the target from this configuration.

@AspectRatio.Ratio @NonNull int

Retrieves the aspect ratio of the target intending to use images from this configuration.

@NonNull Size

Retrieves the resolution of the target intending to use from this configuration.

@Nullable Size

Retrieves the resolution of the target intending to use from this configuration.

@ImageOutputConfig.RotationValue @NonNull int

Retrieves the rotation of the target intending to use images from this configuration.

@ImageOutputConfig.RotationValue @NonNull int
getTargetRotation(@NonNull int valueIfMissing)

Retrieves the rotation of the target intending to use images from this configuration.

@NonNull boolean

Verifies whether the aspect ratio of the target intending to use images from this configuration is set.

From class ReadableConfig
@Override @NonNull boolean

Returns whether this configuration contains the supplied option.

@Override @NonNull void
findOptions(
    @NonNull String idSearchString,
    @NonNull Config.OptionMatcher matcher
)

Search the configuration for Options whose id match the supplied search string.

@Override @NonNull Config.OptionPriority