Lines Matching refs:Uint8
23 static void RGBtoYUV(Uint8 * rgb, int *yuv, SDL_YUV_CONVERSION_MODE mode, int monochrome, int lumin… in RGBtoYUV()
55 Y = (Uint8)SDL_floorf((219*(L-Z)/S + 16) + 0.5f); in RGBtoYUV()
56 U = (Uint8)clip3(0, 255, SDL_floorf((112.0f*(B-L) / ((1.0f-Kb)*S) + 128) + 0.5f)); in RGBtoYUV()
57 V = (Uint8)clip3(0, 255, SDL_floorf((112.0f*(R-L) / ((1.0f-Kr)*S) + 128) + 0.5f)); in RGBtoYUV()
59 yuv[0] = (Uint8)Y; in RGBtoYUV()
60 yuv[1] = (Uint8)U; in RGBtoYUV()
61 yuv[2] = (Uint8)V; in RGBtoYUV()
76 static void ConvertRGBtoPlanar2x2(Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, S… in ConvertRGBtoPlanar2x2()
80 Uint8 *Y1, *Y2, *U, *V; in ConvertRGBtoPlanar2x2()
81 Uint8 *rgb1, *rgb2; in ConvertRGBtoPlanar2x2()
120 *Y1++ = (Uint8)yuv[0][0]; in ConvertRGBtoPlanar2x2()
124 *Y1++ = (Uint8)yuv[1][0]; in ConvertRGBtoPlanar2x2()
128 *Y2++ = (Uint8)yuv[2][0]; in ConvertRGBtoPlanar2x2()
132 *Y2++ = (Uint8)yuv[3][0]; in ConvertRGBtoPlanar2x2()
134 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[1][1] + yuv[2][1] + yuv[3][1])/4.0f + 0.5f); in ConvertRGBtoPlanar2x2()
137 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[1][2] + yuv[2][2] + yuv[3][2])/4.0f + 0.5f); in ConvertRGBtoPlanar2x2()
144 *Y1++ = (Uint8)yuv[0][0]; in ConvertRGBtoPlanar2x2()
148 *Y2++ = (Uint8)yuv[2][0]; in ConvertRGBtoPlanar2x2()
150 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[2][1])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
153 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[2][2])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
166 *Y1++ = (Uint8)yuv[0][0]; in ConvertRGBtoPlanar2x2()
170 *Y1++ = (Uint8)yuv[1][0]; in ConvertRGBtoPlanar2x2()
172 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[1][1])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
175 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[1][2])/2.0f + 0.5f); in ConvertRGBtoPlanar2x2()
181 *Y1++ = (Uint8)yuv[0][0]; in ConvertRGBtoPlanar2x2()
183 *U = (Uint8)yuv[0][1]; in ConvertRGBtoPlanar2x2()
186 *V = (Uint8)yuv[0][2]; in ConvertRGBtoPlanar2x2()
192 static void ConvertRGBtoPacked4(Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL… in ConvertRGBtoPacked4()
196 Uint8 *Y1, *Y2, *U, *V; in ConvertRGBtoPacked4()
197 Uint8 *rgb; in ConvertRGBtoPacked4()
230 *Y1 = (Uint8)yuv[0][0]; in ConvertRGBtoPacked4()
235 *Y2 = (Uint8)yuv[1][0]; in ConvertRGBtoPacked4()
238 *U = (Uint8)SDL_floorf((yuv[0][1] + yuv[1][1])/2.0f + 0.5f); in ConvertRGBtoPacked4()
241 *V = (Uint8)SDL_floorf((yuv[0][2] + yuv[1][2])/2.0f + 0.5f); in ConvertRGBtoPacked4()
248 *Y2 = *Y1 = (Uint8)yuv[0][0]; in ConvertRGBtoPacked4()
252 *U = (Uint8)yuv[0][1]; in ConvertRGBtoPacked4()
255 *V = (Uint8)yuv[0][2]; in ConvertRGBtoPacked4()
262 SDL_bool ConvertRGBtoYUV(Uint32 format, Uint8 *src, int pitch, Uint8 *out, int w, int h, SDL_YUV_CO… in ConvertRGBtoYUV()