EffectsBuilder

interface EffectsBuilder

Functions

Link copied to clipboard
abstract fun audio(processor: AudioProcessor): EffectsBuilder
open fun audio(vararg processors: AudioProcessor): EffectsBuilder
abstract fun audio(processors: List<AudioProcessor>): EffectsBuilder
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.brightness(@FloatRange(from = -1.0, to = 1.0) brightness: Float): EffectsBuilder
Link copied to clipboard
abstract fun build(): Effects
Link copied to clipboard
fun EffectsBuilder.contrast(@FloatRange(from = -1.0, to = 1.0) contrast: Float): EffectsBuilder
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.fadeAudioOut(totalDurationUs: Long, inputChannels: Int, outputChannels: Int = 2, initialVolume: Float = 1.0f, finalVolume: Float = 0.0f, fadeDurationUs: Long = TimeUnit.SECONDS.toMicros(1)): EffectsBuilder

Add an VolumeChangeProcessor to the EffectsBuilder that you can use to fade the audio out at the end of the video.

Link copied to clipboard

Adds a new Presentation effect for setting the height of the output.

Adds a new Presentation effect for setting the aspect ratio of the output.

Adds a new Presentation effect for setting the width and height of the output.

Link copied to clipboard
Link copied to clipboard
abstract fun video(effect: Effect): EffectsBuilder
open fun video(vararg effects: Effect): EffectsBuilder
abstract fun video(effects: List<Effect>): EffectsBuilder
Link copied to clipboard
fun EffectsBuilder.volume(volume: Float, inputChannels: Int, outputChannels: Int = 2): EffectsBuilder
Link copied to clipboard
fun EffectsBuilder.volumeChange(inputChannels: Int, outputChannels: Int = 2, volumeChangeProvider: VolumeChangeProvider): EffectsBuilder
fun EffectsBuilder.volumeChange(inputChannels: Int, volume: Float = 1.0f, outputChannels: Int = 2, volumeChange: VolumeChangeProvider.(timeUs: Long) -> Float = { volume }): EffectsBuilder

Add VolumeChangeProcessor effect that you can use to change the volume of the audio stream over time.