Searched refs:hist (Results 1 – 2 of 2) sorted by relevance
40 struct rate_hist *hist = malloc(sizeof(*hist)); in init_rate_histogram() local45 hist->samples = cfg->rc_buf_sz * 5 / 4 * fps->num / fps->den / 1000; in init_rate_histogram()48 if (hist->samples == 0) in init_rate_histogram()49 hist->samples = 1; in init_rate_histogram()51 hist->frames = 0; in init_rate_histogram()52 hist->total = 0; in init_rate_histogram()54 hist->pts = calloc(hist->samples, sizeof(*hist->pts)); in init_rate_histogram()55 hist->sz = calloc(hist->samples, sizeof(*hist->sz)); in init_rate_histogram()57 hist->bucket[i].low = INT_MAX; in init_rate_histogram()58 hist->bucket[i].high = 0; in init_rate_histogram()[all …]
25 void destroy_rate_histogram(struct rate_hist *hist);27 void update_rate_histogram(struct rate_hist *hist,33 void show_rate_histogram(struct rate_hist *hist, const vpx_codec_enc_cfg_t *cfg,