~ubuntu-branches/ubuntu/saucy/pixman/saucy-security

« back to all changes in this revision

Viewing changes to pixman/pixman-mmx.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-09-28 18:12:47 UTC
  • mfrom: (1.1.8 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090928181247-3iehog63i50htejf
Tags: 0.16.2-1
* New upstream release (closes: #546849).
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2004 Red Hat, Inc.
3
 
 * Copyright © 2005 Trolltech AS
4
 
 *
5
 
 * Permission to use, copy, modify, distribute, and sell this software and its
6
 
 * documentation for any purpose is hereby granted without fee, provided that
7
 
 * the above copyright notice appear in all copies and that both that
8
 
 * copyright notice and this permission notice appear in supporting
9
 
 * documentation, and that the name of Red Hat not be used in advertising or
10
 
 * publicity pertaining to distribution of the software without specific,
11
 
 * written prior permission.  Red Hat makes no representations about the
12
 
 * suitability of this software for any purpose.  It is provided "as is"
13
 
 * without express or implied warranty.
14
 
 *
15
 
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
16
 
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
17
 
 * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
 
 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19
 
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
20
 
 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
21
 
 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
22
 
 * SOFTWARE.
23
 
 *
24
 
 * Author:  Søren Sandmann (sandmann@redhat.com)
25
 
 *          Lars Knoll (lars@trolltech.com)
26
 
 * 
27
 
 * Based on work by Owen Taylor
28
 
 */
29
 
#ifndef _PIXMAN_MMX_H_
30
 
#define _PIXMAN_MMX_H_
31
 
 
32
 
#ifdef HAVE_DIX_CONFIG_H
33
 
#include <dix-config.h>
34
 
#endif
35
 
 
36
 
#include "pixman-private.h"
37
 
 
38
 
#ifdef USE_MMX
39
 
 
40
 
#if !defined(__amd64__) && !defined(__x86_64__)
41
 
pixman_bool_t pixman_have_mmx(void);
42
 
#else
43
 
#define pixman_have_mmx() TRUE
44
 
#endif
45
 
 
46
 
#else
47
 
#define pixman_have_mmx() FALSE
48
 
#endif
49
 
 
50
 
#ifdef USE_MMX
51
 
 
52
 
pixman_bool_t 
53
 
pixman_blt_mmx (uint32_t *src_bits,
54
 
                uint32_t *dst_bits,
55
 
                int src_stride,
56
 
                int dst_stride,
57
 
                int src_bpp,
58
 
                int dst_bpp,
59
 
                int src_x, int src_y,
60
 
                int dst_x, int dst_y,
61
 
                int width, int height);
62
 
pixman_bool_t
63
 
pixman_fill_mmx (uint32_t *bits,
64
 
                 int stride,
65
 
                 int bpp,
66
 
                 int x,
67
 
                 int y,
68
 
                 int width,
69
 
                 int height,
70
 
                 uint32_t xor);
71
 
 
72
 
void fbComposeSetupMMX(void);
73
 
 
74
 
void fbCompositeSolidMask_nx8888x0565Cmmx (pixman_op_t      op,
75
 
                                           pixman_image_t * pSrc,
76
 
                                           pixman_image_t * pMask,
77
 
                                           pixman_image_t * pDst,
78
 
                                           int16_t      xSrc,
79
 
                                           int16_t      ySrc,
80
 
                                           int16_t      xMask,
81
 
                                           int16_t      yMask,
82
 
                                           int16_t      xDst,
83
 
                                           int16_t      yDst,
84
 
                                           uint16_t     width,
85
 
                                           uint16_t     height);
86
 
void fbCompositeSrcAdd_8888x8888mmx (pixman_op_t        op,
87
 
                                     pixman_image_t *   pSrc,
88
 
                                     pixman_image_t *   pMask,
89
 
                                     pixman_image_t *   pDst,
90
 
                                     int16_t    xSrc,
91
 
                                     int16_t      ySrc,
92
 
                                     int16_t      xMask,
93
 
                                     int16_t      yMask,
94
 
                                     int16_t      xDst,
95
 
                                     int16_t      yDst,
96
 
                                     uint16_t     width,
97
 
                                     uint16_t     height);
98
 
void fbCompositeSrc_8888x8888mmx (pixman_op_t           op,
99
 
                                  pixman_image_t *      pSrc,
100
 
                                  pixman_image_t *      pMask,
101
 
                                  pixman_image_t *      pDst,
102
 
                                  int16_t               xSrc,
103
 
                                  int16_t               ySrc,
104
 
                                  int16_t               xMask,
105
 
                                  int16_t               yMask,
106
 
                                  int16_t               xDst,
107
 
                                  int16_t               yDst,
108
 
                                  uint16_t      width,
109
 
                                  uint16_t      height);
110
 
void
111
 
fbCompositeSolidMaskSrc_nx8x8888mmx (pixman_op_t      op,
112
 
                                     pixman_image_t * pSrc,
113
 
                                     pixman_image_t * pMask,
114
 
                                     pixman_image_t * pDst,
115
 
                                     int16_t      xSrc,
116
 
                                     int16_t      ySrc,
117
 
                                     int16_t      xMask,
118
 
                                     int16_t      yMask,
119
 
                                     int16_t      xDst,
120
 
                                     int16_t      yDst,
121
 
                                     uint16_t     width,
122
 
                                     uint16_t     height);
123
 
void
124
 
fbCompositeSrc_x888xnx8888mmx (pixman_op_t      op,
125
 
                               pixman_image_t * pSrc,
126
 
                               pixman_image_t * pMask,
127
 
                               pixman_image_t * pDst,
128
 
                               int16_t  xSrc,
129
 
                               int16_t  ySrc,
130
 
                               int16_t      xMask,
131
 
                               int16_t      yMask,
132
 
                               int16_t      xDst,
133
 
                               int16_t      yDst,
134
 
                               uint16_t     width,
135
 
                               uint16_t     height);
136
 
void fbCompositeSolidMask_nx8888x8888Cmmx (pixman_op_t  op,
137
 
                                           pixman_image_t *     pSrc,
138
 
                                           pixman_image_t *     pMask,
139
 
                                           pixman_image_t *     pDst,
140
 
                                           int16_t      xSrc,
141
 
                                           int16_t      ySrc,
142
 
                                           int16_t      xMask,
143
 
                                           int16_t      yMask,
144
 
                                           int16_t      xDst,
145
 
                                           int16_t      yDst,
146
 
                                           uint16_t     width,
147
 
                                           uint16_t     height);
148
 
void fbCompositeSolidMask_nx8x8888mmx (pixman_op_t      op,
149
 
                                       pixman_image_t * pSrc,
150
 
                                       pixman_image_t * pMask,
151
 
                                       pixman_image_t * pDst,
152
 
                                       int16_t      xSrc,
153
 
                                       int16_t      ySrc,
154
 
                                       int16_t      xMask,
155
 
                                       int16_t      yMask,
156
 
                                       int16_t      xDst,
157
 
                                       int16_t      yDst,
158
 
                                       uint16_t     width,
159
 
                                       uint16_t     height);
160
 
void fbCompositeIn_nx8x8mmx (pixman_op_t        op,
161
 
                        pixman_image_t * pSrc,
162
 
                        pixman_image_t * pMask,
163
 
                        pixman_image_t * pDst,
164
 
                        int16_t      xSrc,
165
 
                        int16_t      ySrc,
166
 
                        int16_t      xMask,
167
 
                        int16_t      yMask,
168
 
                        int16_t      xDst,
169
 
                        int16_t      yDst,
170
 
                        uint16_t     width,
171
 
                        uint16_t     height);
172
 
void fbCompositeIn_8x8mmx (pixman_op_t  op,
173
 
                      pixman_image_t * pSrc,
174
 
                      pixman_image_t * pMask,
175
 
                      pixman_image_t * pDst,
176
 
                      int16_t      xSrc,
177
 
                      int16_t      ySrc,
178
 
                      int16_t      xMask,
179
 
                      int16_t      yMask,
180
 
                      int16_t      xDst,
181
 
                      int16_t      yDst,
182
 
                      uint16_t     width,
183
 
                      uint16_t     height);
184
 
void fbCompositeSrcAdd_8888x8x8mmx (pixman_op_t   op,
185
 
                               pixman_image_t * pSrc,
186
 
                               pixman_image_t * pMask,
187
 
                               pixman_image_t * pDst,
188
 
                               int16_t      xSrc,
189
 
                               int16_t      ySrc,
190
 
                               int16_t      xMask,
191
 
                               int16_t      yMask,
192
 
                               int16_t      xDst,
193
 
                               int16_t      yDst,
194
 
                               uint16_t     width,
195
 
                               uint16_t     height);
196
 
void fbCompositeSrcAdd_8000x8000mmx (pixman_op_t        op,
197
 
                                     pixman_image_t * pSrc,
198
 
                                     pixman_image_t * pMask,
199
 
                                     pixman_image_t * pDst,
200
 
                                     int16_t      xSrc,
201
 
                                     int16_t      ySrc,
202
 
                                     int16_t      xMask,
203
 
                                     int16_t      yMask,
204
 
                                     int16_t      xDst,
205
 
                                     int16_t      yDst,
206
 
                                     uint16_t     width,
207
 
                                     uint16_t     height);
208
 
void fbCompositeSrc_8888RevNPx8888mmx (pixman_op_t      op,
209
 
                                       pixman_image_t * pSrc,
210
 
                                       pixman_image_t * pMask,
211
 
                                       pixman_image_t * pDst,
212
 
                                       int16_t      xSrc,
213
 
                                       int16_t      ySrc,
214
 
                                       int16_t      xMask,
215
 
                                       int16_t      yMask,
216
 
                                       int16_t      xDst,
217
 
                                       int16_t      yDst,
218
 
                                       uint16_t     width,
219
 
                                       uint16_t     height);
220
 
void fbCompositeSrc_8888x0565mmx (pixman_op_t      op,
221
 
                                  pixman_image_t * pSrc,
222
 
                                  pixman_image_t * pMask,
223
 
                                  pixman_image_t * pDst,
224
 
                                  int16_t      xSrc,
225
 
                                  int16_t      ySrc,
226
 
                                  int16_t      xMask,
227
 
                                  int16_t      yMask,
228
 
                                  int16_t      xDst,
229
 
                                  int16_t      yDst,
230
 
                                  uint16_t     width,
231
 
                                  uint16_t     height);
232
 
void fbCompositeSrc_8888RevNPx0565mmx (pixman_op_t      op,
233
 
                                       pixman_image_t * pSrc,
234
 
                                       pixman_image_t * pMask,
235
 
                                       pixman_image_t * pDst,
236
 
                                       int16_t      xSrc,
237
 
                                       int16_t      ySrc,
238
 
                                       int16_t      xMask,
239
 
                                       int16_t      yMask,
240
 
                                       int16_t      xDst,
241
 
                                       int16_t      yDst,
242
 
                                       uint16_t     width,
243
 
                                       uint16_t     height);
244
 
void fbCompositeSolid_nx8888mmx (pixman_op_t            op,
245
 
                                 pixman_image_t *       pSrc,
246
 
                                 pixman_image_t *       pMask,
247
 
                                 pixman_image_t *       pDst,
248
 
                                 int16_t                xSrc,
249
 
                                 int16_t                ySrc,
250
 
                                 int16_t                xMask,
251
 
                                 int16_t                yMask,
252
 
                                 int16_t                xDst,
253
 
                                 int16_t                yDst,
254
 
                                 uint16_t               width,
255
 
                                 uint16_t               height);
256
 
void fbCompositeSolid_nx0565mmx (pixman_op_t            op,
257
 
                                 pixman_image_t *       pSrc,
258
 
                                 pixman_image_t *       pMask,
259
 
                                 pixman_image_t *       pDst,
260
 
                                 int16_t                xSrc,
261
 
                                 int16_t                ySrc,
262
 
                                 int16_t                xMask,
263
 
                                 int16_t                yMask,
264
 
                                 int16_t                xDst,
265
 
                                 int16_t                yDst,
266
 
                                 uint16_t               width,
267
 
                                 uint16_t               height);
268
 
void fbCompositeSolidMask_nx8x0565mmx (pixman_op_t      op,
269
 
                                       pixman_image_t * pSrc,
270
 
                                       pixman_image_t * pMask,
271
 
                                       pixman_image_t * pDst,
272
 
                                       int16_t      xSrc,
273
 
                                       int16_t      ySrc,
274
 
                                       int16_t      xMask,
275
 
                                       int16_t      yMask,
276
 
                                       int16_t      xDst,
277
 
                                       int16_t      yDst,
278
 
                                       uint16_t     width,
279
 
                                       uint16_t     height);
280
 
void fbCompositeSrc_8888x8x8888mmx (pixman_op_t op,
281
 
                                    pixman_image_t *  pSrc,
282
 
                                    pixman_image_t *  pMask,
283
 
                                    pixman_image_t *  pDst,
284
 
                                    int16_t     xSrc,
285
 
                                    int16_t     ySrc,
286
 
                                    int16_t       xMask,
287
 
                                    int16_t       yMask,
288
 
                                    int16_t       xDst,
289
 
                                    int16_t       yDst,
290
 
                                    uint16_t      width,
291
 
                                    uint16_t      height);
292
 
void fbCompositeCopyAreammx (pixman_op_t        op,
293
 
                             pixman_image_t *   pSrc,
294
 
                             pixman_image_t *   pMask,
295
 
                             pixman_image_t *   pDst,
296
 
                             int16_t    xSrc,
297
 
                             int16_t      ySrc,
298
 
                             int16_t      xMask,
299
 
                             int16_t      yMask,
300
 
                             int16_t      xDst,
301
 
                             int16_t      yDst,
302
 
                             uint16_t     width,
303
 
                             uint16_t     height);
304
 
void
305
 
fbCompositeOver_x888x8x8888mmx (pixman_op_t      op,
306
 
                                pixman_image_t * pSrc,
307
 
                                pixman_image_t * pMask,
308
 
                                pixman_image_t * pDst,
309
 
                                int16_t      xSrc,
310
 
                                int16_t      ySrc,
311
 
                                int16_t      xMask,
312
 
                                int16_t      yMask,
313
 
                                int16_t      xDst,
314
 
                                int16_t      yDst,
315
 
                                uint16_t     width,
316
 
                                uint16_t     height);
317
 
 
318
 
#endif /* USE_MMX */
319
 
 
320
 
#endif /* _PIXMAN_MMX_H_ */