Lines Matching refs:Coin
650 typedef struct Coin struct
654 } Coin; typedef
656 static void coin_init(Coin* c) in coin_init()
664 uivector_cleanup(&((Coin*)c)->symbols); in coin_cleanup()
667 static void coin_copy(Coin* c1, const Coin* c2) in coin_copy()
673 static void add_coins(Coin* c1, const Coin* c2) in add_coins()
680 static void init_coins(Coin* coins, size_t num) in init_coins()
686 static void cleanup_coins(Coin* coins, size_t num) in cleanup_coins()
693 float wa = ((const Coin*)a)->weight; in coin_compare()
694 float wb = ((const Coin*)b)->weight; in coin_compare()
698 static unsigned append_symbol_coins(Coin* coins, const unsigned* frequencies, unsigned numcodes, si… in append_symbol_coins()
720 Coin* coins; /*the coins of the currently calculated row*/ in lodepng_huffman_code_lengths()
721 Coin* prev_row; /*the previous row of coins*/ in lodepng_huffman_code_lengths()
765 coins = (Coin*)lodepng_malloc(sizeof(Coin) * coinmem); in lodepng_huffman_code_lengths()
766 prev_row = (Coin*)lodepng_malloc(sizeof(Coin) * coinmem); in lodepng_huffman_code_lengths()
779 qsort(coins, numcoins, sizeof(Coin), coin_compare); in lodepng_huffman_code_lengths()
786 Coin* tempcoins; in lodepng_huffman_code_lengths()
800 Coin* coin = &coins[numcoins++]; in lodepng_huffman_code_lengths()
810 qsort(coins, numcoins, sizeof(Coin), coin_compare); in lodepng_huffman_code_lengths()
819 Coin* coin = &coins[i]; in lodepng_huffman_code_lengths()