Lines Matching refs:width
46 SDL_YUV_CONVERSION_MODE SDL_GetYUVConversionModeForResolution(int width, int height) in SDL_GetYUVConversionModeForResolution() argument
61 static int GetYUVConversionType(int width, int height, YCbCrType *yuv_type) in GetYUVConversionType() argument
63 switch (SDL_GetYUVConversionModeForResolution(width, height)) { in GetYUVConversionType()
94 static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, int yuv_pitch, in GetYUVPlanes() argument
186 Uint32 width, Uint32 height, in yuv_rgb_sse() argument
201 … yuv420_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
204 … yuv420_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
208 … yuv420_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
212 … yuv420_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
216 … yuv420_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
220 … yuv420_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
233 … yuv422_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
236 … yuv422_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
240 … yuv422_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
244 … yuv422_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
248 … yuv422_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
252 … yuv422_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
264 … yuvnv12_rgb565_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
267 … yuvnv12_rgb24_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
271 … yuvnv12_rgba_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
275 … yuvnv12_bgra_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
279 … yuvnv12_argb_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
283 … yuvnv12_abgr_sseu(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_sse()
295 Uint32 width, Uint32 height, in yuv_rgb_std() argument
305 … yuv420_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
308 … yuv420_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
312 yuv420_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
316 yuv420_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
320 yuv420_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
324 yuv420_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
337 … yuv422_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
340 … yuv422_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
344 yuv422_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
348 yuv422_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
352 yuv422_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
356 yuv422_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
368 … yuvnv12_rgb565_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
371 … yuvnv12_rgb24_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
375 … yuvnv12_rgba_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
379 … yuvnv12_bgra_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
383 … yuvnv12_argb_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
387 … yuvnv12_abgr_std(width, height, y, u, v, y_stride, uv_stride, rgb, rgb_stride, yuv_type); in yuv_rgb_std()
397 SDL_ConvertPixels_YUV_to_RGB(int width, int height, in SDL_ConvertPixels_YUV_to_RGB() argument
408 …if (GetYUVPlanes(width, height, src_format, src, src_pitch, &y, &u, &v, &y_stride, &uv_stride) < 0… in SDL_ConvertPixels_YUV_to_RGB()
412 if (GetYUVConversionType(width, height, &yuv_type) < 0) { in SDL_ConvertPixels_YUV_to_RGB()
416 …if (yuv_rgb_sse(src_format, dst_format, width, height, y, u, v, y_stride, uv_stride, (Uint8*)dst, … in SDL_ConvertPixels_YUV_to_RGB()
420 …if (yuv_rgb_std(src_format, dst_format, width, height, y, u, v, y_stride, uv_stride, (Uint8*)dst, … in SDL_ConvertPixels_YUV_to_RGB()
428 int tmp_pitch = (width * sizeof(Uint32)); in SDL_ConvertPixels_YUV_to_RGB()
436 …ret = SDL_ConvertPixels_YUV_to_RGB(width, height, src_format, src, src_pitch, SDL_PIXELFORMAT_ARGB… in SDL_ConvertPixels_YUV_to_RGB()
443 …ret = SDL_ConvertPixels(width, height, SDL_PIXELFORMAT_ARGB8888, tmp, tmp_pitch, dst_format, dst, … in SDL_ConvertPixels_YUV_to_RGB()
460 SDL_ConvertPixels_ARGB8888_to_YUV(int width, int height, const void *src, int src_pitch, Uint32 dst… in SDL_ConvertPixels_ARGB8888_to_YUV() argument
465 const int width_half = width / 2; in SDL_ConvertPixels_ARGB8888_to_YUV()
466 const int width_remainder = (width & 0x1); in SDL_ConvertPixels_ARGB8888_to_YUV()
493 …t RGB2YUVFactors *cvt = &RGB2YUVFactorTables[SDL_GetYUVConversionModeForResolution(width, height)]; in SDL_ConvertPixels_ARGB8888_to_YUV()
558 GetYUVPlanes(width, height, dst_format, dst, dst_pitch, in SDL_ConvertPixels_ARGB8888_to_YUV()
562 y_skip = (y_stride - width); in SDL_ConvertPixels_ARGB8888_to_YUV()
568 for (i = 0; i < width; i++) { in SDL_ConvertPixels_ARGB8888_to_YUV()
586 uv_skip = (uv_stride - (width + 1)/2); in SDL_ConvertPixels_ARGB8888_to_YUV()
620 uv_skip = (uv_stride - ((width + 1)/2)*2); in SDL_ConvertPixels_ARGB8888_to_YUV()
651 uv_skip = (uv_stride - ((width + 1)/2)*2); in SDL_ConvertPixels_ARGB8888_to_YUV()
689 const int row_size = (4 * ((width + 1) / 2)); in SDL_ConvertPixels_ARGB8888_to_YUV()
786 SDL_ConvertPixels_RGB_to_YUV(int width, int height, in SDL_ConvertPixels_RGB_to_YUV() argument
800 …if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch, (const Uint8 **)&y, (const Uint8 **)&u… in SDL_ConvertPixels_RGB_to_YUV()
804 if (GetYUVConversionType(width, height, &yuv_type) < 0) { in SDL_ConvertPixels_RGB_to_YUV()
808 rgb24_yuv420_std(width, height, src, src_pitch, y, u, v, y_stride, uv_stride, yuv_type); in SDL_ConvertPixels_RGB_to_YUV()
815 …return SDL_ConvertPixels_ARGB8888_to_YUV(width, height, src, src_pitch, dst_format, dst, dst_pitch… in SDL_ConvertPixels_RGB_to_YUV()
822 int tmp_pitch = (width * sizeof(Uint32)); in SDL_ConvertPixels_RGB_to_YUV()
830 …ret = SDL_ConvertPixels(width, height, src_format, src, src_pitch, SDL_PIXELFORMAT_ARGB8888, tmp, … in SDL_ConvertPixels_RGB_to_YUV()
837 …ret = SDL_ConvertPixels_ARGB8888_to_YUV(width, height, tmp, tmp_pitch, dst_format, dst, dst_pitch); in SDL_ConvertPixels_RGB_to_YUV()
844 SDL_ConvertPixels_YUV_to_YUV_Copy(int width, int height, Uint32 format, in SDL_ConvertPixels_YUV_to_YUV_Copy() argument
852 SDL_memcpy(dst, src, width); in SDL_ConvertPixels_YUV_to_YUV_Copy()
859 width = (width + 1) / 2; in SDL_ConvertPixels_YUV_to_YUV_Copy()
864 SDL_memcpy(dst, src, width); in SDL_ConvertPixels_YUV_to_YUV_Copy()
871 width = ((width + 1) / 2)*2; in SDL_ConvertPixels_YUV_to_YUV_Copy()
875 SDL_memcpy(dst, src, width); in SDL_ConvertPixels_YUV_to_YUV_Copy()
885 width = 4 * ((width + 1) / 2); in SDL_ConvertPixels_YUV_to_YUV_Copy()
887 SDL_memcpy(dst, src, width); in SDL_ConvertPixels_YUV_to_YUV_Copy()
898 SDL_ConvertPixels_SwapUVPlanes(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_SwapUVPlanes() argument
901 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_SwapUVPlanes()
954 SDL_ConvertPixels_PackUVPlanes_to_NV(int width, int height, const void *src, int src_pitch, void *d… in SDL_ConvertPixels_PackUVPlanes_to_NV() argument
957 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_PackUVPlanes_to_NV()
1028 SDL_ConvertPixels_SplitNV_to_UVPlanes(int width, int height, const void *src, int src_pitch, void *… in SDL_ConvertPixels_SplitNV_to_UVPlanes() argument
1031 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_SplitNV_to_UVPlanes()
1107 SDL_ConvertPixels_SwapNV(int width, int height, const void *src, int src_pitch, void *dst, int dst_… in SDL_ConvertPixels_SwapNV() argument
1110 const int UVwidth = (width + 1)/2; in SDL_ConvertPixels_SwapNV()
1155 SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height, in SDL_ConvertPixels_Planar2x2_to_Planar2x2() argument
1165 SDL_memcpy(dstY, srcY, width); in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1175 return SDL_ConvertPixels_SwapUVPlanes(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1177 …return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_TRU… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1179 …return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_FAL… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1187 return SDL_ConvertPixels_SwapUVPlanes(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1189 …return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_FAL… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1191 …return SDL_ConvertPixels_PackUVPlanes_to_NV(width, height, src, src_pitch, dst, dst_pitch, SDL_TRU… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1199 …return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_TR… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1201 …return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_FA… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1203 return SDL_ConvertPixels_SwapNV(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1211 …return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_FA… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1213 …return SDL_ConvertPixels_SplitNV_to_UVPlanes(width, height, src, src_pitch, dst, dst_pitch, SDL_TR… in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1215 return SDL_ConvertPixels_SwapNV(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Planar2x2_to_Planar2x2()
1246 SDL_ConvertPixels_YUY2_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_YUY2_to_UYVY() argument
1249 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_YUY2_to_UYVY()
1288 SDL_ConvertPixels_YUY2_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_YUY2_to_YVYU() argument
1291 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_YUY2_to_YVYU()
1330 SDL_ConvertPixels_UYVY_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_UYVY_to_YUY2() argument
1333 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_UYVY_to_YUY2()
1372 SDL_ConvertPixels_UYVY_to_YVYU(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_UYVY_to_YVYU() argument
1375 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_UYVY_to_YVYU()
1414 SDL_ConvertPixels_YVYU_to_YUY2(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_YVYU_to_YUY2() argument
1417 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_YVYU_to_YUY2()
1456 SDL_ConvertPixels_YVYU_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, in… in SDL_ConvertPixels_YVYU_to_UYVY() argument
1459 const int YUVwidth = (width + 1)/2; in SDL_ConvertPixels_YVYU_to_UYVY()
1498 SDL_ConvertPixels_Packed4_to_Packed4(int width, int height, in SDL_ConvertPixels_Packed4_to_Packed4() argument
1506 return SDL_ConvertPixels_YUY2_to_UYVY(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1508 return SDL_ConvertPixels_YUY2_to_YVYU(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1516 return SDL_ConvertPixels_UYVY_to_YUY2(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1518 return SDL_ConvertPixels_UYVY_to_YVYU(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1526 return SDL_ConvertPixels_YVYU_to_YUY2(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1528 return SDL_ConvertPixels_YVYU_to_UYVY(width, height, src, src_pitch, dst, dst_pitch); in SDL_ConvertPixels_Packed4_to_Packed4()
1540 SDL_ConvertPixels_Planar2x2_to_Packed4(int width, int height, in SDL_ConvertPixels_Planar2x2_to_Packed4() argument
1556 if (GetYUVPlanes(width, height, src_format, src, src_pitch, in SDL_ConvertPixels_Planar2x2_to_Packed4()
1561 srcY_pitch_left = (srcY_pitch - width); in SDL_ConvertPixels_Planar2x2_to_Packed4()
1565 srcUV_pitch_left = (srcUV_pitch - 2*((width + 1)/2)); in SDL_ConvertPixels_Planar2x2_to_Packed4()
1568 srcUV_pitch_left = (srcUV_pitch - ((width + 1)/2)); in SDL_ConvertPixels_Planar2x2_to_Packed4()
1571 if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch, in SDL_ConvertPixels_Planar2x2_to_Packed4()
1579 dst_pitch_left = (dstY_pitch - 4*((width + 1)/2)); in SDL_ConvertPixels_Planar2x2_to_Packed4()
1583 for (x = 0; x < (width - 1); x += 2) { in SDL_ConvertPixels_Planar2x2_to_Packed4()
1609 if (x == (width - 1)) { in SDL_ConvertPixels_Planar2x2_to_Packed4()
1648 for (x = 0; x < (width - 1); x += 2) { in SDL_ConvertPixels_Planar2x2_to_Packed4()
1664 if (x == (width - 1)) { in SDL_ConvertPixels_Planar2x2_to_Packed4()
1683 SDL_ConvertPixels_Packed4_to_Planar2x2(int width, int height, in SDL_ConvertPixels_Packed4_to_Planar2x2() argument
1699 if (GetYUVPlanes(width, height, src_format, src, src_pitch, in SDL_ConvertPixels_Packed4_to_Planar2x2()
1706 src_pitch_left = (srcY_pitch - 4*((width + 1)/2)); in SDL_ConvertPixels_Packed4_to_Planar2x2()
1708 if (GetYUVPlanes(width, height, dst_format, dst, dst_pitch, in SDL_ConvertPixels_Packed4_to_Planar2x2()
1714 dstY_pitch_left = (dstY_pitch - width); in SDL_ConvertPixels_Packed4_to_Planar2x2()
1718 dstUV_pitch_left = (dstUV_pitch - 2*((width + 1)/2)); in SDL_ConvertPixels_Packed4_to_Planar2x2()
1721 dstUV_pitch_left = (dstUV_pitch - ((width + 1)/2)); in SDL_ConvertPixels_Packed4_to_Planar2x2()
1726 for (x = 0; x < (width - 1); x += 2) { in SDL_ConvertPixels_Packed4_to_Planar2x2()
1751 if (x == (width - 1)) { in SDL_ConvertPixels_Packed4_to_Planar2x2()
1789 for (x = 0; x < (width - 1); x += 2) { in SDL_ConvertPixels_Packed4_to_Planar2x2()
1805 if (x == (width - 1)) { in SDL_ConvertPixels_Packed4_to_Planar2x2()
1817 SDL_ConvertPixels_YUV_to_YUV(int width, int height, in SDL_ConvertPixels_YUV_to_YUV() argument
1827 …return SDL_ConvertPixels_YUV_to_YUV_Copy(width, height, src_format, src, src_pitch, dst, dst_pitch… in SDL_ConvertPixels_YUV_to_YUV()
1831 …return SDL_ConvertPixels_Planar2x2_to_Planar2x2(width, height, src_format, src, src_pitch, dst_for… in SDL_ConvertPixels_YUV_to_YUV()
1833 …return SDL_ConvertPixels_Packed4_to_Packed4(width, height, src_format, src, src_pitch, dst_format,… in SDL_ConvertPixels_YUV_to_YUV()
1835 …return SDL_ConvertPixels_Planar2x2_to_Packed4(width, height, src_format, src, src_pitch, dst_forma… in SDL_ConvertPixels_YUV_to_YUV()
1837 …return SDL_ConvertPixels_Packed4_to_Planar2x2(width, height, src_format, src, src_pitch, dst_forma… in SDL_ConvertPixels_YUV_to_YUV()