1 /*****************************************************************************
2 * yuvmmx.c : Accelerated MMX YUV functions for vlc
3 *****************************************************************************
4 * Copyright (C) 2000 VideoLAN
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
23 /*****************************************************************************
25 *****************************************************************************/
28 #include <stdlib.h> /* malloc(), free() */
31 #include "common.h" /* boolean_t, byte_t */
36 #include "interface.h"
37 #include "audio_output.h"
39 #include "video_output.h"
41 #include "plugins_export.h"
43 /*****************************************************************************
45 *****************************************************************************/
46 void yuv_GetPlugin( p_vout_thread_t p_vout );
48 /*****************************************************************************
49 * GetConfig: get the plugin structure and configuration
50 *****************************************************************************/
51 plugin_info_t * GetConfig( void )
53 plugin_info_t * p_info = (plugin_info_t *) malloc( sizeof(plugin_info_t) );
55 p_info->psz_name = "Accelerated MMX YUV to RGB transformations";
56 p_info->psz_version = VERSION;
57 p_info->psz_author = "the VideoLAN team <vlc@videolan.org>";
59 p_info->aout_GetPlugin = NULL;
60 p_info->vout_GetPlugin = NULL;
61 p_info->intf_GetPlugin = NULL;
62 p_info->yuv_GetPlugin = yuv_GetPlugin;
67 /*****************************************************************************
68 * Test: tests if the plugin can be launched
69 *****************************************************************************/
75 /*****************************************************************************
76 * Following functions are only called through the p_info structure
77 *****************************************************************************/
79 void yuv_GetPlugin( p_vout_thread_t p_vout )
81 p_vout->p_yuv_init = yuv_SysInit;
82 p_vout->p_yuv_reset = yuv_SysReset;
83 p_vout->p_yuv_end = yuv_SysEnd;