From 5625e25c27b9c59d3f4cf4926bbfccfaf17258ce Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sat, 20 Jul 2002 04:20:56 +0000 Subject: added FINISH_LINE() color utility macro and fixed right-edge green stripe problem in MMX YUV 4:4:4 -> YUY2 converter CVS patchset: 2324 CVS date: 2002/07/20 04:20:56 --- src/xine-utils/xineutils.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/xine-utils/xineutils.h') diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index cb3a8139b..09680ff2c 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.18 2002/07/15 21:42:34 esnel Exp $ + * $Id: xineutils.h,v 1.19 2002/07/20 04:20:56 tmmm Exp $ * */ #ifndef XINEUTILS_H @@ -753,6 +753,17 @@ extern void (*yuv444_to_yuy2) (unsigned char) \ ((v_r_table[r] + v_g_table[g] + v_b_table[b]) / SCALEFACTOR + CENTERSAMPLE) +#define FINISH_LINE(yuv_planes, row_ptr) \ + yuv_planes.u[row_ptr + yuv_planes.row_width] = \ + yuv_planes.u[row_ptr + yuv_planes.row_width - 1]; \ + yuv_planes.u[row_ptr + yuv_planes.row_width + 1] = \ + yuv_planes.u[row_ptr + yuv_planes.row_width - 2]; \ + \ + yuv_planes.v[row_ptr + yuv_planes.row_width] = \ + yuv_planes.v[row_ptr + yuv_planes.row_width - 1]; \ + yuv_planes.v[row_ptr + yuv_planes.row_width + 1] = \ + yuv_planes.v[row_ptr + yuv_planes.row_width - 2]; + #define UNPACK_BGR15(packed_pixel, r, g, b) \ b = (packed_pixel & 0x7C00) >> 7; \ g = (packed_pixel & 0x03E0) >> 2; \ -- cgit v1.2.3