]> git.sesse.net Git - vlc/blobdiff - plugins/yuv/transforms_yuvmmx.c
* Beginning of the built-in modules support.
[vlc] / plugins / yuv / transforms_yuvmmx.c
index 78eba8dbc604581dd4a38c5dfd1a46d48abc3e42..f27b577dce402b6da98512f3323abeea8bf288e6 100644 (file)
@@ -3,7 +3,7 @@
  * Provides functions to perform the YUV conversion.
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: transforms_yuvmmx.c,v 1.4 2001/03/21 13:42:34 sam Exp $
+ * $Id: transforms_yuvmmx.c,v 1.5 2001/04/15 04:19:58 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -23,6 +23,9 @@
  * Boston, MA 02111-1307, USA.
  *****************************************************************************/
 
+#define MODULE_NAME yuvmmx
+#include "modules_inner.h"
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -50,7 +53,7 @@
 /*****************************************************************************
  * ConvertY4Gray8: grayscale YUV 4:x:x to RGB 8 bpp
  *****************************************************************************/
-void ConvertY4Gray8( YUV_ARGS_8BPP )
+void _M( ConvertY4Gray8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, grayscale, bpp = 8" );
 }
@@ -58,7 +61,7 @@ void ConvertY4Gray8( YUV_ARGS_8BPP )
 /*****************************************************************************
  * ConvertYUV420RGB8: color YUV 4:2:0 to RGB 8 bpp
  *****************************************************************************/
-void ConvertYUV420RGB8( YUV_ARGS_8BPP )
+void _M( ConvertYUV420RGB8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, bpp = 8" );
 }
@@ -66,7 +69,7 @@ void ConvertYUV420RGB8( YUV_ARGS_8BPP )
 /*****************************************************************************
  * ConvertYUV422RGB8: color YUV 4:2:2 to RGB 8 bpp
  *****************************************************************************/
-void ConvertYUV422RGB8( YUV_ARGS_8BPP )
+void _M( ConvertYUV422RGB8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, bpp = 8" );
 }
@@ -74,7 +77,7 @@ void ConvertYUV422RGB8( YUV_ARGS_8BPP )
 /*****************************************************************************
  * ConvertYUV444RGB8: color YUV 4:4:4 to RGB 8 bpp
  *****************************************************************************/
-void ConvertYUV444RGB8( YUV_ARGS_8BPP )
+void _M( ConvertYUV444RGB8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, bpp = 8" );
 }
@@ -82,7 +85,7 @@ void ConvertYUV444RGB8( YUV_ARGS_8BPP )
 /*****************************************************************************
  * ConvertY4Gray16: color YUV 4:4:4 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertY4Gray16( YUV_ARGS_16BPP )
+void _M( ConvertY4Gray16 )( YUV_ARGS_16BPP )
 {
     boolean_t   b_horizontal_scaling;             /* horizontal scaling type */
     int         i_vertical_scaling;                 /* vertical scaling type */
@@ -102,7 +105,7 @@ void ConvertY4Gray16( YUV_ARGS_16BPP )
     i_chroma_width =    i_width / 2;
     p_buffer_start =    p_vout->yuv.p_buffer;
     p_offset_start =    p_vout->yuv.p_offset;
-    SetOffset( i_width, i_height, i_pic_width, i_pic_height,
+    _M( SetOffset )( i_width, i_height, i_pic_width, i_pic_height,
                &b_horizontal_scaling, &i_vertical_scaling, p_offset_start, 0 );
 
     /*
@@ -140,7 +143,7 @@ void ConvertY4Gray16( YUV_ARGS_16BPP )
 /*****************************************************************************
  * ConvertYUV420RGB16: color YUV 4:2:0 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV420RGB16( YUV_ARGS_16BPP )
+void _M( ConvertYUV420RGB16 )( YUV_ARGS_16BPP )
 {
     boolean_t   b_horizontal_scaling;             /* horizontal scaling type */
     int         i_vertical_scaling;                 /* vertical scaling type */
@@ -160,7 +163,7 @@ void ConvertYUV420RGB16( YUV_ARGS_16BPP )
     i_chroma_width =    i_width / 2;
     p_buffer_start =    p_vout->yuv.p_buffer;
     p_offset_start =    p_vout->yuv.p_offset;
-    SetOffset( i_width, i_height, i_pic_width, i_pic_height,
+    _M( SetOffset )( i_width, i_height, i_pic_width, i_pic_height,
                &b_horizontal_scaling, &i_vertical_scaling, p_offset_start, 0 );
 
     /*
@@ -193,11 +196,10 @@ void ConvertYUV420RGB16( YUV_ARGS_16BPP )
       }
 }
 
-
 /*****************************************************************************
  * ConvertYUV422RGB16: color YUV 4:2:2 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV422RGB16( YUV_ARGS_16BPP )
+void _M( ConvertYUV422RGB16 )( YUV_ARGS_16BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, bpp = 16" );
 }
@@ -205,7 +207,7 @@ void ConvertYUV422RGB16( YUV_ARGS_16BPP )
 /*****************************************************************************
  * ConvertYUV444RGB16: color YUV 4:4:4 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV444RGB16( YUV_ARGS_16BPP )
+void _M( ConvertYUV444RGB16 )( YUV_ARGS_16BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, bpp = 16" );
 }
@@ -213,7 +215,7 @@ void ConvertYUV444RGB16( YUV_ARGS_16BPP )
 /*****************************************************************************
  * ConvertY4Gray24: grayscale YUV 4:x:x to RGB 2 Bpp
  *****************************************************************************/
-void ConvertY4Gray24( YUV_ARGS_24BPP )
+void _M( ConvertY4Gray24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, grayscale, bpp = 24" );
 }
@@ -221,7 +223,7 @@ void ConvertY4Gray24( YUV_ARGS_24BPP )
 /*****************************************************************************
  * ConvertYUV420RGB24: color YUV 4:2:0 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV420RGB24( YUV_ARGS_24BPP )
+void _M( ConvertYUV420RGB24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, bpp = 24" );
 }
@@ -229,7 +231,7 @@ void ConvertYUV420RGB24( YUV_ARGS_24BPP )
 /*****************************************************************************
  * ConvertYUV422RGB24: color YUV 4:2:2 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV422RGB24( YUV_ARGS_24BPP )
+void _M( ConvertYUV422RGB24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, bpp = 24" );
 }
@@ -237,7 +239,7 @@ void ConvertYUV422RGB24( YUV_ARGS_24BPP )
 /*****************************************************************************
  * ConvertYUV444RGB24: color YUV 4:4:4 to RGB 2 Bpp
  *****************************************************************************/
-void ConvertYUV444RGB24( YUV_ARGS_24BPP )
+void _M( ConvertYUV444RGB24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, bpp = 24" );
 }
@@ -245,16 +247,15 @@ void ConvertYUV444RGB24( YUV_ARGS_24BPP )
 /*****************************************************************************
  * ConvertY4Gray32: grayscale YUV 4:x:x to RGB 4 Bpp
  *****************************************************************************/
-void ConvertY4Gray32( YUV_ARGS_32BPP )
+void _M( ConvertY4Gray32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, grayscale, bpp = 32" );
 }
 
-
 /*****************************************************************************
  * ConvertYUV420RGB32: color YUV 4:2:0 to RGB 4 Bpp
  *****************************************************************************/
-void ConvertYUV420RGB32( YUV_ARGS_32BPP )
+void _M( ConvertYUV420RGB32 )( YUV_ARGS_32BPP )
 {
     boolean_t   b_horizontal_scaling;             /* horizontal scaling type */
     int         i_vertical_scaling;                 /* vertical scaling type */
@@ -274,7 +275,7 @@ void ConvertYUV420RGB32( YUV_ARGS_32BPP )
     i_chroma_width =    i_width / 2;
     p_buffer_start =    p_vout->yuv.p_buffer;
     p_offset_start =    p_vout->yuv.p_offset;
-    SetOffset( i_width, i_height, i_pic_width, i_pic_height,
+    _M( SetOffset )( i_width, i_height, i_pic_width, i_pic_height,
                &b_horizontal_scaling, &i_vertical_scaling, p_offset_start, 0 );
 
     i_scale_count = ( i_vertical_scaling == 1 ) ? i_pic_height : i_height;
@@ -310,7 +311,7 @@ void ConvertYUV420RGB32( YUV_ARGS_32BPP )
 /*****************************************************************************
  * ConvertYUV422RGB32: color YUV 4:2:2 to RGB 4 Bpp
  *****************************************************************************/
-void ConvertYUV422RGB32( YUV_ARGS_32BPP )
+void _M( ConvertYUV422RGB32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuv error: unhandled function, chroma = 422, bpp = 32" );
 }
@@ -318,7 +319,7 @@ void ConvertYUV422RGB32( YUV_ARGS_32BPP )
 /*****************************************************************************
  * ConvertYUV444RGB32: color YUV 4:4:4 to RGB 4 Bpp
  *****************************************************************************/
-void ConvertYUV444RGB32( YUV_ARGS_32BPP )
+void _M( ConvertYUV444RGB32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuv error: unhandled function, chroma = 444, bpp = 32" );
 }
@@ -326,32 +327,33 @@ void ConvertYUV444RGB32( YUV_ARGS_32BPP )
 /*****************************************************************************
  * ConvertYUV420YCbr8: color YUV 4:2:0 to YCbr 8 Bpp
  *****************************************************************************/
-
-void ConvertYUV420YCbr8    ( YUV_ARGS_8BPP )
+void _M( ConvertYUV420YCbr8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, YCbr = 8" );
 }
+
 /*****************************************************************************
  * ConvertYUV422YCbr8: color YUV 4:2:2 to YCbr 8 Bpp
  *****************************************************************************/
-
-void ConvertYUV422YCbr8    ( YUV_ARGS_8BPP )
+void _M( ConvertYUV422YCbr8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, YCbr = 8" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV444YCbr8: color YUV 4:4:4 to YCbr 8 Bpp
  *****************************************************************************/
-void ConvertYUV444YCbr8    ( YUV_ARGS_8BPP )
+void _M( ConvertYUV444YCbr8 )( YUV_ARGS_8BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, YCbr = 8" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV420YCbr16: color YUV 4:2:0 to YCbr 16 Bpp
  *****************************************************************************/
-void ConvertYUV420YCbr16    ( YUV_ARGS_16BPP )
+void _M( ConvertYUV420YCbr16 )( YUV_ARGS_16BPP )
 {
     boolean_t   b_horizontal_scaling;             /* horizontal scaling type */
     int         i_vertical_scaling;                 /* vertical scaling type */
@@ -368,7 +370,7 @@ void ConvertYUV420YCbr16    ( YUV_ARGS_16BPP )
     i_chroma_width =    i_width / 2;
     p_buffer_start =    p_vout->yuv.p_buffer;
     p_offset_start =    p_vout->yuv.p_offset;
-    SetOffset( i_width, i_height, i_pic_width, i_pic_height,
+    _M( SetOffset )( i_width, i_height, i_pic_width, i_pic_height,
                &b_horizontal_scaling, &i_vertical_scaling, p_offset_start, 0 );
 
     i_scale_count = ( i_vertical_scaling == 1 ) ? i_pic_height : i_height;
@@ -397,76 +399,76 @@ void ConvertYUV420YCbr16    ( YUV_ARGS_16BPP )
       }
 
 }
+
 /*****************************************************************************
  * ConvertYUV422YCbr8: color YUV 4:2:2 to YCbr 16 Bpp
  *****************************************************************************/
-
-void ConvertYUV422YCbr16    ( YUV_ARGS_16BPP )
+void _M( ConvertYUV422YCbr16 )( YUV_ARGS_16BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, YCbr = 16" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV424YCbr8: color YUV 4:4:4 to YCbr 16 Bpp
  *****************************************************************************/
-
-void ConvertYUV444YCbr16    ( YUV_ARGS_16BPP )
+void _M( ConvertYUV444YCbr16 )( YUV_ARGS_16BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, YCbr = 16" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV420YCbr24: color YUV 4:2:0 to YCbr 24 Bpp
  *****************************************************************************/
-
-void ConvertYUV420YCbr24    ( YUV_ARGS_24BPP )
+void _M( ConvertYUV420YCbr24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, YCbr = 24" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV422YCbr24: color YUV 4:2:2 to YCbr 24 Bpp
  *****************************************************************************/
-
-void ConvertYUV422YCbr24    ( YUV_ARGS_24BPP )
+void _M( ConvertYUV422YCbr24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, YCbr = 24" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV444YCbr24: color YUV 4:4:4 to YCbr 24 Bpp
  *****************************************************************************/
-
-void ConvertYUV444YCbr24    ( YUV_ARGS_24BPP )
+void _M( ConvertYUV444YCbr24 )( YUV_ARGS_24BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, YCbr = 24" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV420YCbr32: color YUV 4:2:0 to YCbr 32 Bpp
  *****************************************************************************/
-
-void ConvertYUV420YCbr32    ( YUV_ARGS_32BPP )
+void _M( ConvertYUV420YCbr32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, YCbr = 32" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV422YCbr32: color YUV 4:2:2 to YCbr 32 Bpp
  *****************************************************************************/
-
-void ConvertYUV422YCbr32    ( YUV_ARGS_32BPP )
+void _M( ConvertYUV422YCbr32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, YCbr = 32" );
 
 }
+
 /*****************************************************************************
  * ConvertYUV444YCbr32: color YUV 4:4:4 to YCbr 32 Bpp
  *****************************************************************************/
-void ConvertYUV444YCbr32    ( YUV_ARGS_32BPP )
+void _M( ConvertYUV444YCbr32 )( YUV_ARGS_32BPP )
 {
     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, YCbr = 32" );
 
 }
 
-