All Downloads are FREE. Search and download functionalities are using the official Maven repository.

extra.orx-video-profiles.0.4.3-alpha2.source-code.TIFFProfile.kt Maven / Gradle / Ivy

There is a newer version: 0.4.5-alpha6
Show newest version
package org.openrndr.extra.videoprofiles
import org.openrndr.ffmpeg.ScreenRecorder
import org.openrndr.ffmpeg.VideoWriterProfile

/**
 * This profile requires specifying a file name like this
 * outputFile = "frame-%05d.tif"
 * where `%05d` means "zero-padded five-digit frame number".
 * The frame number format is not optional.
 */
class TIFFProfile : VideoWriterProfile() {
    override val fileExtension = "tif"

    val filters = mutableListOf("vflip")
    override fun arguments(): Array {
        return arrayOf("-vf", filters.joinToString(","))
    }
}

/**
 * Configure a tiff sequence profile
 */
fun ScreenRecorder.tiffSequence(configure : TIFFProfile.() -> Unit = {}) {
    profile = TIFFProfile().apply(configure)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy