1
/***************************************************************************
2
rgb2yuv16.h - description
5
copyright : (C) 2000 by Christian Gerlach
6
email : cgerlach@rhrk.uni-kl.de
7
***************************************************************************/
9
/***************************************************************************
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
***************************************************************************/
25
#include "../yuvPicture.h"
26
#include "rgb2yuvdefs.h"
28
// slow C implementation
29
void rgb2yuv16bit(unsigned char* rgbSource,
30
unsigned char* destLum,
31
unsigned char* destCr,
32
unsigned char* destCb,int heigth, int width);
37
// We compile with MMX if we are on INTEL arch
38
// (this does not mean that we really support MMX,
39
// this is a seperate/runtime check)
44
void rgb2yuv16bit_mmx(unsigned char* rgbSource,
47
unsigned char* cb,int height, int width);
49
void rgb2yuv16bit_mmx_fast(unsigned char* rgbSource,
52
unsigned char* cb,int height, int width);
54
void rgb2yuv16bit_mmx422_row(unsigned char* rgb,
55
unsigned char* lum, unsigned char* cr,
56
unsigned char* cb, int pixel);
58
void rgb2y16bit_mmx_row(unsigned char* rgbSource,
59
unsigned char* lum, int pixel);
61
void rgb2yuv16bit_mmx422_row_fast(unsigned char* rgb,
62
unsigned char* lum, unsigned char* cr,
63
unsigned char* cb, int pixel);
65
void rgb2y16bit_mmx_row_fast(unsigned char* rgb,
66
unsigned char* lum, int pixel);