Identifies the specific log curve transfer function or gamma of the content.
Log is a specific video format usually processed in a camera's ISP. A Log video format usually defines:
- Scene-referred color primaries designed to preserve the chromaticity range captured by a camera sensor. In
cinematography, "scene-referred" color primaries refers to a color space designed to accurately preserve the
chromaticity and dynamic range directly captured by a camera sensor.
- A specific gamma curve (or transfer characteristic) tailored to capturing the full dynamic range from the sensor.
This gamma curve is usually shaped like a log curve (hence the name Log).
- A set of matrix transforms to go from RGB to Y'CbCr (Y'CbCr being the most common format used to store the bits
compressed into a file).
As described above, a Log video format defines a whole color space (even though the “log” part of the name comes
only from the “transfer characteristic” or gamma curve).
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw
value, this initializer returns `nil`. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
print(PaperSize(rawValue: "Legal"))
// Prints "Optional(PaperSize.Legal)"
print(PaperSize(rawValue: "Tabloid"))
// Prints "nil"
- Parameter rawValue: The raw value to use for the new instance.
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"