avfilter/palette: Remove unused ff_srgb_u8_to_linear_int()

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2025-03-31 20:27:55 +02:00
parent 3693acb855
commit 265e0d3e24
2 changed files with 0 additions and 11 deletions

View file

@ -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, 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) uint8_t ff_linear_int_to_srgb_u8(int32_t x)
{ {
if (x <= 0) { if (x <= 0) {

View file

@ -31,12 +31,6 @@ struct Lab {
int32_t L, a, b; 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 * Map a 16-bit linear value to a sRGB 8-bit color component (gamma
* compressed from optical to electrical value). * compressed from optical to electrical value).