summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rmd_cache_frame.c12
-rw-r--r--src/rmd_get_frames.c4
-rw-r--r--src/rmd_jack.c6
-rw-r--r--src/rmd_rectinsert.c2
4 files changed, 12 insertions, 12 deletions
diff --git a/src/rmd_cache_frame.c b/src/rmd_cache_frame.c
index 9629144..f353c79 100644
--- a/src/rmd_cache_frame.c
+++ b/src/rmd_cache_frame.c
@@ -72,7 +72,7 @@ static int rmdFlushBlock(
for (int j = 0;j < blockwidth; j++) {
- for(int i = 0;i < blockwidth; i++)
+ for (int i = 0;i < blockwidth; i++)
(*out_buf_reg++) = (*buf_reg++);
out_buffer_bytes += blockwidth;
@@ -129,7 +129,7 @@ void *rmdCacheImageBuffer(ProgData *pdata)
//find and flush different blocks
if (firstrun) {
firstrun = 0;
- for(int j = 0; j < blocknum_x * blocknum_y; j++) {
+ for (int j = 0; j < blocknum_x * blocknum_y; j++) {
yblocks[ynum] = 1;
y_short_blocks[ynum] = j;
ynum++;
@@ -142,7 +142,7 @@ void *rmdCacheImageBuffer(ProgData *pdata)
}
} else {
/**COMPRESS ARRAYS*/
- for(int j = 0; j < blocknum_x * blocknum_y; j++) {
+ for (int j = 0; j < blocknum_x * blocknum_y; j++) {
if (yblocks[j]) {
y_short_blocks[ynum] = j;
ynum++;
@@ -187,7 +187,7 @@ void *rmdCacheImageBuffer(ProgData *pdata)
//flush the blocks for each buffer
if (ynum) {
- for(int j = 0; j < ynum; j++)
+ for (int j = 0; j < ynum; j++)
nbytes += rmdFlushBlock(pdata->enc_data->yuv.y,
y_short_blocks[j],
pdata->enc_data->yuv.y_width,
@@ -198,7 +198,7 @@ void *rmdCacheImageBuffer(ProgData *pdata)
}
if (unum) {
- for(int j = 0; j < unum; j++)
+ for (int j = 0; j < unum; j++)
nbytes += rmdFlushBlock(pdata->enc_data->yuv.u,
u_short_blocks[j],
pdata->enc_data->yuv.uv_width,
@@ -209,7 +209,7 @@ void *rmdCacheImageBuffer(ProgData *pdata)
}
if (vnum) {
- for(int j = 0; j < vnum; j++)
+ for (int j = 0; j < vnum; j++)
nbytes += rmdFlushBlock(pdata->enc_data->yuv.v,
v_short_blocks[j],
pdata->enc_data->yuv.uv_width,
diff --git a/src/rmd_get_frames.c b/src/rmd_get_frames.c
index bf7ff84..af52c3f 100644
--- a/src/rmd_get_frames.c
+++ b/src/rmd_get_frames.c
@@ -87,8 +87,8 @@ static void clip_dummy_pointer_area(XRectangle *area, XRectangle *clip, XRectang
register u_int##__depth__##_t *datapi = \
((u_int##__depth__##_t *)data) + y_tm * buffer_width + x_tm; \
\
- for(int k = 0; k < height_tm; k++) { \
- for(int i = 0; i < width_tm; i++) { \
+ for (int k = 0; k < height_tm; k++) { \
+ for (int i = 0; i < width_tm; i++) { \
*datapi += 1; \
datapi++; \
} \
diff --git a/src/rmd_jack.c b/src/rmd_jack.c
index 6002df0..e1a5a0e 100644
--- a/src/rmd_jack.c
+++ b/src/rmd_jack.c
@@ -53,7 +53,7 @@ static int rmdJackCapture(jack_nframes_t nframes, void *jdata_t)
if (!jdata->pdata->running || jdata->pdata->paused || !jdata->capture_started)
return 0;
- for(int i = 0; i < jdata->nports; i++)
+ for (int i = 0; i < jdata->nports; i++)
jdata->portbuf[i] = jack_port_get_buffer(jdata->ports[i], nframes);
@@ -61,7 +61,7 @@ static int rmdJackCapture(jack_nframes_t nframes, void *jdata_t)
//vorbis analysis buffer wants uninterleaved data
//so we are simply placing the buffers for every channel
//sequentially on the ringbuffer
- for(int i = 0; i < jdata->nports; i++)
+ for (int i = 0; i < jdata->nports; i++)
jack_ringbuffer_write( jdata->sound_buffer,
(void *)(jdata->portbuf[i]),
nframes *
@@ -87,7 +87,7 @@ static int rmdSetupPorts(JackData *jdata)
jdata->portbuf = malloc(sizeof(jack_default_audio_sample_t *) * jdata->nports);
memset(jdata->portbuf, 0, sizeof(jack_default_audio_sample_t *) * jdata->nports);
- for(int i = 0; i < jdata->nports; i++) {
+ for (int i = 0; i < jdata->nports; i++) {
char name[64];//recordMyDesktop:input_n<64 is enough for full name
char num[8];
strcpy(name, "input_");
diff --git a/src/rmd_rectinsert.c b/src/rmd_rectinsert.c
index 537967e..f32f347 100644
--- a/src/rmd_rectinsert.c
+++ b/src/rmd_rectinsert.c
@@ -399,7 +399,7 @@ int rmdRectInsert(RectArea **root, const XRectangle *xrect)
newnode1->next=NULL;
}
} else {
- for(i=0;i<nrects;i++) {
+ for (i=0;i<nrects;i++) {
if (xrect_return[i].width > 0 &&
xrect_return[i].height > 0)
total_insertions+=
© All Rights Reserved