History

avutil/csp: add EOTF function definitions

The existing av_csp_trc_func_from_id() mostly implements the OETF, except for PQ. As such, we are currently missing a precise definition of an ITU-R EOTF. Introduce the new functions av_csp_itu_eotf() and av_csp_itu_eotf_inv(), to fill this void. Note that this is not possible in all cases, e.g. AVCOL_TRC_LOG which has no corresponding EOTF definition in any ITU-R standard. Note that we cannot implement the proper HLG and SMPTE 428 OOTFs without access to all three color channels, because they are not independent per channel. As a result, we need to define them on double[3] instead of double (*func)(double).

Niklas Haas committed 1 year ago

Commit 06f08441 parent bf0a6c44 files · +242 −1Browse files

Showing the changes to doc/APIchanges (1 of 4 files). Show all

Unified · Split

doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07 · 1 unmodified line
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52024-12-05 - xxxxxxxxxx - lavu 59.49.100 - csp.h
6 Add av_csp_itu_eotf() and av_csp_itu_eotf_inv().
7
52024-12-05 - xxxxxxxxxx - lavu 59.48.100 - csp.h82024-12-05 - xxxxxxxxxx - lavu 59.48.100 - csp.h
6 Add av_csp_trc_func_inv_from_id().9 Add av_csp_trc_func_inv_from_id().
7 10

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t