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

Function transencode_coef_controller

dlib/external/libjpeg/jctrans.c:382–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 */
381
382LOCAL(void)
383transencode_coef_controller (j_compress_ptr cinfo,
384 jvirt_barray_ptr * coef_arrays)
385{
386 my_coef_ptr coef;
387
388 coef = (my_coef_ptr) (*cinfo->mem->alloc_small)
389 ((j_common_ptr) cinfo, JPOOL_IMAGE, SIZEOF(my_coef_controller));
390 cinfo->coef = &coef->pub;
391 coef->pub.start_pass = start_pass_coef;
392 coef->pub.compress_data = compress_output;
393
394 /* Save pointer to virtual arrays */
395 coef->whole_image = coef_arrays;
396
397 /* Pre-zero space for dummy DCT blocks */
398 MEMZERO(coef->dummy_buffer, SIZEOF(coef->dummy_buffer));
399}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected