components.colourspace.levels

pyctools.components.colourspace.levels.ComputerToStudio

Convert "computer" range to "studio".

pyctools.components.colourspace.levels.StudioToComputer

Convert "studio" range to "computer".

class ComputerToStudio(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Convert “computer” range to “studio”.

Most image file formats use a black to white range of 0..255. Video conforming to Rec. 601 uses 16..235. This component converts from 0..255 to 16..235. This is essential before writing video to some file formats.

The black config item over-rides the output black level. The white config item over-rides the output white level.

class StudioToComputer(config={}, **kwds)[source]

Bases: pyctools.core.base.Transformer

Convert “studio” range to “computer”.

Most image file formats use a black to white range of 0..255. Video conforming to Rec. 601 uses 16..235. This component converts from 16..235 to 0..255. This is essential after reading video from some file formats.

The black config item over-rides the input black level. The white config item over-rides the input white level.


Comments or questions? Please email jim@jim-easterbrook.me.uk.