~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/render/dither2YUV/rgb2yuv32.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          rgb2yuv32.h  -  description
 
3
                             -------------------
 
4
    begin                : Tue Nov 2 2000
 
5
    copyright            : (C) 2000 by Christian Gerlach
 
6
    email                : cgerlach@rhrk.uni-kl.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef _RGB2YUV32_H_
 
19
#define _RGB2YUV32_H_
 
20
 
 
21
#ifdef HAVE_CONFIG_H
 
22
#include "config.h"
 
23
#endif
 
24
 
 
25
#include "../yuvPicture.h"
 
26
#include "rgb2yuvdefs.h"
 
27
 
 
28
void rgb2yuv32(unsigned char* rgb, unsigned char* dest);
 
29
 
 
30
// slow C rountines
 
31
void rgb2yuv24bit(unsigned char* rgbSource,
 
32
                  unsigned char* lum,
 
33
                  unsigned char* cr,
 
34
                  unsigned char* cb,int height, int width);
 
35
 
 
36
void rgb2yuv32bit(unsigned char* rgbSource,
 
37
                  unsigned char* lum,
 
38
                  unsigned char* cr,
 
39
                  unsigned char* cb,int height, int width);
 
40
 
 
41
 
 
42
 
 
43
 
 
44
#ifndef INTEL
 
45
void rgb2yuv24bit_mmx(unsigned char* rgbSource,
 
46
                      unsigned char* lum,
 
47
                      unsigned char* cr,
 
48
                      unsigned char* cb,int height, int width);
 
49
 
 
50
void rgb2yuv32bit_mmx(unsigned char* rgbSource,
 
51
                      unsigned char* lum,
 
52
                      unsigned char* cr,
 
53
                      unsigned char* cb,int height, int width);
 
54
#endif
 
55
 
 
56
 
 
57
#ifdef INTEL
 
58
 
 
59
void rgb2yuv24bit_mmx(unsigned char* rgbSource,
 
60
                      unsigned char* lum,
 
61
                      unsigned char* cr,
 
62
                      unsigned char* cb,int height, int width);
 
63
 
 
64
void rgb2yuv32bit_mmx(unsigned char* rgbSource,
 
65
                      unsigned char* lum,
 
66
                      unsigned char* cr,
 
67
                      unsigned char* cb,int height, int width);
 
68
 
 
69
 
 
70
void rgb2yuv24bit_mmx444_row(unsigned char* rgb, 
 
71
                             unsigned char* lum, unsigned char* cr,
 
72
                             unsigned char* cb, int pixel);
 
73
 
 
74
 
 
75
void rgb2yuv24bit_mmx422_row(unsigned char* rgb, 
 
76
                             unsigned char* lum, unsigned char* cr,
 
77
                             unsigned char* cb, int pixel);
 
78
 
 
79
void rgb2yuv32bit_mmx422_row(unsigned char* rgb, 
 
80
                             unsigned char* lum, unsigned char* cr,
 
81
                             unsigned char* cb, int pixel);
 
82
 
 
83
void rgb2y24bit_mmx_row(unsigned char* rgbSource, 
 
84
                        unsigned char* lum, int pixel);
 
85
 
 
86
void rgb2y32bit_mmx_row(unsigned char* rgbSource, 
 
87
                        unsigned char* lum, int pixel); 
 
88
 
 
89
#endif
 
90
//INTEL
 
91
 
 
92
 
 
93
#endif