mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 05:18:31 +00:00
More movement towards colour FAXing
This commit is contained in:
1 parent
3519e0f4c3
commit
3ea625c6ae
19 files changed
+1309
-1023
No files matched your search
@@ -845,6 +845,7 @@ int main(int argc, char *argv[])
|
||||
| T4_SUPPORT_LENGTH_US_LETTER
|
||||
| T4_SUPPORT_LENGTH_US_LEGAL
|
||||
| T4_SUPPORT_LENGTH_UNLIMITED);
|
||||
#if 0
|
||||
t30_set_supported_bilevel_resolutions(t30_state[i],
|
||||
T4_SUPPORT_RESOLUTION_R8_STANDARD
|
||||
| T4_SUPPORT_RESOLUTION_R8_FINE
|
||||
@@ -860,7 +861,36 @@ int main(int argc, char *argv[])
|
||||
| T4_SUPPORT_RESOLUTION_600_600
|
||||
| T4_SUPPORT_RESOLUTION_600_1200
|
||||
| T4_SUPPORT_RESOLUTION_1200_1200);
|
||||
#elif 0
|
||||
t30_set_supported_bilevel_resolutions(t30_state[i],
|
||||
T4_SUPPORT_RESOLUTION_R8_STANDARD
|
||||
| T4_SUPPORT_RESOLUTION_R8_FINE
|
||||
| T4_SUPPORT_RESOLUTION_R8_SUPERFINE
|
||||
| T4_SUPPORT_RESOLUTION_R16_SUPERFINE);
|
||||
#else
|
||||
t30_set_supported_bilevel_resolutions(t30_state[i],
|
||||
T4_SUPPORT_RESOLUTION_200_100
|
||||
| T4_SUPPORT_RESOLUTION_200_200
|
||||
| T4_SUPPORT_RESOLUTION_200_400
|
||||
| T4_SUPPORT_RESOLUTION_300_300
|
||||
| T4_SUPPORT_RESOLUTION_300_600
|
||||
| T4_SUPPORT_RESOLUTION_400_400
|
||||
| T4_SUPPORT_RESOLUTION_400_800
|
||||
| T4_SUPPORT_RESOLUTION_600_600
|
||||
| T4_SUPPORT_RESOLUTION_600_1200
|
||||
| T4_SUPPORT_RESOLUTION_1200_1200);
|
||||
#endif
|
||||
#if 1
|
||||
t30_set_supported_colour_resolutions(t30_state[i], 0);
|
||||
#else
|
||||
t30_set_supported_colour_resolutions(t30_state[i],
|
||||
T4_SUPPORT_RESOLUTION_100_100
|
||||
| T4_SUPPORT_RESOLUTION_200_200
|
||||
| T4_SUPPORT_RESOLUTION_300_300
|
||||
| T4_SUPPORT_RESOLUTION_400_400
|
||||
| T4_SUPPORT_RESOLUTION_600_600
|
||||
| T4_SUPPORT_RESOLUTION_1200_1200);
|
||||
#endif
|
||||
t30_set_supported_output_compressions(t30_state[i], T4_SUPPORT_COMPRESSION_T4_2D);
|
||||
t30_set_ecm_capability(t30_state[i], use_ecm);
|
||||
t30_set_supported_compressions(t30_state[i],
|
||||
|
||||
@@ -331,7 +331,7 @@ int main(int argc, char *argv[])
|
||||
#if 1
|
||||
printf("Testing image_function->compress->decompress->image_function\n");
|
||||
/* Send end gets image from a function */
|
||||
if ((send_state = t4_t6_encode_init(NULL, compression, 1728, row_read_handler, NULL)) == NULL)
|
||||
if ((send_state = t4_t6_encode_init(NULL, compression, 1728, -1, row_read_handler, NULL)) == NULL)
|
||||
{
|
||||
printf("Failed to init T.4/T.6 encoder\n");
|
||||
exit(2);
|
||||
@@ -364,7 +364,7 @@ int main(int argc, char *argv[])
|
||||
t4_t6_encode_set_encoding(send_state, compression);
|
||||
t4_t6_decode_set_encoding(receive_state, compression);
|
||||
|
||||
if (t4_t6_encode_restart(send_state, 1728))
|
||||
if (t4_t6_encode_restart(send_state, 1728, -1))
|
||||
break;
|
||||
if (t4_t6_decode_restart(receive_state, 1728))
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user