Home
last modified time | relevance | path

Searched refs:pi4_accumulator (Results 1 – 3 of 3) sorted by relevance

/external/libavc/encoder/
Dirc_vbr_storage_vbv.c53 static void overflow_avoided_summation(WORD32 *pi4_accumulator, WORD32 i4_input) in overflow_avoided_summation() argument
55 if((pi4_accumulator[0] > 0) in overflow_avoided_summation()
56 && (((int)0x7fffffff - pi4_accumulator[0]) < i4_input)) in overflow_avoided_summation()
58 pi4_accumulator[0] = 0x7fffffff; in overflow_avoided_summation()
60 else if((pi4_accumulator[0] < 0) in overflow_avoided_summation()
61 && (((int)0x80000000 - pi4_accumulator[0]) > i4_input)) in overflow_avoided_summation()
63 pi4_accumulator[0] = 0x80000000; in overflow_avoided_summation()
67 pi4_accumulator[0] += i4_input; in overflow_avoided_summation()
/external/libhevc/encoder/
Dbit_allocation.c2976 void overflow_avoided_summation(WORD32 *pi4_accumulator, WORD32 i4_input) in overflow_avoided_summation() argument
2978 if((pi4_accumulator[0] > 0) && (((int)0x7fffffff - pi4_accumulator[0]) < i4_input)) in overflow_avoided_summation()
2979 pi4_accumulator[0] = 0x7fffffff; in overflow_avoided_summation()
2980 else if((pi4_accumulator[0] < 0) && (((int)0x80000000 - pi4_accumulator[0]) > i4_input)) in overflow_avoided_summation()
2981 pi4_accumulator[0] = 0x80000000; in overflow_avoided_summation()
2983 pi4_accumulator[0] += i4_input; in overflow_avoided_summation()
Dbit_allocation.h287 void overflow_avoided_summation(WORD32 *pi4_accumulator, WORD32 i4_input);