video: fix UYVP packing function

This commit is contained in:
Wim Taymans 2012-05-28 17:11:46 +02:00
parent ae2c5e1757
commit 03dc5d4a1b
2 changed files with 2 additions and 2 deletions

View file

@ -1020,7 +1020,7 @@ putline_UYVP (VideoConvert * convert, GstVideoFrame * dest, const guint8 * src,
destline[(i / 2) * 5 + 0] = u0;
destline[(i / 2) * 5 + 1] = y0 >> 2;
destline[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4);
destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2);
destline[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6);
destline[(i / 2) * 5 + 4] = (y1 << 2);
}
}

View file

@ -1733,7 +1733,7 @@ convert_hline_UYVP (paintinfo * p, int y)
Y[(i / 2) * 5 + 0] = u0;
Y[(i / 2) * 5 + 1] = y0 >> 2;
Y[(i / 2) * 5 + 2] = (y0 << 6) | (v0 >> 4);
Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 2);
Y[(i / 2) * 5 + 3] = (v0 << 4) | (y1 >> 6);
Y[(i / 2) * 5 + 4] = (y1 << 2);
}
}