summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-14 08:05:35 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-14 08:05:35 +0000
commit224eb1f58b937cd8b48d0e0944b778b305b23edc (patch)
treef47216f8eb2caf9479b8a58148ae165ecab00e82 /src/tools
parent2e7d262931b6840b77bda76a4b07c67b0f836b10 (diff)
Cleanups and version bump.mame0126u5
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/chdman.c12
-rw-r--r--src/tools/ldverify.c10
2 files changed, 11 insertions, 11 deletions
diff --git a/src/tools/chdman.c b/src/tools/chdman.c
index 04049f4ad3a..cc079f20bce 100644
--- a/src/tools/chdman.c
+++ b/src/tools/chdman.c
@@ -611,7 +611,7 @@ static avi_error read_avi_frame(avi_file *avi, UINT32 framenum, UINT32 first_sam
if (avierr != AVIERR_NONE)
goto cleanup;
}
-
+
/* build the fake bitmap */
*avconfig->video = *fullbitmap;
if (interlaced)
@@ -851,7 +851,7 @@ static int do_createav(int argc, char *argv[], int param)
goto cleanup;
}
avconfig.video = &fakebitmap;
-
+
/* allocate audio buffers */
avconfig.channels = channels;
for (chnum = 0; chnum < channels; chnum++)
@@ -1474,7 +1474,7 @@ static int do_extractav(int argc, char *argv[], int param)
goto cleanup;
}
avconfig.video = &fakebitmap;
-
+
/* allocate audio buffers */
avconfig.maxsamples = ((UINT64)rate * 1000000 + fps_times_1million - 1) / fps_times_1million;
avconfig.actsamples = &numsamples;
@@ -1527,7 +1527,7 @@ static int do_extractav(int argc, char *argv[], int param)
{
/* progress */
progress(framenum == 0, "Extracting hunk %d/%d... \r", framenum, numframes);
-
+
/* set up the fake bitmap for this frame */
*avconfig.video = *fullbitmap;
if (interlaced)
@@ -1536,7 +1536,7 @@ static int do_extractav(int argc, char *argv[], int param)
avconfig.video->rowpixels *= 2;
avconfig.video->height /= 2;
}
-
+
/* configure the decompressor for this frame */
chd_codec_config(chd, AV_CODEC_DECOMPRESS_CONFIG, &avconfig);
@@ -1555,7 +1555,7 @@ static int do_extractav(int argc, char *argv[], int param)
if (avierr != AVIERR_NONE)
goto cleanup;
}
-
+
/* write video */
if (!interlaced || (firstframe + framenum) % 2 == 1)
{
diff --git a/src/tools/ldverify.c b/src/tools/ldverify.c
index 769c933faf5..8aea954576f 100644
--- a/src/tools/ldverify.c
+++ b/src/tools/ldverify.c
@@ -458,7 +458,7 @@ static void verify_video(int frame, bitmap_t *bitmap)
}
}
}
-
+
/* now examine the active video signal */
pixels = 0;
for (y = 22*2 + fieldnum; y < bitmap->height; y += 2)
@@ -467,7 +467,7 @@ static void verify_video(int frame, bitmap_t *bitmap)
pixelhisto[*BITMAP_ADDR16(bitmap, y, x) >> 8]++;
pixels += 720 - 16 - 16;
}
-
+
/* remove the top/bottom 0.1% */
remaining = pixels / 1000;
for (minval = 0; remaining >= 0; minval++)
@@ -475,11 +475,11 @@ static void verify_video(int frame, bitmap_t *bitmap)
remaining = pixels / 1000;
for (maxval = 255; remaining >= 0; maxval--)
remaining -= pixelhisto[maxval];
-
+
/* update the overall min/max */
video_min_overall = MIN(minval, video_min_overall);
video_max_overall = MAX(maxval, video_max_overall);
-
+
/* track low fields */
if (minval < 16)
{
@@ -534,7 +534,7 @@ static void verify_video_final(int frame, bitmap_t *bitmap)
if (!video_saw_leadout)
printf("Track %6d.%d: never saw any lead-out (WARNING)\n", field / fields_per_frame, 0);
- /* any remaining high/low reports? */
+ /* any remaining high/low reports? */
if (video_num_low_fields > 0)
printf("%6d.%d-%6d.%d: active video signal level low for %d fields (WARNING)\n", video_first_low_frame, video_first_low_field, frame, 0, video_num_low_fields);
if (video_num_high_fields > 0)