summaryrefslogtreecommitdiff
path: root/src/post/mosaico
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-04-17 19:54:31 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-04-17 19:54:31 +0000
commit1f6f435497b141d52e6c8cd97eec59da79001ae1 (patch)
tree6b890c6adeee97256e5c5b689eeafc37e2e4dc22 /src/post/mosaico
parentd36467d469f721beb0bb689c09e52cff61b1e982 (diff)
downloadxine-lib-1f6f435497b141d52e6c8cd97eec59da79001ae1.tar.gz
xine-lib-1f6f435497b141d52e6c8cd97eec59da79001ae1.tar.bz2
swap usage of "up" and "down" to the more common meaning:
"down" is the usual datapath from decoder to output, "up" is the opposite way -> this means swapping two function names -> this means increasing the post plugin iface version external plugin developers: just swap usage of _x_post_frame_copy_up() and _x_post_frame_copy_down() functions CVS patchset: 6412 CVS date: 2004/04/17 19:54:31
Diffstat (limited to 'src/post/mosaico')
-rw-r--r--src/post/mosaico/mosaico.c14
-rw-r--r--src/post/mosaico/switch.c10
2 files changed, 12 insertions, 12 deletions
diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c
index 2fbf6ff76..31a55dc99 100644
--- a/src/post/mosaico/mosaico.c
+++ b/src/post/mosaico/mosaico.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2003 the xine project
+ * Copyright (C) 2000-2004 the xine project
*
* This file is part of xine, a free video player.
*
@@ -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: mosaico.c,v 1.22 2004/02/18 16:03:55 mroi Exp $
+ * $Id: mosaico.c,v 1.23 2004/04/17 19:54:31 mroi Exp $
*/
/*
@@ -43,7 +43,7 @@ post_info_t mosaico_special_info = { XINE_POST_TYPE_VIDEO_COMPOSE };
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_POST, 8, "mosaico", XINE_VERSION_CODE, &mosaico_special_info, &mosaico_init_plugin },
+ { PLUGIN_POST, 9, "mosaico", XINE_VERSION_CODE, &mosaico_special_info, &mosaico_init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};
@@ -412,9 +412,9 @@ static int mosaico_draw_background(vo_frame_t *frame, xine_stream_t *stream)
pthread_mutex_lock(&this->mutex);
if (frame->bad_frame) {
- _x_post_frame_copy_up(frame, frame->next);
- skip = frame->next->draw(frame->next, stream);
_x_post_frame_copy_down(frame, frame->next);
+ skip = frame->next->draw(frame->next, stream);
+ _x_post_frame_copy_up(frame, frame->next);
this->vpts_limit = frame->vpts + frame->duration;
if (skip) {
@@ -431,14 +431,14 @@ static int mosaico_draw_background(vo_frame_t *frame, xine_stream_t *stream)
background = port->original_port->get_frame(port->original_port,
frame->width, frame->height, frame->ratio, frame->format, frame->flags | VO_BOTH_FIELDS);
- _x_post_frame_copy_up(frame, background);
+ _x_post_frame_copy_down(frame, background);
frame_copy_content(background, frame);
for (pip_num = 0; pip_num < this->pip_count; pip_num++)
frame_paste(this, background, pip_num);
skip = background->draw(background, stream);
- _x_post_frame_copy_down(frame, background);
+ _x_post_frame_copy_up(frame, background);
this->vpts_limit = background->vpts + background->duration;
background->free(background);
diff --git a/src/post/mosaico/switch.c b/src/post/mosaico/switch.c
index 260bbf79a..ce4a8cd85 100644
--- a/src/post/mosaico/switch.c
+++ b/src/post/mosaico/switch.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2003 the xine project
+ * Copyright (C) 2000-2004 the xine project
*
* This file is part of xine, a free video player.
*
@@ -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: switch.c,v 1.12 2004/01/07 19:52:42 mroi Exp $
+ * $Id: switch.c,v 1.13 2004/04/17 19:54:31 mroi Exp $
*/
/*
@@ -43,7 +43,7 @@ post_info_t switch_special_info = { XINE_POST_TYPE_VIDEO_COMPOSE };
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_POST, 8, "switch", XINE_VERSION_CODE, &switch_special_info, &switch_init_plugin },
+ { PLUGIN_POST, 9, "switch", XINE_VERSION_CODE, &switch_special_info, &switch_init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};
@@ -252,9 +252,9 @@ static int switch_draw(vo_frame_t *frame, xine_stream_t *stream)
/* we are too early */
pthread_cond_wait(&this->display_condition_changed, &this->mutex);
if (this->selected_source == source_num) {
- _x_post_frame_copy_up(frame, frame->next);
- skip = frame->next->draw(frame->next, NULL);
_x_post_frame_copy_down(frame, frame->next);
+ skip = frame->next->draw(frame->next, NULL);
+ _x_post_frame_copy_up(frame, frame->next);
this->vpts_limit = frame->vpts + frame->duration;
if (skip) {
this->skip = skip;