Set peak linear RGB value of 8.0 in tonemap

This commit is contained in:
Brooke Vibber 2023-01-26 19:21:55 -08:00
parent 5546481191
commit a80629c9ad

View file

@ -133,7 +133,7 @@ function convert( $src, $dest, $options ) {
$filters = [ "scale=w=$scaleWidth:h=$scaleHeight" ];
if ( $hdr ) {
$filters[] = "zscale=t=linear:p=bt709";
$filters[] = "tonemap=hable";
$filters[] = "tonemap=hable:peak=8";
$filters[] = "zscale=t=bt709:m=bt709:r=full";
}
$filters[] = "format=yuv420p";