• Home
  • Raw
  • Download

Lines Matching refs:sample

80 static void PointSample(unsigned sample[4], const unsigned * data, const unsigned index)  in PointSample()
83 *sample = *(data + index); in PointSample()
86 *sample = *(data + index); in PointSample()
87 *sample |= 0xff000000; in PointSample()
91 sample[0] = *((const unsigned short *)data + index); in PointSample()
92 sample[1] = (sample[0] & 0x7e0) << 5; in PointSample()
93 sample[2] = (sample[0] & 0xf800) << 8; in PointSample()
94 sample[0] = (sample[0] & 0x1f) << 3; in PointSample()
96 sample[0] |= sample[0] >> 5; in PointSample()
97 sample[1] = (sample[1] | (sample[1] >> 6)) & 0xff00; in PointSample()
98 sample[2] = (sample[2] | (sample[2] >> 5)) & 0xff0000; in PointSample()
100 sample[0] |= sample[1]; in PointSample()
101 sample[0] |= sample[2]; in PointSample()
102 sample[0] |= 0xff000000; in PointSample()
105 sample[0] = 0xff00ffff; in PointSample()
139 static void tex2d(unsigned sample[4], const float tex_coord[4], const unsigned sampler) in tex2d()
150 PointSample<format>(sample, data, y0 * width + x0); in tex2d()
151 sample[1] = (sample[0] & 0xff00) >> 8; in tex2d()
152 sample[2] = (sample[0] & 0xff0000) >> 16; in tex2d()
153 sample[3] = (sample[0] & 0xff000000) >> 24; in tex2d()
154 sample[0] &= 0xff; in tex2d()
171 Lerp(samples + 0, samples + 3, yLerp, (Vec4<int> *)sample); in tex2d()
177 sample[0] = (sample[3] << 24) | (sample[2] << 16) | (sample[1] << 8) | sample[0]; in tex2d()
182 sample[0] <<= 8; sample[1] <<= 8; sample[2] <<= 8; sample[3] <<= 8; in tex2d()
186 float * fsample = (float *)sample; in tex2d()
187 fsample[0] = sample[0] / 255.0f; fsample[1] = sample[1] / 255.0f; in tex2d()
188 fsample[2] = sample[2] / 255.0f; fsample[3] = sample[3] / 255.0f; in tex2d()
193 void texcube(unsigned sample[4], const float tex_coord[4], const unsigned sampler) in texcube()
259 PointSample<format>(sample, data, y0 * width + x0); in texcube()
260 sample[1] = (sample[0] & 0xff00) >> 8; in texcube()
261 sample[2] = (sample[0] & 0xff0000) >> 16; in texcube()
262 sample[3] = (sample[0] & 0xff000000) >> 24; in texcube()
263 sample[0] &= 0xff; in texcube()
280 Lerp(samples + 0, samples + 3, yLerp, (Vec4<int> *)sample); in texcube()
286 sample[0] = (sample[3] << 24) | (sample[2] << 16) | (sample[1] << 8) | sample[0]; in texcube()
291 sample[0] <<= 8; sample[1] <<= 8; sample[2] <<= 8; sample[3] <<= 8; in texcube()
295 float * fsample = (float *)sample; in texcube()
296 fsample[0] = sample[0] / 255.0f; fsample[1] = sample[1] / 255.0f; in texcube()
297 fsample[2] = sample[2] / 255.0f; fsample[3] = sample[3] / 255.0f; in texcube()
339 void (* function)(unsigned sample[4], const float tex_coord[4], const unsigned int tex_id);