]> git.sesse.net Git - vlc/blob - plugins/yuvmmx/video_yuv8.c
985b2072f91b7b7150ed7225f7817c3fccc54413
[vlc] / plugins / yuvmmx / video_yuv8.c
1 /*****************************************************************************
2  * video_yuv8.c: YUV transformation functions for 8bpp
3  * Provides functions to perform the YUV conversion. The functions provided here
4  * are a complete and portable C implementation, and may be replaced in certain
5  * case by optimized functions.
6  *****************************************************************************
7  * Copyright (C) 1999, 2000 VideoLAN
8  *
9  * Authors:
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public
22  * License along with this program; if not, write to the
23  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24  * Boston, MA 02111-1307, USA.
25  *****************************************************************************/
26
27 /*****************************************************************************
28  * Preamble
29  *****************************************************************************/
30 #include "defs.h"
31
32 #include <math.h>                                            /* exp(), pow() */
33 #include <errno.h>                                                 /* ENOMEM */
34 #include <stdlib.h>                                                /* free() */
35 #include <string.h>                                            /* strerror() */
36
37 #include "config.h"
38 #include "common.h"
39 #include "threads.h"
40 #include "mtime.h"
41 #include "plugins.h"
42 #include "video.h"
43 #include "video_output.h"
44 #include "video_yuv.h"
45
46 #include "intf_msg.h"
47
48 /*****************************************************************************
49  * ConvertY4Gray8: grayscale YUV 4:x:x to RGB 8 bpp
50  *****************************************************************************/
51 void ConvertY4Gray8( YUV_ARGS_8BPP )
52 {
53     intf_ErrMsg( "yuvmmx error: unhandled function, grayscale, bpp = 8\n" );
54 }
55
56 /*****************************************************************************
57  * ConvertYUV420RGB8: color YUV 4:2:0 to RGB 8 bpp
58  *****************************************************************************/
59 void ConvertYUV420RGB8( YUV_ARGS_8BPP )
60 {
61     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, bpp = 8\n" );
62 }
63
64 /*****************************************************************************
65  * ConvertYUV422RGB8: color YUV 4:2:2 to RGB 8 bpp
66  *****************************************************************************/
67 void ConvertYUV422RGB8( YUV_ARGS_8BPP )
68 {
69     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, bpp = 8\n" );
70 }
71
72 /*****************************************************************************
73  * ConvertYUV444RGB8: color YUV 4:4:4 to RGB 8 bpp
74  *****************************************************************************/
75 void ConvertYUV444RGB8( YUV_ARGS_8BPP )
76 {
77     intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, bpp = 8\n" );
78 }
79