diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-23 15:17:06 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-23 15:17:06 +0000 |
commit | 7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240 (patch) | |
tree | 2ed3efcbd70780554538f0c696d96ae17e2393d6 /src/xine-engine/post.c | |
parent | 558b00644651500abb40a7f4d73854312b571343 (diff) | |
download | xine-lib-7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240.tar.gz xine-lib-7b65c8b1b967474c2dd6b852fbcefc1e6bcd7240.tar.bz2 |
cleanup in video_out.h
* some obsolete VO_CAP_* constants removed
* VO_ZOOM_* constants replaced by their XINE_VO_ZOOM_* equivalents from xine.h
* moved some bits around
* proc_frame() needs only one parameter: the frame
* renamed copy_called to proc_called
* changed logic in video_out.c to call proc_* functions a bit
(call proc_frame() first, then call proc_slice() if proc_frame() has not set
proc_called, this allows video out plugins to have both hooks called)
CVS patchset: 5576
CVS date: 2003/10/23 15:17:06
Diffstat (limited to 'src/xine-engine/post.c')
-rw-r--r-- | src/xine-engine/post.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/xine-engine/post.c b/src/xine-engine/post.c index bbccf1187..c00b47d28 100644 --- a/src/xine-engine/post.c +++ b/src/xine-engine/post.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: post.c,v 1.16 2003/10/22 20:38:10 komadori Exp $ + * $Id: post.c,v 1.17 2003/10/23 15:17:07 mroi Exp $ */ /* @@ -132,10 +132,10 @@ static void post_frame_proc_slice(vo_frame_t *vo_img, uint8_t **src) { vo_img->port = &port->port; } -static void post_frame_proc_frame(vo_frame_t *vo_img, uint8_t **src) { +static void post_frame_proc_frame(vo_frame_t *vo_img) { post_video_port_t *port = (post_video_port_t *)vo_img->port; vo_img->port = port->original_port; - port->original_frame.proc_frame(vo_img, src); + port->original_frame.proc_frame(vo_img); vo_img->port = &port->port; } @@ -193,25 +193,25 @@ static void post_frame_proc_macro_block(int x, void post_intercept_video_frame(vo_frame_t *frame, post_video_port_t *port) { - port->original_frame.port = frame->port; - port->original_frame.free = frame->free; - port->original_frame.proc_slice = frame->proc_slice; - port->original_frame.proc_frame = frame->proc_frame; - port->original_frame.field = frame->field; - port->original_frame.draw = frame->draw; - port->original_frame.lock = frame->lock; - port->original_frame.dispose = frame->dispose; + port->original_frame.port = frame->port; + port->original_frame.free = frame->free; + port->original_frame.proc_slice = frame->proc_slice; + port->original_frame.proc_frame = frame->proc_frame; port->original_frame.proc_macro_block = frame->proc_macro_block; + port->original_frame.field = frame->field; + port->original_frame.draw = frame->draw; + port->original_frame.lock = frame->lock; + port->original_frame.dispose = frame->dispose; frame->port = &port->port; frame->free = post_frame_free; - frame->proc_slice = frame->proc_slice ? post_frame_proc_slice : NULL; - frame->proc_frame = frame->proc_frame ? post_frame_proc_frame : NULL; + frame->proc_slice = frame->proc_slice ? post_frame_proc_slice : NULL; + frame->proc_frame = frame->proc_frame ? post_frame_proc_frame : NULL; + frame->proc_macro_block = frame->proc_macro_block ? post_frame_proc_macro_block : NULL; frame->field = post_frame_field; frame->draw = post_frame_draw; frame->lock = post_frame_lock; frame->dispose = post_frame_dispose; - frame->proc_macro_block = post_frame_proc_macro_block; } void post_restore_video_frame(vo_frame_t *frame, post_video_port_t *port) { @@ -219,11 +219,11 @@ void post_restore_video_frame(vo_frame_t *frame, post_video_port_t *port) { frame->free = port->original_frame.free; frame->proc_slice = port->original_frame.proc_slice; frame->proc_frame = port->original_frame.proc_frame; + frame->proc_macro_block = port->original_frame.proc_macro_block; frame->field = port->original_frame.field; frame->draw = port->original_frame.draw; frame->lock = port->original_frame.lock; frame->dispose = port->original_frame.dispose; - frame->proc_macro_block = port->original_frame.proc_macro_block; } |