mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-17 22:36:47 +02:00
sharpyuv.c,cosmetics: fix indent
+ a few typos in sharpyuv_csp.c Change-Id: I34b208d10d7808b42afb39b0618fb2e5d76633eb
This commit is contained in:
parent
6c45cef7ff
commit
a3927cc800
@ -422,7 +422,7 @@ static int DoSharpArgbToYuv(const uint8_t* r_ptr, const uint8_t* g_ptr,
|
|||||||
free(best_rgb_uv);
|
free(best_rgb_uv);
|
||||||
free(tmp_buffer);
|
free(tmp_buffer);
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
#undef SAFE_ALLOC
|
#undef SAFE_ALLOC
|
||||||
|
|
||||||
// Hidden exported init function.
|
// Hidden exported init function.
|
||||||
|
@ -66,25 +66,25 @@ static const SharpYuvConversionMatrix kWebpMatrix = {
|
|||||||
{-9719, -19081, 28800, 128 << 16},
|
{-9719, -19081, 28800, 128 << 16},
|
||||||
{28800, -24116, -4684, 128 << 16},
|
{28800, -24116, -4684, 128 << 16},
|
||||||
};
|
};
|
||||||
// Kr=0.2990f Kb=0.1140f btits=8 range=kLimited
|
// Kr=0.2990f Kb=0.1140f bits=8 range=kSharpYuvRangeLimited
|
||||||
static const SharpYuvConversionMatrix kRec601LimitedMatrix = {
|
static const SharpYuvConversionMatrix kRec601LimitedMatrix = {
|
||||||
{16829, 33039, 6416, 16 << 16},
|
{16829, 33039, 6416, 16 << 16},
|
||||||
{-9714, -19071, 28784, 128 << 16},
|
{-9714, -19071, 28784, 128 << 16},
|
||||||
{28784, -24103, -4681, 128 << 16},
|
{28784, -24103, -4681, 128 << 16},
|
||||||
};
|
};
|
||||||
// Kr=0.2990f Kb=0.1140f btits=8 range=kFull
|
// Kr=0.2990f Kb=0.1140f bits=8 range=kSharpYuvRangeFull
|
||||||
static const SharpYuvConversionMatrix kRec601FullMatrix = {
|
static const SharpYuvConversionMatrix kRec601FullMatrix = {
|
||||||
{19595, 38470, 7471, 0},
|
{19595, 38470, 7471, 0},
|
||||||
{-11058, -21710, 32768, 128 << 16},
|
{-11058, -21710, 32768, 128 << 16},
|
||||||
{32768, -27439, -5329, 128 << 16},
|
{32768, -27439, -5329, 128 << 16},
|
||||||
};
|
};
|
||||||
// Kr=0.2126f Kb=0.0722f bits=8 range=kLimited
|
// Kr=0.2126f Kb=0.0722f bits=8 range=kSharpYuvRangeLimited
|
||||||
static const SharpYuvConversionMatrix kRec709LimitedMatrix = {
|
static const SharpYuvConversionMatrix kRec709LimitedMatrix = {
|
||||||
{11966, 40254, 4064, 16 << 16},
|
{11966, 40254, 4064, 16 << 16},
|
||||||
{-6596, -22189, 28784, 128 << 16},
|
{-6596, -22189, 28784, 128 << 16},
|
||||||
{28784, -26145, -2639, 128 << 16},
|
{28784, -26145, -2639, 128 << 16},
|
||||||
};
|
};
|
||||||
// Kr=0.2126f Kb=0.0722f bits=8 range=kFull
|
// Kr=0.2126f Kb=0.0722f bits=8 range=kSharpYuvRangeFull
|
||||||
static const SharpYuvConversionMatrix kRec709FullMatrix = {
|
static const SharpYuvConversionMatrix kRec709FullMatrix = {
|
||||||
{13933, 46871, 4732, 0},
|
{13933, 46871, 4732, 0},
|
||||||
{-7509, -25259, 32768, 128 << 16},
|
{-7509, -25259, 32768, 128 << 16},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user