Skip to content

Commit

Permalink
colorspace: use correct EOTF for SMPTE-240M
Browse files Browse the repository at this point in the history
See #81

(cherry picked from commit a1a4fb5)
  • Loading branch information
sekrit-twc committed Jul 6, 2021
1 parent 8d0b839 commit 865175b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimg/colorspace/gamma.cpp
Original file line number Diff line number Diff line change
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 = scene_referred ? smpte_240m_inverse_oetf : rec_1886_eotf;
func.to_gamma = scene_referred ? smpte_240m_oetf : rec_1886_inverse_eotf;
func.to_linear = smpte_240m_inverse_oetf;
func.to_gamma = smpte_240m_oetf;
break;
case TransferCharacteristics::XVYCC:
func.to_linear = scene_referred ? xvycc_inverse_oetf : xvycc_eotf;
Expand Down

0 comments on commit 865175b

Please sign in to comment.