| 62 | typename encoder |
| 63 | > |
| 64 | void entropy_encoder_kernel_c<encoder>:: |
| 65 | encode ( |
| 66 | uint32 low_count, |
| 67 | uint32 high_count, |
| 68 | uint32 total |
| 69 | ) |
| 70 | { |
| 71 | // make sure requires clause is not broken |
| 72 | DLIB_CASSERT( (0 < total) && (total < 65536) && (low_count < high_count) && (high_count <= total) && |
| 73 | (this->stream_is_set() == true), |
| 74 | "\tvoid entropy_encoder::encode()" |
| 75 | << "\n\trefer to the ensures clause for this function for further information" |
| 76 | << "\n\tthis: " << this |
| 77 | << "\n\ttotal: " << total |
| 78 | << "\n\tlow_count: " << low_count |
| 79 | << "\n\thigh_count: " << high_count |
| 80 | << "\n\tis_stream_set(): " << (this->stream_is_set() ? "true" : "false" ) |
| 81 | ); |
| 82 | |
| 83 | // call the real function |
| 84 | encoder::encode(low_count,high_count,total); |
| 85 | } |
| 86 | |
| 87 | // ---------------------------------------------------------------------------------------- |
| 88 |
nothing calls this directly
no outgoing calls
no test coverage detected