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

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/render/dither2YUV/rgb2yuv16.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
                          rgb2yuv16.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 __RGB2YUV16_H
 
19
#define __RGB2YUV16_H
 
20
 
 
21
#ifdef HAVE_CONFIG_H
 
22
#include "config.h"
 
23
#endif
 
24
 
 
25
#include "../yuvPicture.h"
 
26
#include "rgb2yuvdefs.h"
 
27
 
 
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);
 
33
 
 
34
 
 
35
 
 
36
//
 
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)
 
40
//
 
41
 
 
42
#ifdef INTEL
 
43
 
 
44
void rgb2yuv16bit_mmx(unsigned char* rgbSource,
 
45
                      unsigned char* lum,
 
46
                      unsigned char* cr,
 
47
                      unsigned char* cb,int height, int width);
 
48
 
 
49
void rgb2yuv16bit_mmx_fast(unsigned char* rgbSource,
 
50
                      unsigned char* lum,
 
51
                      unsigned char* cr,
 
52
                      unsigned char* cb,int height, int width);
 
53
 
 
54
void rgb2yuv16bit_mmx422_row(unsigned char* rgb, 
 
55
                             unsigned char* lum, unsigned char* cr,
 
56
                             unsigned char* cb, int pixel);
 
57
 
 
58
void rgb2y16bit_mmx_row(unsigned char* rgbSource, 
 
59
                        unsigned char* lum, int pixel);
 
60
 
 
61
void rgb2yuv16bit_mmx422_row_fast(unsigned char* rgb, 
 
62
                                  unsigned char* lum, unsigned char* cr,
 
63
                                  unsigned char* cb, int pixel);
 
64
 
 
65
void rgb2y16bit_mmx_row_fast(unsigned char* rgb, 
 
66
                             unsigned char* lum, int pixel);
 
67
 
 
68
 
 
69
#endif
 
70
// INTEL
 
71
 
 
72
 
 
73
 
 
74
#endif