Lines Matching refs:freq_codes_
138 freq_codes_ = NULL;
150 if (NULL != freq_codes_)
151 free(freq_codes_);
164 if (0 == idx_num_ || NULL == freq_codes_ || NULL == lma_freq_idx_)
170 if (fwrite(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) !=
192 if (NULL != freq_codes_)
193 free(freq_codes_);
197 freq_codes_ = static_cast<LmaScoreType*>
200 if (NULL == lma_freq_idx_ || NULL == freq_codes_)
203 if (fread(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) !=
230 return static_cast<float>(freq_codes_[lma_freq_idx_[lma_id]]) +
288 if (NULL == freq_codes_)
289 freq_codes_ = new LmaScoreType[kCodeBookSize];
290 assert(freq_codes_);
291 memset(freq_codes_, 0, sizeof(LmaScoreType) * kCodeBookSize);
334 freq_codes_[code_pos] = static_cast<LmaScoreType>(final_score);