filmtools/speedpoint

用于处理电影制作中速度点的接口、类和特性

1.1.1 2021-01-17 10:37 UTC

This package is auto-updated.

Last update: 2024-09-17 18:36:24 UTC


README

用于电影制作速度点的接口、类和装饰器。

Packagist PHP version Build Status Scrutinizer Code Quality Code Coverage Build Status

安装

$ composer require filmtools/speedpoint

接口和类

SpeedPointInterface

use FilmTools\SpeedPoint\SpeedPointInterface;  

getType() : string|null 返回名称或描述(电影速度评估方法)。

getValue() : float|null 返回产生一定最小密度速度点的曝光值。

getSpeedLoss() : float|null 返回实际速度点和预期最小密度曝光值之间的差异。

getEICorrection() : float|null 将“速度损失”转换为曝光指数(°DIN)步数。当电影需要“更多光线”时,校正值是负数。

valid() : bool 如果值有效则返回 true

SpeedPointProviderInterface

use FilmTools\SpeedPoint\SpeedPointProviderInterface; 

getSpeedPoint() : SpeedPointInterface 返回一个速度点实例。

SpeedPoint

可用的 SpeedPoint 类扩展 SpeedPointAbstract 并实现 SpeedPointInterface。

use FilmTools\SpeedPoint\SpeedPoint;

// The exposure value where a density is reached
$logH = 0.46;

// Text description is optional. 
$sp = new SpeedPoint( $logH );
$sp = new SpeedPoint( $logH, "Description" );

// Examples:
$sp->getValue();        // 0.46
$sp->getSpeedLoss();    // 0.16
$sp->getEICorrection(); // -3.0
$sp->getType();         // "Description", may be null.

开发和测试

$ git clone https://github.com/filmtools/speedpoint.git
$ cd speedpoint
$ composer install

$ composer test