Lines Matching refs:rightNo
518 static void HuffAddParentDepthToTable( HuffData *table, u16 leftNo, u16 rightNo );
700 s32 leftNo, rightNo; // Node number for creating binary tree in HuffConstructTree() local
706 rightNo = -1; in HuffConstructTree()
739 if ( rightNo < 0 ) in HuffConstructTree()
741 rightNo = i; in HuffConstructTree()
743 else if ( table[i].Freq < table[rightNo].Freq ) in HuffConstructTree()
745 rightNo = i; in HuffConstructTree()
750 if ( rightNo < 0 ) in HuffConstructTree()
773 table[ tableTop ].Freq = table[ leftNo ].Freq + table[ rightNo ].Freq; in HuffConstructTree()
775 table[ tableTop ].ChNo[1] = (s16)rightNo; in HuffConstructTree()
776 if ( table[ leftNo ].LeafDepth > table[ rightNo ].LeafDepth ) in HuffConstructTree()
782 table[ tableTop ].LeafDepth = (u16)( table[ rightNo ].LeafDepth + 1 ); in HuffConstructTree()
785 table[ leftNo ].PaNo = table[ rightNo ].PaNo = (s16)(tableTop); in HuffConstructTree()
787 table[ rightNo ].Bit = 1; in HuffConstructTree()
789 HuffAddParentDepthToTable( table, (u16)leftNo, (u16)rightNo ); in HuffConstructTree()
792 leftNo = rightNo = -1; in HuffConstructTree()
807 static void HuffAddParentDepthToTable( HuffData *table, u16 leftNo, u16 rightNo ) in HuffAddParentDepthToTable() argument
810 table[ rightNo ].PaDepth++; in HuffAddParentDepthToTable()
816 if ( table[ rightNo ].LeafDepth != 0 ) in HuffAddParentDepthToTable()
818 … HuffAddParentDepthToTable( table, (u16)table[ rightNo ].ChNo[0], (u16)table[ rightNo ].ChNo[1] ); in HuffAddParentDepthToTable()