diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-10-08 01:29:12 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-10-08 01:29:12 -0700 |
commit | a031634bd64c7f30c4ace5ca06a5a47600b42f47 (patch) | |
tree | 919e13ed1ba2e6443fe952288085576322748405 /src/rmd_load_cache.c | |
parent | bd53002a2bf51d48992613601719d180fed09975 (diff) |
*: more cosmetic formatting cleanups
Making things a bit more consistent
Diffstat (limited to 'src/rmd_load_cache.c')
-rw-r--r-- | src/rmd_load_cache.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/rmd_load_cache.c b/src/rmd_load_cache.c index 4fbacfd..b5ac9fb 100644 --- a/src/rmd_load_cache.c +++ b/src/rmd_load_cache.c @@ -73,8 +73,8 @@ static void rmdLoadBlock( int blockno, int width, int height, - int blockwidth) { - + int blockwidth) +{ int block_i = blockno / (width / blockwidth),//place on the grid block_k = blockno % (width / blockwidth); @@ -85,7 +85,8 @@ static void rmdLoadBlock( } //returns number of bytes -static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFile ifp) { +static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFile ifp) +{ if ((ifp != NULL && ucfp != NULL) || (ifp == NULL && ucfp == NULL)) return -1; @@ -95,7 +96,8 @@ static int rmdReadZF(void * buffer, size_t size, size_t nmemb, FILE *ucfp, gzFil return gzread(ifp, buffer, size * nmemb); } -static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile ifp) { +static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile ifp) +{ int index_entry_size = sizeof(u_int32_t); if (frame->header->Ynum > 0) { @@ -161,7 +163,8 @@ static int rmdReadFrame(CachedFrame *frame, FILE *ucfp, gzFile ifp) { return 0; } -static int read_header(ProgData *pdata, gzFile ifp, FILE *ucfp, FrameHeader *fheader) { +static int read_header(ProgData *pdata, gzFile ifp, FILE *ucfp, FrameHeader *fheader) +{ if (!pdata->args.zerocompression) { return gzread(ifp, fheader, sizeof(FrameHeader)) == sizeof(FrameHeader); } else { @@ -169,8 +172,8 @@ static int read_header(ProgData *pdata, gzFile ifp, FILE *ucfp, FrameHeader *fhe } } -void *rmdLoadCache(ProgData *pdata) { - +void *rmdLoadCache(ProgData *pdata) +{ yuv_buffer *yuv = &pdata->enc_data->yuv; gzFile ifp = NULL; FILE *ucfp = NULL; |