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

@@ -94,14 +94,6 @@ void opacity_by_threshold_(uint8_t * yuv1[3], uint8_t * yuv2[3], int width,
for (x = 0; x < width; x++) {
a1 = yuv1[0][x + y];
a2 = yuv2[0][x + y];
if (a1 < 16)
a1 = 16;
else if (a1 > 235)
a1 = 235;
if (a2 < 16)
a2 = 16;
else if (a2 > 235)
a2 = 235;
if (a2 > threshold && a2 < threshold2) {
yuv1[0][x + y] = (op0 * a1 + op1 * a2) >> 8;
yuv1[1][x + y] =