]> git.sesse.net Git - vlc/blob - modules/3dnow/memcpy.c
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / 3dnow / memcpy.c
1 /*****************************************************************************
2  * memcpy.c : classic memcpy module
3  *****************************************************************************
4  * Copyright (C) 2001 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #include <vlc_common.h>
29 #include <vlc_plugin.h>
30 #include <vlc_cpu.h>
31
32 #define HAVE_3DNOW
33 #include "../mmx/fastmemcpy.h"
34
35 static int Activate( vlc_object_t *p_this )
36 {
37     VLC_UNUSED(p_this);
38     vlc_fastmem_register( fast_memcpy, NULL );
39
40     return VLC_SUCCESS;
41 }
42
43 vlc_module_begin ()
44     set_category( CAT_ADVANCED )
45     set_subcategory( SUBCAT_ADVANCED_MISC )
46     set_description( N_("3D Now! memcpy") )
47     add_shortcut( "3dn", "3dnow", "memcpy3dn", "memcpy3dnow" )
48     set_capability( "memcpy", 100 )
49     set_callbacks( Activate, NULL )
50 vlc_module_end ()
51