summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-07-12 03:15:23 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-07-12 03:15:23 +0000
commit1c2ef49e2d05a397a734de6e602a0cfeb752e5fd (patch)
tree813714b485500407adf0385985ea6c765f531bea /src
parentdb35ded6b3685806459f15a5c81de2e7addec7b9 (diff)
downloadxine-lib-1c2ef49e2d05a397a734de6e602a0cfeb752e5fd.tar.gz
xine-lib-1c2ef49e2d05a397a734de6e602a0cfeb752e5fd.tar.bz2
use yuy2_to_yv12
CVS patchset: 5147 CVS date: 2003/07/12 03:15:23
Diffstat (limited to 'src')
-rw-r--r--src/post/planar/boxblur.c11
-rw-r--r--src/post/planar/denoise3d.c9
-rw-r--r--src/post/planar/eq.c9
-rw-r--r--src/post/planar/eq2.c9
-rw-r--r--src/post/planar/unsharp.c9
5 files changed, 31 insertions, 16 deletions
diff --git a/src/post/planar/boxblur.c b/src/post/planar/boxblur.c
index d28ee12da..52fe67279 100644
--- a/src/post/planar/boxblur.c
+++ b/src/post/planar/boxblur.c
@@ -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: boxblur.c,v 1.2 2003/07/03 02:24:28 miguelfreitas Exp $
+ * $Id: boxblur.c,v 1.3 2003/07/12 03:15:23 miguelfreitas Exp $
*
* mplayer's boxblur
* Copyright (C) 2002 Michael Niedermayer <michaelni@gmx.at>
@@ -422,9 +422,12 @@ static int boxblur_draw(vo_frame_t *frame, xine_stream_t *stream)
yv12_frame->duration = frame->duration;
extra_info_merge(yv12_frame->extra_info, frame->extra_info);
- /* FIXME: implement! */
- /* yuy2_to_yv12() */
-
+ yuy2_to_yv12(frame->base[0], frame->pitches[0],
+ yv12_frame->base[0], yv12_frame->pitches[0],
+ yv12_frame->base[1], yv12_frame->pitches[1],
+ yv12_frame->base[2], yv12_frame->pitches[2],
+ frame->width, frame->height);
+
} else {
yv12_frame = frame;
yv12_frame->lock(yv12_frame);
diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c
index ab9ece93f..595fbce73 100644
--- a/src/post/planar/denoise3d.c
+++ b/src/post/planar/denoise3d.c
@@ -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: denoise3d.c,v 1.2 2003/07/03 02:24:28 miguelfreitas Exp $
+ * $Id: denoise3d.c,v 1.3 2003/07/12 03:15:23 miguelfreitas Exp $
*
* mplayer's denoise3d
* Copyright (C) 2003 Daniel Moreno <comac@comac.darktech.org>
@@ -433,8 +433,11 @@ static int denoise3d_draw(vo_frame_t *frame, xine_stream_t *stream)
yv12_frame->duration = frame->duration;
extra_info_merge(yv12_frame->extra_info, frame->extra_info);
- /* FIXME: implement! */
- /* yuy2_to_yv12() */
+ yuy2_to_yv12(frame->base[0], frame->pitches[0],
+ yv12_frame->base[0], yv12_frame->pitches[0],
+ yv12_frame->base[1], yv12_frame->pitches[1],
+ yv12_frame->base[2], yv12_frame->pitches[2],
+ frame->width, frame->height);
} else {
yv12_frame = frame;
diff --git a/src/post/planar/eq.c b/src/post/planar/eq.c
index af317e8c2..f79482a8f 100644
--- a/src/post/planar/eq.c
+++ b/src/post/planar/eq.c
@@ -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: eq.c,v 1.1 2003/06/29 18:56:24 miguelfreitas Exp $
+ * $Id: eq.c,v 1.2 2003/07/12 03:15:23 miguelfreitas Exp $
*
* mplayer's eq (soft video equalizer)
* Copyright (C) Richard Felker
@@ -466,8 +466,11 @@ static int eq_draw(vo_frame_t *frame, xine_stream_t *stream)
yv12_frame->duration = frame->duration;
extra_info_merge(yv12_frame->extra_info, frame->extra_info);
- /* FIXME: implement! */
- /* yuy2_to_yv12() */
+ yuy2_to_yv12(frame->base[0], frame->pitches[0],
+ yv12_frame->base[0], yv12_frame->pitches[0],
+ yv12_frame->base[1], yv12_frame->pitches[1],
+ yv12_frame->base[2], yv12_frame->pitches[2],
+ frame->width, frame->height);
} else {
yv12_frame = frame;
diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c
index c6c7332c2..91f926d54 100644
--- a/src/post/planar/eq2.c
+++ b/src/post/planar/eq2.c
@@ -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: eq2.c,v 1.2 2003/07/03 02:24:28 miguelfreitas Exp $
+ * $Id: eq2.c,v 1.3 2003/07/12 03:15:23 miguelfreitas Exp $
*
* mplayer's eq2 (soft video equalizer)
* Software equalizer (brightness, contrast, gamma, saturation)
@@ -663,8 +663,11 @@ static int eq2_draw(vo_frame_t *frame, xine_stream_t *stream)
yv12_frame->duration = frame->duration;
extra_info_merge(yv12_frame->extra_info, frame->extra_info);
- /* FIXME: implement! */
- /* yuy2_to_yv12() */
+ yuy2_to_yv12(frame->base[0], frame->pitches[0],
+ yv12_frame->base[0], yv12_frame->pitches[0],
+ yv12_frame->base[1], yv12_frame->pitches[1],
+ yv12_frame->base[2], yv12_frame->pitches[2],
+ frame->width, frame->height);
} else {
yv12_frame = frame;
diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c
index ca15f66e4..97fef8acc 100644
--- a/src/post/planar/unsharp.c
+++ b/src/post/planar/unsharp.c
@@ -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: unsharp.c,v 1.2 2003/07/03 02:24:28 miguelfreitas Exp $
+ * $Id: unsharp.c,v 1.3 2003/07/12 03:15:23 miguelfreitas Exp $
*
* mplayer's unsharp
* Copyright (C) 2002 Rémi Guyomarch <rguyom@pobox.com>
@@ -475,8 +475,11 @@ static int unsharp_draw(vo_frame_t *frame, xine_stream_t *stream)
yv12_frame->duration = frame->duration;
extra_info_merge(yv12_frame->extra_info, frame->extra_info);
- /* FIXME: implement! */
- /* yuy2_to_yv12() */
+ yuy2_to_yv12(frame->base[0], frame->pitches[0],
+ yv12_frame->base[0], yv12_frame->pitches[0],
+ yv12_frame->base[1], yv12_frame->pitches[1],
+ yv12_frame->base[2], yv12_frame->pitches[2],
+ frame->width, frame->height);
} else {
yv12_frame = frame;