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

Function jpeg_alloc_quant_table

dlib/external/libjpeg/jcomapi.c:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 */
85
86GLOBAL(JQUANT_TBL *)
87jpeg_alloc_quant_table (j_common_ptr cinfo)
88{
89 JQUANT_TBL *tbl;
90
91 tbl = (JQUANT_TBL *)
92 (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(JQUANT_TBL));
93 tbl->sent_table = FALSE; /* make sure this is false in any new table */
94 return tbl;
95}
96
97
98GLOBAL(JHUFF_TBL *)

Callers 3

get_dqtFunction · 0.85
jpeg_add_quant_tableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected