MCPcopy Create free account
hub / github.com/davisking/dlib / jinit_input_controller

Function jinit_input_controller

dlib/external/libjpeg/jdinput.c:637–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635 */
636
637GLOBAL(void)
638jinit_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}

Callers 1

jpeg_CreateDecompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected