Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturAlekseev committed Oct 28, 2024
1 parent 6cc69f0 commit 7809808
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Binary file modified SoftLight.cpp
Binary file not shown.
48 changes: 24 additions & 24 deletions kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@
default: KernelYUV420toRGBRec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth, planeYheight, planeYwidth, planeUwidth); break;
}

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3063,7 +3063,7 @@
KernelHSV2RGB <<<Yblocks, threads >>> (planeHSVo_Hnv, planeHSVo_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
}

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -3152,7 +3152,7 @@

int length = planeYwidth * planeYheight;

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3239,7 +3239,7 @@
}
}

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -3313,7 +3313,7 @@
default: KernelYUV420toRGBRec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth, planeYheight, planeYwidth, planeUwidth); break;
}

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3362,7 +3362,7 @@

KernelHSV2RGB <<<Yblocks, threads >>> (planeHSV_Hnv, planeHSV_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -3444,7 +3444,7 @@
default: KernelYUV2RGBRec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth, planeYheight, planeYwidth); break;
}

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3563,7 +3563,7 @@
KernelHSV2RGB <<<Yblocks, threads >>> (planeHSVo_Hnv, planeHSVo_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
}

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -3639,7 +3639,7 @@
default: KernelYUV2RGBRec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth, planeYheight, planeYwidth); break;
}

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3726,7 +3726,7 @@
}
}

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -3789,7 +3789,7 @@
default: KernelYUV2RGBRec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth, planeYheight, planeYwidth); break;
}

if (!fullrange) {
if (fullrange==0) {

if (rangemin >= rangemax) {
rangemin = 16;
Expand Down Expand Up @@ -3838,7 +3838,7 @@

KernelHSV2RGB <<<Yblocks, threads >>> (planeHSV_Hnv, planeHSV_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);

if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -4999,7 +4999,7 @@
default: KernelYUV420toRGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2, planeUwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -5089,7 +5089,7 @@
}
}
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -5164,7 +5164,7 @@
default: KernelYUV420toRGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2, planeUwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -5283,7 +5283,7 @@
KernelHSV2RGB10 <<<Yblocks, threads >>> (planeHSVo_Hnv, planeHSVo_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
}
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -5593,7 +5593,7 @@
default: KernelYUV420toRGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2, planeUwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -5642,7 +5642,7 @@
KernelHSV2RGB10 <<<Yblocks, threads >>> (planeHSV_Hnv, planeHSV_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -5868,7 +5868,7 @@
default: KernelYUV2RGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -5957,7 +5957,7 @@
}
}
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down Expand Up @@ -6017,7 +6017,7 @@
default: KernelYUV2RGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -6136,7 +6136,7 @@
KernelHSV2RGB10 <<<Yblocks, threads >>> (planeHSVo_Hnv, planeHSVo_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
}
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV <<<Yblocks, threads >>> (planeRnv, length);
KernelPC2TV <<<Yblocks, threads >>> (planeGnv, length);
KernelPC2TV <<<Yblocks, threads >>> (planeBnv, length);
Expand Down Expand Up @@ -6390,7 +6390,7 @@
default: KernelYUV2RGB10Rec709 <<<Yblocks, threads >>> (planeYnv, planeUnv, planeVnv, planeRnv, planeGnv, planeBnv, planeYwidth / 2, planeYheight, planeYwidth / 2); break;
}
if (!fullrange) {
if (fullrange==0) {
if (rangemin >= rangemax) {
rangemin = 64;
Expand Down Expand Up @@ -6439,7 +6439,7 @@
KernelHSV2RGB10 <<<Yblocks, threads >>> (planeHSV_Hnv, planeHSV_Snv, planeHSV_Vnv, planeRnv, planeGnv, planeBnv, length);
if (!fullrange) {
if (fullrange==0) {
KernelPC2TV << <Yblocks, threads >> > (planeRnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeGnv, length);
KernelPC2TV << <Yblocks, threads >> > (planeBnv, length);
Expand Down

0 comments on commit 7809808

Please sign in to comment.