* Applying 3D LUTs to images | Applying 3D LUTs to videos * * @api */ class LutLayer extends AssetBasedSource implements AdjustmentInterface { /** * LutLayer constructor. * * @param $lut */ public function __construct($lut) { parent::__construct(ClassUtils::verifyInstance($lut, LutSourceQualifier::class)); } /** * Gets the transformation. * * @return Transformation */ public function getTransformation() { if (! isset($this->transformation)) { $this->transformation = new Transformation(); } return $this->transformation; } /** * Gets the layer qualifier. * * @return LutSourceQualifier * * @internal */ protected function getSourceQualifier() { if (! isset($this->qualifiers['source'])) { $this->qualifiers['source'] = new LutSourceQualifier(null); } return $this->qualifiers['source']; } }