34 if (
left > 999 || right > 999)
48 for (
i = 0;
i < depth * 4;
i++)
58static int cmp(
const void *
a,
const void *
b)
60 return (
const uint8_t *)
a - (
const uint8_t *)
b;
63int main(
int argc,
char **argv)
69 int log_level = argc <= 1 ?
AV_LOG_INFO : atoi(argv[1]);
75 for (
i = 0;
i < 10000;
i++) {
78 if (
check(root) > 999) {
static int BS_FUNC left(const BSCTX *bc)
Return the number of the bits left in a buffer.
#define i(width, name, range_min, range_max)
common internal and external API header
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_INFO
Standard information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void av_log_set_level(int level)
Set the log level.
void * av_tree_insert(AVTreeNode **tp, void *key, int(*cmp)(const void *key, const void *b), AVTreeNode **next)
Insert or remove an element.
void av_tree_destroy(AVTreeNode *t)
struct AVTreeNode * av_tree_node_alloc(void)
Allocate an AVTreeNode.
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
Memory handling functions.
static av_always_inline int cmp(MPVEncContext *const s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags)
compares a block (either a full macroblock or a partition thereof) against a proposed motion-compensa...
#define check(x, y, S, v)
Context structure for the Lagged Fibonacci PRNG.
struct AVTreeNode * child[2]
static void prng(CheckasmRand *restrict xs, uint8_t *restrict buf, size_t size)
static int cmp(const void *a, const void *b)
static void print(AVTreeNode *t, int depth)
void * av_tree_find(const AVTreeNode *t, void *key, int(*cmp)(const void *key, const void *b), void *next[2])