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:
Niels Elburg
2006-10-21 00:46:19 +00:00
parent 349931cc52
commit ae616b5448
44 changed files with 415 additions and 630 deletions

View File

@@ -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);
}
}
}