diff --git a/ssdv.c b/ssdv.c index d0a5994..7817e39 100644 --- a/ssdv.c +++ b/ssdv.c @@ -36,22 +36,22 @@ enum { } jpeg_marker_t; /* APP0 header data */ -static const uint8_t const app0[14] = { +static uint8_t const app0[14] = { 0x4A,0x46,0x49,0x46,0x00,0x01,0x01,0x01,0x00,0x48,0x00,0x48,0x00,0x00, }; /* SOS header data */ -static const uint8_t const sos[10] = { +static uint8_t const sos[10] = { 0x03,0x01,0x00,0x02,0x11,0x03,0x11,0x00,0x3F,0x00, }; /* Quantisation table scaling factors for each quality level 0-7 */ -static const uint16_t const dqt_scales[8] = { +static uint16_t const dqt_scales[8] = { 5000, 357, 172, 116, 100, 58, 28, 0 }; /* Quantisation tables */ -static const uint8_t const std_dqt0[65] = { +static uint8_t const std_dqt0[65] = { 0x00,0x10,0x0C,0x0C,0x0E,0x0C,0x0A,0x10,0x0E,0x0E,0x0E,0x12,0x12,0x10,0x14,0x18, 0x28,0x1A,0x18,0x16,0x16,0x18,0x32,0x24,0x26,0x1E,0x28,0x3A,0x34,0x3E,0x3C,0x3A, 0x34,0x38,0x38,0x40,0x48,0x5C,0x4E,0x40,0x44,0x58,0x46,0x38,0x38,0x50,0x6E,0x52, @@ -59,7 +59,7 @@ static const uint8_t const std_dqt0[65] = { 0x64, }; -static const uint8_t const std_dqt1[65] = { +static uint8_t const std_dqt1[65] = { 0x01,0x12,0x12,0x12,0x16,0x16,0x16,0x30,0x1A,0x1A,0x30,0x64,0x42,0x38,0x42,0x64, 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64, 0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64,0x64, @@ -68,17 +68,17 @@ static const uint8_t const std_dqt1[65] = { }; /* Standard Huffman tables */ -static const uint8_t std_dht00[29] = { +static uint8_t const std_dht00[29] = { 0x00,0x00,0x01,0x05,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, }; -static const uint8_t std_dht01[29] = { +static uint8_t const std_dht01[29] = { 0x01,0x00,0x03,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00, 0x00,0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B, }; -static const uint8_t std_dht10[179] = { +static uint8_t const std_dht10[179] = { 0x10,0x00,0x02,0x01,0x03,0x03,0x02,0x04,0x03,0x05,0x05,0x04,0x04,0x00,0x00,0x01, 0x7D,0x01,0x02,0x03,0x00,0x04,0x11,0x05,0x12,0x21,0x31,0x41,0x06,0x13,0x51,0x61, 0x07,0x22,0x71,0x14,0x32,0x81,0x91,0xA1,0x08,0x23,0x42,0xB1,0xC1,0x15,0x52,0xD1, @@ -93,7 +93,7 @@ static const uint8_t std_dht10[179] = { 0xF8,0xF9,0xFA, }; -static const uint8_t std_dht11[179] = { +static uint8_t const std_dht11[179] = { 0x11,0x00,0x02,0x01,0x02,0x04,0x04,0x03,0x04,0x07,0x05,0x04,0x04,0x00,0x01,0x02, 0x77,0x00,0x01,0x02,0x03,0x11,0x04,0x05,0x21,0x31,0x06,0x12,0x41,0x51,0x07,0x61, 0x71,0x13,0x22,0x32,0x81,0x08,0x14,0x42,0x91,0xA1,0xB1,0xC1,0x09,0x23,0x33,0x52,