History

avutil/{color_utils, csp}: merge color_utils into csp and expose API

libavutil/color_utils contains some avpriv_ symbols that map enum AVTransferCharacteristic values to gamma-curve approximations and to the actual transfer functions to invert them (i.e. -> linear). There's two issues with this: (1) avpriv is evil and should be avoided whenever possible (2) libavutil/csp.h exposes a public API for handling color that already handles primaries and matricies I don't see any reason this API has to be private, so this commit takes the functionality from avutil/color_utils and merges it into avutil/csp with an exposed av_ API rather than the previous avpriv_ API. Every reference to the previous API has been updated to point to the new one. color_utils.h has been deleted as well. This should not break any applications as it only contained avpriv_ symbols in the first place, so nothing in that header could be referenced by other applications.

Leo Izen committed 3 years ago

Commit 719a93f1 parent dc1b81311 files · +225 −304Browse files

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

Unified · Split

doc/APIchanges+4−0
@@ -14,6 +14,10 @@ libavutil: 2021-04-27 · 13 unmodified lines
1414
1515 API changes, most recent first:
1616
17+2023-02-xx - xxxxxxxxxx - lavu 58.0.100 - csp.h
18+ Add av_csp_approximate_trc_gamma() and av_csp_trc_func_from_id().
19+ Add av_csp_trc_function.
20+
1721 2023-02-xx - xxxxxxxxxx - lavc 60.0.100 - avcodec.h
1822 avcodec_decode_subtitle2() now accepts const AVPacket*.
1923

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