Lines Matching refs:rightNo
555 void HuffAddParentDepthToTable( HuffData *table, u16 leftNo, u16 rightNo );
752 s32 leftNo, rightNo; // Node number for creating binary tree in HuffConstructTree() local
758 rightNo = -1; in HuffConstructTree()
791 if ( rightNo < 0 ) in HuffConstructTree()
793 rightNo = i; in HuffConstructTree()
795 else if ( table[i].Freq < table[rightNo].Freq ) in HuffConstructTree()
797 rightNo = i; in HuffConstructTree()
802 if ( rightNo < 0 ) in HuffConstructTree()
825 table[ tableTop ].Freq = table[ leftNo ].Freq + table[ rightNo ].Freq; in HuffConstructTree()
827 table[ tableTop ].ChNo[1] = (s16)rightNo; in HuffConstructTree()
828 if ( table[ leftNo ].LeafDepth > table[ rightNo ].LeafDepth ) in HuffConstructTree()
834 table[ tableTop ].LeafDepth = (u16)( table[ rightNo ].LeafDepth + 1 ); in HuffConstructTree()
837 table[ leftNo ].PaNo = table[ rightNo ].PaNo = (s16)(tableTop); in HuffConstructTree()
839 table[ rightNo ].Bit = 1; in HuffConstructTree()
841 HuffAddParentDepthToTable( table, (u16)leftNo, (u16)rightNo ); in HuffConstructTree()
844 leftNo = rightNo = -1; in HuffConstructTree()
859 void HuffAddParentDepthToTable( HuffData *table, u16 leftNo, u16 rightNo ) in HuffAddParentDepthToTable() argument
862 table[ rightNo ].PaDepth++; in HuffAddParentDepthToTable()
868 if ( table[ rightNo ].LeafDepth != 0 ) in HuffAddParentDepthToTable()
870 … HuffAddParentDepthToTable( table, (u16)table[ rightNo ].ChNo[0], (u16)table[ rightNo ].ChNo[1] ); in HuffAddParentDepthToTable()