40 unsigned int ret = 0, i, j;
44 for (i = 0, j = ret; i < n - 1; i++)
58 uint32_t exit_at_level[33] = { 404 };
59 unsigned i, j, p, code;
61 for (p = 0; (p < num) && (bits[p] == 0); ++p)
69 for (i = 0; i < bits[p]; ++i)
70 exit_at_level[i+1] = 1
u << i;
74 for (i = p; (i < num) && (bits[i] == 0); ++i)
79 for (; p < num; ++p) {
85 for (i = bits[p]; i > 0; --i)
90 code = exit_at_level[i];
93 for (j = i + 1 ;j <= bits[p]; ++j)
94 exit_at_level[j] = code + (1
u << (j - 1));
99 for (p = 1; p < 33; p++)
100 if (exit_at_level[p])
112 for (i = 2; i < values; i++) {
117 for (j = 2; j < i; j++) {
119 if (tmp < list[i].x) {
120 if (tmp > list[list[i].low].x)
123 if (tmp < list[list[i].high].x)
128 for (i = 0; i < values - 1; i++) {
130 for (j = i + 1; j < values; j++) {
131 if (list[i].x == list[j].x) {
133 "Duplicate value found in floor 1 X coordinates\n");
136 if (list[list[i].sort].x > list[list[j].sort].x) {
147 intptr_t sy,
int ady,
int adx,
174 int sy = dy < 0 ? -1 : 1;
183 ady -=
FFABS(base) * adx;
197 uint16_t *y_list,
int *
flag,
198 int multiplier,
float *
out,
int samples)
202 ly = y_list[0] * multiplier;
203 for (i = 1; i < values; i++) {
204 int pos = list[i].
sort;
206 int x1 = list[pos].
x;
207 int y1 = y_list[pos] * multiplier;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
unsigned int ff_vorbis_nth_root(unsigned int x, unsigned int n)
const float ff_vorbis_floor1_inverse_db_table[256]
static void render_line(int x0, int y0, int x1, int y1, float *buf)
#define u(width, name, range_min, range_max)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
Libavcodec external API header.
main external API structure.
common internal and external API header
static void render_line_unrolled(intptr_t x, int y, int x1, intptr_t sy, int ady, int adx, float *buf)
void ff_vorbis_floor1_render_list(vorbis_floor1_entry *list, int values, uint16_t *y_list, int *flag, int multiplier, float *out, int samples)
int ff_vorbis_ready_floor1_list(AVCodecContext *avctx, vorbis_floor1_entry *list, int values)