From 0a7ab1d85b162668ad6356e91bc78cba7d042fbf Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 19 Dec 2007 21:46:07 +0000 Subject: xine-lib 1.2 API changes (post_class) --- xine_post_audiochannel.c | 10 +++++++++- xine_post_autocrop.c | 14 ++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/xine_post_audiochannel.c b/xine_post_audiochannel.c index fb50bd6c..49a9a87f 100644 --- a/xine_post_audiochannel.c +++ b/xine_post_audiochannel.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_post_audiochannel.c,v 1.3 2007-06-21 08:02:38 phintuka Exp $ + * $Id: xine_post_audiochannel.c,v 1.4 2007-12-19 21:42:15 phintuka Exp $ * */ @@ -273,6 +273,7 @@ static post_plugin_t *audioch_open_plugin(post_class_t *class_gen, * Plugin class */ +#if XINE_VERSION_CODE < 10190 static char *audioch_get_identifier(post_class_t *class_gen) { return "audiochannel"; @@ -287,6 +288,7 @@ static void audioch_class_dispose(post_class_t *class_gen) { free(class_gen); } +#endif static void *audioch_init_plugin(xine_t *xine, void *data) { @@ -296,9 +298,15 @@ static void *audioch_init_plugin(xine_t *xine, void *data) return NULL; class->open_plugin = audioch_open_plugin; +#if XINE_VERSION_CODE < 10190 class->get_identifier = audioch_get_identifier; class->get_description = audioch_get_description; class->dispose = audioch_class_dispose; +#else + class->identifier = "audiochannel"; + class->description = N_("Select audio channel"); + class->dispose = default_post_class_dispose; +#endif return class; } diff --git a/xine_post_autocrop.c b/xine_post_autocrop.c index 94f22a6f..6e11f443 100644 --- a/xine_post_autocrop.c +++ b/xine_post_autocrop.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_post_autocrop.c,v 1.10 2006-12-19 17:38:52 phintuka Exp $ + * $Id: xine_post_autocrop.c,v 1.11 2007-12-19 21:46:07 phintuka Exp $ * */ @@ -27,7 +27,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: xine_post_autocrop.c,v 1.10 2006-12-19 17:38:52 phintuka Exp $ + * $Id: xine_post_autocrop.c,v 1.11 2007-12-19 21:46:07 phintuka Exp $ * * autocrop video filter by Petri Hintukainen 25/03/2006 * @@ -381,6 +381,7 @@ static int blank_line_UV_mmx(uint8_t *data, int length) __asm__("pxor %0,%0" : "=y"(sum1)); __asm__("pxor %0,%0" : "=y"(sum2)); + /* fetch static data to MMX registers */ m_03 = gm_03.m64; /*m_f8 = gm_f8.m64;*/ m_80 = gm_80.m64; @@ -440,6 +441,7 @@ static int blank_line_Y_sse(uint8_t *data, int length) length -= 64; /* skip borders (2 x 32 pixels) */ length /= 16; /* 16 bytes / loop */ + /* Start prefetching data to CPU cache */ _mm_prefetch(data128+length-1, _MM_HINT_NTA); _mm_prefetch(data128+length-3, _MM_HINT_NTA); @@ -1573,6 +1575,7 @@ static post_plugin_t *autocrop_open_plugin(post_class_t *class_gen, * Plugin class */ +#if XINE_VERSION_CODE < 10190 static char *autocrop_get_identifier(post_class_t *class_gen) { return "autocrop"; @@ -1587,6 +1590,7 @@ static void autocrop_class_dispose(post_class_t *class_gen) { free(class_gen); } +#endif static void *autocrop_init_plugin(xine_t *xine, void *data) { @@ -1594,9 +1598,15 @@ static void *autocrop_init_plugin(xine_t *xine, void *data) if(class) { class->open_plugin = autocrop_open_plugin; +#if XINE_VERSION_CODE < 10190 class->get_identifier = autocrop_get_identifier; class->get_description = autocrop_get_description; class->dispose = autocrop_class_dispose; +#else + class->identifier = "autocrop"; + class->description = N_("Crop letterboxed 4:3 video to 16:9"); + class->dispose = default_post_class_dispose; +#endif } return class; -- cgit v1.2.3