From a031634bd64c7f30c4ace5ca06a5a47600b42f47 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 8 Oct 2020 01:29:12 -0700 Subject: *: more cosmetic formatting cleanups Making things a bit more consistent --- src/rmd_yuv_utils.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/rmd_yuv_utils.c') diff --git a/src/rmd_yuv_utils.c b/src/rmd_yuv_utils.c index 609511a..21bce16 100644 --- a/src/rmd_yuv_utils.c +++ b/src/rmd_yuv_utils.c @@ -41,7 +41,8 @@ unsigned char *yblocks, *ublocks, *vblocks; -void rmdMakeMatrices (void) { +void rmdMakeMatrices (void) +{ int i; /* assuming 8-bit precision */ @@ -374,8 +375,8 @@ void rmdUpdateYuvBuffer( yuv_buffer *yuv, int width_tm, int height_tm, int sampling, - int depth) { - + int depth) +{ if (data_back == NULL) { switch (depth) { case 24: @@ -415,8 +416,8 @@ void rmdDummyPointerToYuv( yuv_buffer *yuv, int height_tm, int x_offset, int y_offset, - unsigned char no_pixel) { - + unsigned char no_pixel) +{ int i, k, j = 0; int x_2 = x_tm / 2, y_2 = y_tm / 2, y_width_2 = yuv->y_width/2; @@ -443,7 +444,6 @@ void rmdDummyPointerToYuv( yuv_buffer *yuv, } } } - } static inline unsigned char avg_4_pixels( unsigned char *data_array, @@ -452,7 +452,6 @@ static inline unsigned char avg_4_pixels( unsigned char *data_array, int i_tm, int offset) { - return ((data_array[(k_tm*width_img+i_tm)*RMD_ULONG_SIZE_T+offset]+ data_array[((k_tm-1)*width_img+i_tm)*RMD_ULONG_SIZE_T+offset]+ data_array[(k_tm*width_img+i_tm-1)*RMD_ULONG_SIZE_T+offset]+ @@ -467,8 +466,8 @@ void rmdXFixesPointerToYuv( yuv_buffer *yuv, int height_tm, int x_offset, int y_offset, - int column_discard_stride) { - + int column_discard_stride) +{ unsigned char avg0, avg1, avg2, avg3; int x_2 = x_tm / 2, y_2 = y_tm / 2; -- cgit v1.2.1