mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[isp] Fix mistake in transform if clause.
This commit is contained in:
parent
6a3ddfd0bc
commit
cd7e091992
|
@ -2503,7 +2503,7 @@ static void mts_dct_generic(
|
||||||
// ISP_TODO: height
|
// ISP_TODO: height
|
||||||
uvg_get_tr_type(width, color, tu, &type_hor, &type_ver, mts_idx);
|
uvg_get_tr_type(width, color, tu, &type_hor, &type_ver, mts_idx);
|
||||||
|
|
||||||
if (type_hor == DCT2 && type_ver == DCT2 && !tu->lfnst_idx && !tu->cr_lfnst_idx || width != height)
|
if (type_hor == DCT2 && type_ver == DCT2 && !tu->lfnst_idx && !tu->cr_lfnst_idx || width == height)
|
||||||
{
|
{
|
||||||
dct_func *dct_func = uvg_get_dct_func(width, height, color, tu->type);
|
dct_func *dct_func = uvg_get_dct_func(width, height, color, tu->type);
|
||||||
dct_func(bitdepth, input, output);
|
dct_func(bitdepth, input, output);
|
||||||
|
@ -2557,7 +2557,7 @@ static void mts_idct_generic(
|
||||||
// ISP_TODO: height
|
// ISP_TODO: height
|
||||||
uvg_get_tr_type(width, color, tu, &type_hor, &type_ver, mts_idx);
|
uvg_get_tr_type(width, color, tu, &type_hor, &type_ver, mts_idx);
|
||||||
|
|
||||||
if (type_hor == DCT2 && type_ver == DCT2 && !tu->lfnst_idx && !tu->cr_lfnst_idx || width != height)
|
if (type_hor == DCT2 && type_ver == DCT2 && !tu->lfnst_idx && !tu->cr_lfnst_idx || width == height)
|
||||||
{
|
{
|
||||||
dct_func *idct_func = uvg_get_idct_func(width, color, tu->type);
|
dct_func *idct_func = uvg_get_idct_func(width, color, tu->type);
|
||||||
idct_func(bitdepth, input, output);
|
idct_func(bitdepth, input, output);
|
||||||
|
|
Loading…
Reference in a new issue