Lines Matching refs:w
33 SDL_SW_CreateYUVTexture(Uint32 format, int w, int h) in SDL_SW_CreateYUVTexture() argument
59 swdata->w = w; in SDL_SW_CreateYUVTexture()
62 const int sz_plane = w * h; in SDL_SW_CreateYUVTexture()
63 const int sz_plane_chroma = ((w + 1) / 2) * ((h + 1) / 2); in SDL_SW_CreateYUVTexture()
64 const int sz_plane_packed = ((w + 1) / 2) * h; in SDL_SW_CreateYUVTexture()
100 swdata->pitches[0] = w; in SDL_SW_CreateYUVTexture()
110 swdata->pitches[0] = ((w + 1) / 2) * 4; in SDL_SW_CreateYUVTexture()
116 swdata->pitches[0] = w; in SDL_SW_CreateYUVTexture()
148 rect->w == swdata->w && rect->h == swdata->h) { in SDL_SW_UpdateYUVTexture()
150 … (swdata->h * swdata->w) + 2* ((swdata->h + 1) /2) * ((swdata->w + 1) / 2)); in SDL_SW_UpdateYUVTexture()
158 dst = swdata->pixels + rect->y * swdata->w + rect->x; in SDL_SW_UpdateYUVTexture()
159 length = rect->w; in SDL_SW_UpdateYUVTexture()
163 dst += swdata->w; in SDL_SW_UpdateYUVTexture()
168 dst = swdata->pixels + swdata->h * swdata->w; in SDL_SW_UpdateYUVTexture()
169 dst += rect->y/2 * ((swdata->w + 1) / 2) + rect->x/2; in SDL_SW_UpdateYUVTexture()
170 length = (rect->w + 1) / 2; in SDL_SW_UpdateYUVTexture()
174 dst += (swdata->w + 1)/2; in SDL_SW_UpdateYUVTexture()
179 dst = swdata->pixels + swdata->h * swdata->w + in SDL_SW_UpdateYUVTexture()
180 ((swdata->h + 1)/2) * ((swdata->w+1) / 2); in SDL_SW_UpdateYUVTexture()
181 dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2; in SDL_SW_UpdateYUVTexture()
182 length = (rect->w + 1) / 2; in SDL_SW_UpdateYUVTexture()
186 dst += (swdata->w + 1)/2; in SDL_SW_UpdateYUVTexture()
202 length = 4 * ((rect->w + 1) / 2); in SDL_SW_UpdateYUVTexture()
213 if (rect->x == 0 && rect->y == 0 && rect->w == swdata->w && rect->h == swdata->h) { in SDL_SW_UpdateYUVTexture()
215 (swdata->h * swdata->w) + 2* ((swdata->h + 1) /2) * ((swdata->w + 1) / 2)); in SDL_SW_UpdateYUVTexture()
224 dst = swdata->pixels + rect->y * swdata->w + rect->x; in SDL_SW_UpdateYUVTexture()
225 length = rect->w; in SDL_SW_UpdateYUVTexture()
229 dst += swdata->w; in SDL_SW_UpdateYUVTexture()
234 dst = swdata->pixels + swdata->h * swdata->w; in SDL_SW_UpdateYUVTexture()
235 dst += 2 * ((rect->y + 1)/2) * ((swdata->w + 1) / 2) + 2 * (rect->x/2); in SDL_SW_UpdateYUVTexture()
236 length = 2 * ((rect->w + 1) / 2); in SDL_SW_UpdateYUVTexture()
240 dst += 2 * ((swdata->w + 1)/2); in SDL_SW_UpdateYUVTexture()
261 dst = swdata->pixels + rect->y * swdata->w + rect->x; in SDL_SW_UpdateYUVTexturePlanar()
262 length = rect->w; in SDL_SW_UpdateYUVTexturePlanar()
266 dst += swdata->w; in SDL_SW_UpdateYUVTexturePlanar()
272 dst = swdata->pixels + swdata->h * swdata->w; in SDL_SW_UpdateYUVTexturePlanar()
274 dst = swdata->pixels + swdata->h * swdata->w + in SDL_SW_UpdateYUVTexturePlanar()
275 ((swdata->h + 1) / 2) * ((swdata->w + 1) / 2); in SDL_SW_UpdateYUVTexturePlanar()
277 dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2; in SDL_SW_UpdateYUVTexturePlanar()
278 length = (rect->w + 1) / 2; in SDL_SW_UpdateYUVTexturePlanar()
282 dst += (swdata->w + 1)/2; in SDL_SW_UpdateYUVTexturePlanar()
288 dst = swdata->pixels + swdata->h * swdata->w; in SDL_SW_UpdateYUVTexturePlanar()
290 dst = swdata->pixels + swdata->h * swdata->w + in SDL_SW_UpdateYUVTexturePlanar()
291 ((swdata->h + 1) / 2) * ((swdata->w + 1) / 2); in SDL_SW_UpdateYUVTexturePlanar()
293 dst += rect->y/2 * ((swdata->w + 1)/2) + rect->x/2; in SDL_SW_UpdateYUVTexturePlanar()
294 length = (rect->w + 1) / 2; in SDL_SW_UpdateYUVTexturePlanar()
298 dst += (swdata->w + 1)/2; in SDL_SW_UpdateYUVTexturePlanar()
313 && (rect->x != 0 || rect->y != 0 || rect->w != swdata->w in SDL_SW_LockYUVTexture()
337 Uint32 target_format, int w, int h, void *pixels, in SDL_SW_CopyYUVToRGB() argument
349 if (srcrect->x || srcrect->y || srcrect->w < swdata->w || srcrect->h < swdata->h) { in SDL_SW_CopyYUVToRGB()
356 } else if ((srcrect->w != w) || (srcrect->h != h)) { in SDL_SW_CopyYUVToRGB()
364 swdata->display->w = w; in SDL_SW_CopyYUVToRGB()
373 SDL_CreateRGBSurfaceFrom(pixels, w, h, bpp, pitch, Rmask, in SDL_SW_CopyYUVToRGB()
384 SDL_CreateRGBSurface(0, swdata->w, swdata->h, bpp, Rmask, in SDL_SW_CopyYUVToRGB()
393 if (SDL_ConvertPixels(swdata->w, swdata->h, swdata->format, in SDL_SW_CopyYUVToRGB()