1 /*****************************************************************************
2 * video_yuv24.c: YUV transformation functions for 24 bpp
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
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.
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.
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 *****************************************************************************/
27 /*****************************************************************************
29 *****************************************************************************/
32 #include <math.h> /* exp(), pow() */
33 #include <errno.h> /* ENOMEM */
34 #include <stdlib.h> /* free() */
35 #include <string.h> /* strerror() */
43 #include "video_output.h"
44 #include "video_yuv.h"
48 /*****************************************************************************
49 * ConvertY4Gray24: grayscale YUV 4:x:x to RGB 2 Bpp
50 *****************************************************************************/
51 void ConvertY4Gray24( YUV_ARGS_24BPP )
53 intf_ErrMsg( "yuvmmx error: unhandled function, grayscale, bpp = 24\n" );
56 /*****************************************************************************
57 * ConvertYUV420RGB24: color YUV 4:2:0 to RGB 2 Bpp
58 *****************************************************************************/
59 void ConvertYUV420RGB24( YUV_ARGS_24BPP )
61 intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 420, bpp = 24\n" );
64 /*****************************************************************************
65 * ConvertYUV422RGB24: color YUV 4:2:2 to RGB 2 Bpp
66 *****************************************************************************/
67 void ConvertYUV422RGB24( YUV_ARGS_24BPP )
69 intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 422, bpp = 24\n" );
72 /*****************************************************************************
73 * ConvertYUV444RGB24: color YUV 4:4:4 to RGB 2 Bpp
74 *****************************************************************************/
75 void ConvertYUV444RGB24( YUV_ARGS_24BPP )
77 intf_ErrMsg( "yuvmmx error: unhandled function, chroma = 444, bpp = 24\n" );