1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 * (This is a real mess if it has to be coded in one single C file)
13 * File scrolling addition (C) 2005 Alexander Spyridakis
14 * Copyright (C) 2004 Jörg Hohensohn aka [IDC]Dragon
15 * Heavily borrowed from the IJG implementation (C) Thomas G. Lane
16 * Small & fast downscaling IDCT (C) 2002 by Guido Vollbeding JPEGclub.org
18 * This program is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU General Public License
20 * as published by the Free Software Foundation; either version 2
21 * of the License, or (at your option) any later version.
23 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
24 * KIND, either express or implied.
26 ****************************************************************************/
28 #ifndef _JPEG_YUV2RGB_H
29 #define _JPEG_YUV2RGB_H
33 COLOURMODE_COLOUR
= 0,
40 DITHER_NONE
= 0, /* No dithering */
41 DITHER_ORDERED
, /* Bayer ordered */
42 DITHER_DIFFUSION
, /* Floyd/Steinberg error diffusion */
46 void yuv_bitmap_part(unsigned char *src
[3], int csub_x
, int csub_y
,
47 int src_x
, int src_y
, int stride
,
48 int x
, int y
, int width
, int height
,
49 int colour_mode
, int dither_mode
);