| 635 | */ |
| 636 | |
| 637 | GLOBAL(void) |
| 638 | jinit_input_controller (j_decompress_ptr cinfo) |
| 639 | { |
| 640 | my_inputctl_ptr inputctl; |
| 641 | |
| 642 | /* Create subobject in permanent pool */ |
| 643 | inputctl = (my_inputctl_ptr) (*cinfo->mem->alloc_small) |
| 644 | ((j_common_ptr) cinfo, JPOOL_PERMANENT, SIZEOF(my_input_controller)); |
| 645 | cinfo->inputctl = &inputctl->pub; |
| 646 | /* Initialize method pointers */ |
| 647 | inputctl->pub.consume_input = consume_markers; |
| 648 | inputctl->pub.reset_input_controller = reset_input_controller; |
| 649 | inputctl->pub.start_input_pass = start_input_pass; |
| 650 | inputctl->pub.finish_input_pass = finish_input_pass; |
| 651 | /* Initialize state: can't use reset_input_controller since we don't |
| 652 | * want to try to reset other modules yet. |
| 653 | */ |
| 654 | inputctl->pub.has_multiple_scans = FALSE; /* "unknown" would be better */ |
| 655 | inputctl->pub.eoi_reached = FALSE; |
| 656 | inputctl->inheaders = 1; |
| 657 | } |
no outgoing calls
no test coverage detected