StillSpec

class StillSpec(val format: StillFormat = StillFormat.Jpeg, val quality: Int = DEFAULT_QUALITY, val heightPx: Int? = null)(source)

What an encoded still should look like.

Constructors

Link copied to clipboard
constructor(format: StillFormat = StillFormat.Jpeg, quality: Int = DEFAULT_QUALITY, heightPx: Int? = null)

Properties

Link copied to clipboard

The image format to encode in.

Link copied to clipboard

The height to encode at, in pixels. The width follows from the frame's aspect. Null keeps the frame's own height, and a height of zero or less fails the still with dev.jordond.filmstrip.FilmstripError.InvalidComposition. A height that would scale the frame past the largest still filmstrip encodes is held to that size instead, so an upscale can grow a frame only so far.

Link copied to clipboard

How much of the image a lossy format keeps, from 0 to 100. A value outside that range is clamped rather than refused, and StillFormat.Png ignores it.