summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-11 08:36:26 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:42 -0700
commitae47428ca9432e3955b324b60ce8665f0990269a (patch)
tree489bebbfe61d3399bb39b8a2e7c50639cbd224d6
parent53df2e574f516be7e26ec1fb5de6f1fc3a374c57 (diff)
cache: more formatting cleanups
nothing functional changed
-rw-r--r--recordmydesktop/src/rmd_cache.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index 2c4e9a2..2d7d8d5 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -132,8 +132,8 @@ int rmdPurgeCache(CacheData *cache_data_t, int sound) {
}
void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_data_t) {
- int width, height, offset_x, offset_y, pid;
- char pidbuf[8];
+ int width, height, offset_x, offset_y, pid;
+ char pidbuf[8];
//we set the buffer only since there's
//no need to initialize the encoder from now.
@@ -144,16 +144,16 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat
(pdata)->enc_data = enc_data_t;
- enc_data_t->yuv.y = (unsigned char *)malloc(height*width);
- enc_data_t->yuv.u = (unsigned char *)malloc(height*width/4);
- enc_data_t->yuv.v = (unsigned char *)malloc(height*width/4);
+ enc_data_t->yuv.y = (unsigned char *)malloc(height * width);
+ enc_data_t->yuv.u = (unsigned char *)malloc(height * width / 4);
+ enc_data_t->yuv.v = (unsigned char *)malloc(height * width / 4);
enc_data_t->yuv.y_width = width;
enc_data_t->yuv.y_height = height;
enc_data_t->yuv.y_stride = width;
- enc_data_t->yuv.uv_width = width/2;
- enc_data_t->yuv.uv_height = height/2;
- enc_data_t->yuv.uv_stride = width/2;
+ enc_data_t->yuv.uv_width = width / 2;
+ enc_data_t->yuv.uv_height = height / 2;
+ enc_data_t->yuv.uv_stride = width / 2;
enc_data_t->x_offset = offset_x;
enc_data_t->y_offset = offset_y;
@@ -220,5 +220,3 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat
exit(13);
}
}
-
-
© All Rights Reserved