From 6ac66a047f4532f58c4c5d4165d0c2d79d5b8a13 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Sat, 25 Jun 2016 00:12:46 +0100 Subject: Use quality level range 0-7 for the encoder, rather than the -4-3 as used in the packet header. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e1d1dd1..465e6f5 100644 --- a/main.c +++ b/main.c @@ -35,7 +35,7 @@ void exit_usage() " -t For testing, drops the specified percentage of packets while decoding.\n" " -c Set the callign. Accepts A-Z 0-9 and space, up to 6 characters.\n" " -i Set the image ID (0-255).\n" - " -q Set the JPEG quality level (-4 to 3, defaults to 0).\n" + " -q Set the JPEG quality level (0 to 7, defaults to 4).\n" " -v Print data for each packet decoded.\n" "\n"); exit(-1); @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) int errors; char callsign[7]; uint8_t image_id = 0; - int8_t quality; + int8_t quality = 4; ssdv_t ssdv; uint8_t pkt[SSDV_PKT_SIZE], b[128], *jpeg; -- cgit v1.2.3