summaryrefslogtreecommitdiff
path: root/xine/post_util.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2009-10-21 00:02:02 +0000
committercvs2svn <admin@example.com>2009-10-21 00:02:02 +0000
commit97a97ca3358eb48de3eb7a222e487e800566569f (patch)
tree97c920d0225a1c9773a3bce2207f261d7d230123 /xine/post_util.h
parenta61961358c5a2ec92340b3f8e056bab55438f103 (diff)
downloadxineliboutput-CVS.tar.gz
xineliboutput-CVS.tar.bz2
This commit was manufactured by cvs2svn to create branch 'CVS'.CVS
Diffstat (limited to 'xine/post_util.h')
-rw-r--r--xine/post_util.h144
1 files changed, 0 insertions, 144 deletions
diff --git a/xine/post_util.h b/xine/post_util.h
deleted file mode 100644
index a539d31d..00000000
--- a/xine/post_util.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * post_util.h: post plugin utility functions
- *
- * See the main source file 'xineliboutput.c' for copyright information and
- * how to reach the author.
- *
- * $Id: post_util.h,v 1.5 2008-12-14 00:52:35 phintuka Exp $
- *
- */
-
-#if POST_PLUGIN_IFACE_VERSION < 9
-# warning POST_PLUGIN_IFACE_VERSION < 9 not supported !
-#endif
-#if POST_PLUGIN_IFACE_VERSION > 10
-# warning POST_PLUGIN_IFACE_VERSION > 10 not supported !
-#endif
-
-/*
- * class util prototypes
- */
-
-static void *init_plugin(xine_t *xine, void *data);
-#if POST_PLUGIN_IFACE_VERSION < 10
-static char *get_identifier(post_class_t *class_gen);
-static char *get_description(post_class_t *class_gen);
-static void class_dispose(post_class_t *class_gen);
-#endif
-
-/* required from plugin: */
-static post_plugin_t *open_plugin(post_class_t *class_gen, int inputs,
- xine_audio_port_t **audio_target,
- xine_video_port_t **video_target);
-
-/*
- * plugin util prototypes
- */
-
-static int dispatch_draw(vo_frame_t *frame, xine_stream_t *stream);
-static int intercept_frame_yuy(post_video_port_t *port, vo_frame_t *frame);
-static int post_draw(vo_frame_t *frame, xine_stream_t *stream);
-#ifdef ENABLE_SLICED
-static void dispatch_slice(vo_frame_t *vo_img, uint8_t **src);
-#endif
-
-/* required from plugin: */
-static vo_frame_t *got_frame(vo_frame_t *frame);
-static void draw_internal(vo_frame_t *frame, vo_frame_t *new_frame);
-
-
-/*
- * class utils
- */
-
-static void *init_plugin(xine_t *xine, void *data)
-{
- post_class_t *class = calloc(1, sizeof(post_class_t));
-
- if (!class)
- return NULL;
-
- class->open_plugin = open_plugin;
-#if POST_PLUGIN_IFACE_VERSION < 10
- class->get_identifier = get_identifier;
- class->get_description = get_description;
- class->dispose = class_dispose;
-#else
- class->identifier = PLUGIN_ID;
- class->description = PLUGIN_DESCR;
- class->dispose = default_post_class_dispose;
-#endif
-
- return class;
-}
-
-#if POST_PLUGIN_IFACE_VERSION < 10
-static char *get_identifier(post_class_t *class_gen)
-{
- return PLUGIN_ID;
-}
-
-static char *get_description(post_class_t *class_gen)
-{
- return PLUGIN_DESCR;
-}
-
-static void class_dispose(post_class_t *class_gen)
-{
- free(class_gen);
-}
-#endif
-
-/*
- * plugin utils
- */
-
-#ifdef ENABLE_SLICED
-static void dispatch_slice(vo_frame_t *vo_img, uint8_t **src)
-{
- if (vo_img->next->proc_slice) {
- _x_post_frame_copy_down(vo_img, vo_img->next);
- vo_img->next->proc_slice(vo_img->next, src);
- _x_post_frame_copy_up(vo_img, vo_img->next);
- }
-}
-#endif
-
-static int dispatch_draw(vo_frame_t *frame, xine_stream_t *stream)
-{
- int skip;
- _x_post_frame_copy_down(frame, frame->next);
- skip = frame->next->draw(frame->next, stream);
- _x_post_frame_copy_up(frame, frame->next);
- return skip;
-}
-
-static int intercept_frame_yuy(post_video_port_t *port, vo_frame_t *frame)
-{
- return (frame->format == XINE_IMGFMT_YV12 || frame->format == XINE_IMGFMT_YUY2);
-}
-
-static int post_draw(vo_frame_t *frame, xine_stream_t *stream)
-{
- vo_frame_t *new_frame;
- int skip;
-
- if (frame->bad_frame)
- return dispatch_draw(frame, stream);
-
- new_frame = got_frame(frame);
-
- if (!new_frame)
- return dispatch_draw(frame, stream);
-
- _x_post_frame_copy_down(frame, new_frame);
-
- draw_internal(frame, new_frame);
-
- skip = new_frame->draw(new_frame, stream);
- _x_post_frame_copy_up(frame, new_frame);
- new_frame->free(new_frame);
-
- return skip;
-}
-