mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
neightbour --> neighbor typo fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16685 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
18456a4b52
commit
16fd40e4ea
@ -81,11 +81,11 @@ static void deNoise(unsigned char *Frame, // mpi->planes[x]
|
|||||||
int sLineOffs = 0, pLineOffs = 0, dLineOffs = 0;
|
int sLineOffs = 0, pLineOffs = 0, dLineOffs = 0;
|
||||||
unsigned char PixelAnt;
|
unsigned char PixelAnt;
|
||||||
|
|
||||||
/* First pixel has no left nor top neightbour. Only previous frame */
|
/* First pixel has no left nor top neighbor. Only previous frame */
|
||||||
LineAnt[0] = PixelAnt = Frame[0];
|
LineAnt[0] = PixelAnt = Frame[0];
|
||||||
FrameDest[0] = LowPass(FramePrev[0], LineAnt[0], Temporal);
|
FrameDest[0] = LowPass(FramePrev[0], LineAnt[0], Temporal);
|
||||||
|
|
||||||
/* Fist line has no top neightbour. Only left one for each pixel and
|
/* Fist line has no top neighbor. Only left one for each pixel and
|
||||||
* last frame */
|
* last frame */
|
||||||
for (X = 1; X < W; X++)
|
for (X = 1; X < W; X++)
|
||||||
{
|
{
|
||||||
|
@ -107,11 +107,11 @@ static void deNoiseSpacial(
|
|||||||
unsigned int PixelAnt;
|
unsigned int PixelAnt;
|
||||||
int PixelDst;
|
int PixelDst;
|
||||||
|
|
||||||
/* First pixel has no left nor top neightbour. */
|
/* First pixel has no left nor top neighbor. */
|
||||||
PixelDst = LineAnt[0] = PixelAnt = Frame[0]<<16;
|
PixelDst = LineAnt[0] = PixelAnt = Frame[0]<<16;
|
||||||
FrameDest[0]= ((PixelDst+0x10007FFF)/65536);
|
FrameDest[0]= ((PixelDst+0x10007FFF)/65536);
|
||||||
|
|
||||||
/* Fist line has no top neightbour, only left. */
|
/* Fist line has no top neighbor, only left. */
|
||||||
for (X = 1; X < W; X++){
|
for (X = 1; X < W; X++){
|
||||||
PixelDst = LineAnt[X] = LowPassMul(PixelAnt, Frame[X]<<16, Horizontal);
|
PixelDst = LineAnt[X] = LowPassMul(PixelAnt, Frame[X]<<16, Horizontal);
|
||||||
FrameDest[X]= ((PixelDst+0x10007FFF)/65536);
|
FrameDest[X]= ((PixelDst+0x10007FFF)/65536);
|
||||||
@ -168,13 +168,13 @@ static void deNoise(unsigned char *Frame, // mpi->planes[x]
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* First pixel has no left nor top neightbour. Only previous frame */
|
/* First pixel has no left nor top neighbor. Only previous frame */
|
||||||
LineAnt[0] = PixelAnt = Frame[0]<<16;
|
LineAnt[0] = PixelAnt = Frame[0]<<16;
|
||||||
PixelDst = LowPassMul(FrameAnt[0]<<8, PixelAnt, Temporal);
|
PixelDst = LowPassMul(FrameAnt[0]<<8, PixelAnt, Temporal);
|
||||||
FrameAnt[0] = ((PixelDst+0x1000007F)/256);
|
FrameAnt[0] = ((PixelDst+0x1000007F)/256);
|
||||||
FrameDest[0]= ((PixelDst+0x10007FFF)/65536);
|
FrameDest[0]= ((PixelDst+0x10007FFF)/65536);
|
||||||
|
|
||||||
/* Fist line has no top neightbour. Only left one for each pixel and
|
/* Fist line has no top neighbor. Only left one for each pixel and
|
||||||
* last frame */
|
* last frame */
|
||||||
for (X = 1; X < W; X++){
|
for (X = 1; X < W; X++){
|
||||||
LineAnt[X] = PixelAnt = LowPassMul(PixelAnt, Frame[X]<<16, Horizontal);
|
LineAnt[X] = PixelAnt = LowPassMul(PixelAnt, Frame[X]<<16, Horizontal);
|
||||||
|
Loading…
Reference in New Issue
Block a user