Ensure MovieWriter output is in gamma space when using HDR 2D

This commit is contained in:
clayjohn
2024-05-28 15:13:24 -07:00
parent be56cab58c
commit 3b9d074fd7
10 changed files with 61 additions and 1 deletions

View File

@@ -305,6 +305,12 @@
Returns [code]true[/code] if all the image's pixels have an alpha value of 0. Returns [code]false[/code] if any pixel has an alpha value higher than 0.
</description>
</method>
<method name="linear_to_srgb">
<return type="void" />
<description>
Converts the entire image from the linear colorspace to the sRGB colorspace. Only works on images with [constant FORMAT_RGB8] or [constant FORMAT_RGBA8] formats.
</description>
</method>
<method name="load">
<return type="int" enum="Error" />
<param index="0" name="path" type="String" />
@@ -574,7 +580,7 @@
<method name="srgb_to_linear">
<return type="void" />
<description>
Converts the raw data from the sRGB colorspace to a linear scale.
Converts the raw data from the sRGB colorspace to a linear scale. Only works on images with [constant FORMAT_RGB8] or [constant FORMAT_RGBA8] formats.
</description>
</method>
</methods>