mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avfilter/palette: Remove unused ff_srgb_u8_to_linear_int()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -110,11 +110,6 @@ static const uint8_t linear2srgb[P + 1] = {
|
||||
0xfc, 0xfc, 0xfc, 0xfc, 0xfd, 0xfd, 0xfd, 0xfd, 0xfd, 0xfe, 0xfe, 0xfe, 0xfe, 0xff, 0xff, 0xff,
|
||||
};
|
||||
|
||||
int32_t ff_srgb_u8_to_linear_int(uint8_t x)
|
||||
{
|
||||
return (int32_t)srgb2linear[x];
|
||||
}
|
||||
|
||||
uint8_t ff_linear_int_to_srgb_u8(int32_t x)
|
||||
{
|
||||
if (x <= 0) {
|
||||
|
||||
@@ -31,12 +31,6 @@ struct Lab {
|
||||
int32_t L, a, b;
|
||||
};
|
||||
|
||||
/**
|
||||
* Map sRGB 8-bit color component to a 16-bit linear value (gamma
|
||||
* expand from electrical to optical value).
|
||||
*/
|
||||
int32_t ff_srgb_u8_to_linear_int(uint8_t x);
|
||||
|
||||
/**
|
||||
* Map a 16-bit linear value to a sRGB 8-bit color component (gamma
|
||||
* compressed from optical to electrical value).
|
||||
|
||||
Reference in New Issue
Block a user