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
  • Loading branch information
sekrit-twc committed May 9, 2021
1 parent 4eccf84 commit a1a4fb5
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 a1a4fb5

Please sign in to comment.