avfilter/palette: Remove unused ff_srgb_u8_to_linear_int()
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
3693acb855
commit
265e0d3e24
2 changed files with 0 additions and 11 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue