Skip to content

Commit

Permalink
Revert "colorspace: use correct EOTF for SMPTE-240M"
Browse files Browse the repository at this point in the history
This reverts commit 865175b.
  • Loading branch information
sekrit-twc committed Aug 2, 2021
1 parent ecdf351 commit dbc7450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimg/colorspace/gamma.cpp
Expand Up @@ -316,8 +316,8 @@ TransferFunction select_transfer_function(TransferCharacteristics transfer, doub
func.to_gamma = rec_470bg_inverse_oetf;
break;
case TransferCharacteristics::SMPTE_240M:
func.to_linear = smpte_240m_inverse_oetf;
func.to_gamma = smpte_240m_oetf;
func.to_linear = scene_referred ? smpte_240m_inverse_oetf : rec_1886_eotf;
func.to_gamma = scene_referred ? smpte_240m_oetf : rec_1886_inverse_eotf;
break;
case TransferCharacteristics::XVYCC:
func.to_linear = scene_referred ? xvycc_inverse_oetf : xvycc_eotf;
Expand Down

0 comments on commit dbc7450

Please sign in to comment.