1 | /****************************************************************************** |
---|
2 | * SAGE - Scalable Adaptive Graphics Environment |
---|
3 | * |
---|
4 | * Copyright (C) 2004 Electronic Visualization Laboratory, |
---|
5 | * University of Illinois at Chicago |
---|
6 | * |
---|
7 | * All rights reserved. |
---|
8 | * |
---|
9 | * Redistribution and use in source and binary forms, with or without |
---|
10 | * modification, are permitted provided that the following conditions are met: |
---|
11 | * |
---|
12 | * * Redistributions of source code must retain the above copyright |
---|
13 | * notice, this list of conditions and the following disclaimer. |
---|
14 | * * Redistributions in binary form must reproduce the above |
---|
15 | * copyright notice, this list of conditions and the following disclaimer |
---|
16 | * in the documentation and/or other materials provided with the distribution. |
---|
17 | * * Neither the name of the University of Illinois at Chicago nor |
---|
18 | * the names of its contributors may be used to endorse or promote |
---|
19 | * products derived from this software without specific prior written permission. |
---|
20 | * |
---|
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
---|
22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
---|
23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
---|
24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
---|
25 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
---|
26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
---|
27 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
---|
28 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
---|
29 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
---|
30 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
---|
31 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
32 | * |
---|
33 | * Direct questions, comments etc about SAGE to http://www.evl.uic.edu/cavern/forum/ |
---|
34 | * |
---|
35 | *****************************************************************************/ |
---|
36 | |
---|
37 | /* |
---|
38 | * mpeg2convert.h |
---|
39 | * Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org> |
---|
40 | * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca> |
---|
41 | * |
---|
42 | * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. |
---|
43 | * See http://libmpeg2.sourceforge.net/ for updates. |
---|
44 | * |
---|
45 | * mpeg2dec is free software; you can redistribute it and/or modify |
---|
46 | * it under the terms of the GNU General Public License as published by |
---|
47 | * the Free Software Foundation; either version 2 of the License, or |
---|
48 | * (at your option) any later version. |
---|
49 | * |
---|
50 | * mpeg2dec is distributed in the hope that it will be useful, |
---|
51 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
52 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
53 | * GNU General Public License for more details. |
---|
54 | * |
---|
55 | * You should have received a copy of the GNU General Public License |
---|
56 | * along with this program; if not, write to the Free Software |
---|
57 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
58 | */ |
---|
59 | |
---|
60 | #ifndef MPEG2CONVERT_H |
---|
61 | #define MPEG2CONVERT_H |
---|
62 | |
---|
63 | mpeg2_convert_t mpeg2convert_rgb32; |
---|
64 | mpeg2_convert_t mpeg2convert_rgb24; |
---|
65 | mpeg2_convert_t mpeg2convert_rgb16; |
---|
66 | mpeg2_convert_t mpeg2convert_rgb15; |
---|
67 | mpeg2_convert_t mpeg2convert_rgb8; |
---|
68 | mpeg2_convert_t mpeg2convert_bgr32; |
---|
69 | mpeg2_convert_t mpeg2convert_bgr24; |
---|
70 | mpeg2_convert_t mpeg2convert_bgr16; |
---|
71 | mpeg2_convert_t mpeg2convert_bgr15; |
---|
72 | mpeg2_convert_t mpeg2convert_bgr8; |
---|
73 | |
---|
74 | typedef enum { |
---|
75 | MPEG2CONVERT_RGB = 0, |
---|
76 | MPEG2CONVERT_BGR = 1 |
---|
77 | } mpeg2convert_rgb_order_t; |
---|
78 | |
---|
79 | mpeg2_convert_t * mpeg2convert_rgb (mpeg2convert_rgb_order_t order, |
---|
80 | unsigned int bpp); |
---|
81 | |
---|
82 | mpeg2_convert_t mpeg2convert_uyvy; |
---|
83 | |
---|
84 | #endif /* MPEG2CONVERT_H */ |
---|