From 90ecb35a99a136467ab5ae9e090434cb88833743 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Thu, 26 Jul 2012 10:47:02 +0200 Subject: Add --print-num-rows and fix debug output --- src/ufodecode.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/ufodecode.c') diff --git a/src/ufodecode.c b/src/ufodecode.c index 58d2a68..31ac7a0 100644 --- a/src/ufodecode.c +++ b/src/ufodecode.c @@ -299,10 +299,6 @@ ufo_decode_frame_channels_v4(UfoDecoder *decoder, int header = (info >> 30) & 0x03; const int bpp = (info >> 16) & 0x0F; CHECK_FLAG("raw header magick", header == 2, header); - - /* XXX: rows are numbered absolutely so this becomes unnecessary */ - /* CHECK_FLAG("row number, only %i rows requested", row < num_rows, row, num_rows); */ - CHECK_FLAG("pixel size, only 10 bits are supported", bpp == 10, bpp); CHECK_FLAG("channel, limited by %zu output channels", channel < channels_per_row, channel, channels_per_row); #endif @@ -581,7 +577,7 @@ size_t ufo_decoder_decode_frame(UfoDecoder *decoder, if ((meta->output_mode != IPECAMERA_MODE_4_CHAN_IO) && (meta->output_mode != IPECAMERA_MODE_16_CHAN_IO)) { #ifdef DEBUG - fprintf(stderr, "Output mode 0x%lx is not supported\n", meta->output_mode); + fprintf(stderr, "Output mode 0x%x is not supported\n", meta->output_mode); #endif return EILSEQ; } -- cgit v1.2.3