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:
@@ -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] =
|
||||
|
||||
Reference in New Issue
Block a user