mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 14:19:58 +01:00
full range yuv (jpeg) for 420,422, decode videoframe before completing open, scan pixel format, changed clamping were applicable in fx
git-svn-id: svn://code.dyne.org/veejay/trunk@672 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -259,25 +259,13 @@ void complexthreshold_apply(VJFrame *frame, VJFrame *frame2, int width,
|
||||
}
|
||||
|
||||
val = Y[pos] + (kbg * bg_y[pos]) >> 8;
|
||||
if (val < 16)
|
||||
val = 16;
|
||||
else if (val > 235)
|
||||
val = 235;
|
||||
Y[pos] = val;
|
||||
Y[pos] = CLAMP_Y(val);
|
||||
|
||||
val = Cb[pos] + (kbg * bg_cb[pos]) >> 8;
|
||||
if (val < 16)
|
||||
val = 16;
|
||||
else if (val > 240)
|
||||
val = 240;
|
||||
Cb[pos] = val;
|
||||
Cb[pos] = CLAMP_UV(val);
|
||||
|
||||
val = Cr[pos] + (kbg * bg_cr[pos]) >> 8;
|
||||
if (val < 16)
|
||||
val = 16;
|
||||
else if (val > 240)
|
||||
val = 240;
|
||||
Cr[pos] = val;
|
||||
Cr[pos] = CLAMP_UV(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user