1
|
1 /*
|
|
2 *
|
|
3 * yuv2rgb.h, Software YUV to RGB coverter
|
|
4 *
|
|
5 *
|
|
6 * Copyright (C) 1999, Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
|
|
7 * All Rights Reserved.
|
|
8 *
|
|
9 * Functions broken out from display_x11.c and several new modes
|
|
10 * added by Håkan Hjort <d95hjort@dtek.chalmers.se>
|
|
11 *
|
|
12 * 15 & 16 bpp support by Franck Sicard <Franck.Sicard@solsoft.fr>
|
|
13 *
|
|
14 * This file is part of mpeg2dec, a free MPEG-2 video decoder
|
|
15 *
|
|
16 * mpeg2dec is free software; you can redistribute it and/or modify
|
|
17 * it under the terms of the GNU General Public License as published by
|
|
18 * the Free Software Foundation; either version 2, or (at your option)
|
|
19 * any later version.
|
|
20 *
|
|
21 * mpeg2dec is distributed in the hope that it will be useful,
|
|
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
24 * GNU General Public License for more details.
|
|
25 *
|
|
26 * You should have received a copy of the GNU General Public License
|
|
27 * along with GNU Make; see the file COPYING. If not, write to
|
|
28 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
29 */
|
|
30
|
|
31 #define MODE_RGB 0x1
|
|
32 #define MODE_BGR 0x2
|
|
33
|
|
34 typedef void (* yuv2rgb_fun) (uint8_t * image, uint8_t * py,
|
|
35 uint8_t * pu, uint8_t * pv,
|
|
36 int h_size, int v_size,
|
|
37 int rgb_stride, int y_stride, int uv_stride);
|
|
38
|
|
39 extern yuv2rgb_fun yuv2rgb;
|
|
40
|
|
41 void yuv2rgb_init (int bpp, int mode);
|
|
42 yuv2rgb_fun yuv2rgb_init_mmx (int bpp, int mode);
|
|
43 yuv2rgb_fun yuv2rgb_init_mlib (int bpp, int mode);
|