src/video/SDL_yuv.c
changeset 12201 8bdc4d340419
parent 11811 5d94cb6b24d3
child 12242 df7260f149f2
     1.1 --- a/src/video/SDL_yuv.c	Sat Aug 18 17:23:40 2018 -0400
     1.2 +++ b/src/video/SDL_yuv.c	Mon Sep 24 11:49:25 2018 -0700
     1.3 @@ -89,10 +89,10 @@
     1.4  }
     1.5  
     1.6  static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, int yuv_pitch,
     1.7 -	                    const Uint8 **y, const Uint8 **u, const Uint8 **v, Uint32 *y_stride, Uint32 *uv_stride)
     1.8 +                        const Uint8 **y, const Uint8 **u, const Uint8 **v, Uint32 *y_stride, Uint32 *uv_stride)
     1.9  {
    1.10 -	const Uint8 *planes[3] = { NULL, NULL, NULL };
    1.11 -	int pitches[3] = { 0, 0, 0 };
    1.12 +    const Uint8 *planes[3] = { NULL, NULL, NULL };
    1.13 +    int pitches[3] = { 0, 0, 0 };
    1.14  
    1.15      switch (format) {
    1.16      case SDL_PIXELFORMAT_YV12:
    1.17 @@ -180,10 +180,10 @@
    1.18  
    1.19  static SDL_bool yuv_rgb_sse(
    1.20      Uint32 src_format, Uint32 dst_format,
    1.21 -	Uint32 width, Uint32 height, 
    1.22 -	const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, 
    1.23 -	Uint8 *rgb, Uint32 rgb_stride, 
    1.24 -	YCbCrType yuv_type)
    1.25 +    Uint32 width, Uint32 height, 
    1.26 +    const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, 
    1.27 +    Uint8 *rgb, Uint32 rgb_stride, 
    1.28 +    YCbCrType yuv_type)
    1.29  {
    1.30  #ifdef __SSE2__
    1.31      if (!SDL_HasSSE2()) {
    1.32 @@ -289,10 +289,10 @@
    1.33  
    1.34  static SDL_bool yuv_rgb_std(
    1.35      Uint32 src_format, Uint32 dst_format,
    1.36 -	Uint32 width, Uint32 height, 
    1.37 -	const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, 
    1.38 -	Uint8 *rgb, Uint32 rgb_stride, 
    1.39 -	YCbCrType yuv_type)
    1.40 +    Uint32 width, Uint32 height, 
    1.41 +    const Uint8 *y, const Uint8 *u, const Uint8 *v, Uint32 y_stride, Uint32 uv_stride, 
    1.42 +    Uint8 *rgb, Uint32 rgb_stride, 
    1.43 +    YCbCrType yuv_type)
    1.44  {
    1.45      if (src_format == SDL_PIXELFORMAT_YV12 ||
    1.46          src_format == SDL_PIXELFORMAT_IYUV) {
    1.47 @@ -395,7 +395,7 @@
    1.48           Uint32 src_format, const void *src, int src_pitch,
    1.49           Uint32 dst_format, void *dst, int dst_pitch)
    1.50  {
    1.51 -	const Uint8 *y = NULL;
    1.52 +    const Uint8 *y = NULL;
    1.53      const Uint8 *u = NULL;
    1.54      const Uint8 *v = NULL;
    1.55      Uint32 y_stride = 0;
    1.56 @@ -553,7 +553,7 @@
    1.57              Uint32 y_stride, uv_stride, y_skip, uv_skip;
    1.58  
    1.59              GetYUVPlanes(width, height, dst_format, dst, dst_pitch,
    1.60 -	                     (const Uint8 **)&plane_y, (const Uint8 **)&plane_u, (const Uint8 **)&plane_v,
    1.61 +                         (const Uint8 **)&plane_y, (const Uint8 **)&plane_u, (const Uint8 **)&plane_v,
    1.62                           &y_stride, &uv_stride);
    1.63              plane_interleaved_uv = (plane_y + height * y_stride);
    1.64              y_skip = (y_stride - width);