summaryrefslogtreecommitdiff
path: root/clutter-gst/shaders/I420.h
blob: a3e35c4ad5ebe7ac51872420828e8f9ddc324d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * This file was generated by pso2h.
 */

#ifndef __I420_H__
#define __I420_H__

/*
 * This define is the size of the shader in bytes.  More precisely it's the
 * sum of strlen() of every string in the array.
 */
#define I420_FP_SZ    572

static const char *I420_fp[] =
{
  "!!ARBfp1.0\n",
  "PARAM c[2] = { { 1.1640625, 0.5, 2.015625, 0.0625 },\n",
  "{ 0.390625, 0, 1.5976562, 0.8125 } };\n",
  "TEMP R0;\n",
  "TEMP R1;\n",
  "TEX R1.w, fragment.texcoord[0], texture[0], 2D;\n",
  "ADD R0.x, R1.w, -c[0].w;\n",
  "TEX R0.w, fragment.texcoord[0], texture[2], 2D;\n",
  "TEX R1.w, fragment.texcoord[0], texture[1], 2D;\n",
  "MUL R0.x, R0, c[0];\n",
  "ADD R0.y, R1.w, -c[0];\n",
  "MAD R0.z, R0.y, c[0], R0.x;\n",
  "ADD R0.w, R0, -c[0].y;\n",
  "MAD R0.y, -R0, c[1].x, R0.x;\n",
  "MAD R0.x, R0.w, c[1].z, R0;\n",
  "MAD R0.w, -R0, c[1], R0.y;\n",
  "MUL result.color.xyz, fragment.color.primary.w, R0.xwzy;\n",
  "MOV result.color.w, fragment.color.primary;\n",
  "END\n",
  NULL
};

#endif