summaryrefslogtreecommitdiff
path: root/src/rmd_yuv_utils.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-10-08 01:29:12 -0700
commita031634bd64c7f30c4ace5ca06a5a47600b42f47 (patch)
tree919e13ed1ba2e6443fe952288085576322748405 /src/rmd_yuv_utils.c
parentbd53002a2bf51d48992613601719d180fed09975 (diff)
*: more cosmetic formatting cleanups
Making things a bit more consistent
Diffstat (limited to 'src/rmd_yuv_utils.c')
-rw-r--r--src/rmd_yuv_utils.c17
1 files changed, 8 insertions, 9 deletions
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;
© All Rights Reserved