summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPhilip Heron <phil@sanslogic.co.uk>2016-06-25 00:12:46 +0100
committerPhilip Heron <phil@sanslogic.co.uk>2016-06-25 00:12:46 +0100
commit6ac66a047f4532f58c4c5d4165d0c2d79d5b8a13 (patch)
treef2cf195f656179c5bb5cb2a16e5e3b9ddebd9702 /main.c
parentb7128b16bebf38319ab6e9174b8dad5cbdbd19fc (diff)
Use quality level range 0-7 for the encoder, rather than the -4-3 as used in the packet header.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
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;