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

Method encode

dlib/entropy_encoder_model/entropy_encoder_model_kernel_c.h:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 typename eem_base
41 >
42 void entropy_encoder_model_kernel_c<eem_base>::
43 encode (
44 unsigned long symbol
45 )
46 {
47 // make sure requires clause is not broken
48 DLIB_CASSERT(symbol < alphabet_size,
49 "\tvoid entropy_encoder_model::encode()"
50 << "\n\tthe symbol must be in the range 0 to alphabet_size-1"
51 << "\n\talphabet_size: " << alphabet_size
52 << "\n\tsymbol: " << symbol
53 << "\n\tthis: " << this
54 );
55
56 // call the real function
57 eem_base::encode(symbol);
58 }
59
60// ----------------------------------------------------------------------------------------
61

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected