2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
4 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
15 #include "aom/aom_encoder.h"
23 struct rate_hist
*init_rate_histogram(const aom_codec_enc_cfg_t
*cfg
,
24 const aom_rational_t
*fps
);
26 void destroy_rate_histogram(struct rate_hist
*hist
);
28 void update_rate_histogram(struct rate_hist
*hist
,
29 const aom_codec_enc_cfg_t
*cfg
,
30 const aom_codec_cx_pkt_t
*pkt
);
32 void show_q_histogram(const int counts
[64], int max_buckets
);
34 void show_rate_histogram(struct rate_hist
*hist
, const aom_codec_enc_cfg_t
*cfg
,
41 #endif // RATE_HIST_H_