Home
last modified time | relevance | path

Searched refs:ac_clip (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastquant.cpp164 Int ac_clip; /* quantized coeff bound */ in BlockQuantDequantH263Inter() local
170 if (shortHeader) ac_clip = 126; /* clip between [-127,126] (standard allows 127!) */ in BlockQuantDequantH263Inter()
171 else ac_clip = 2047; /* clip between [-2048,2047] */ in BlockQuantDequantH263Inter()
232 q_value = coeff_clip(q_value, ac_clip); in BlockQuantDequantH263Inter()
282 Int ac_clip; /* quantized coeff bound */ in BlockQuantDequantH263Intra() local
288 if (shortHeader) ac_clip = 126; /* clip between [-127,126] (standard allows 127!) */ in BlockQuantDequantH263Intra()
289 else ac_clip = 2047; /* clip between [-2048,2047] */ in BlockQuantDequantH263Intra()
394 q_value = coeff_clip(q_value, ac_clip); in BlockQuantDequantH263Intra()
450 Int ac_clip; /* quantized coeff bound */ in BlockQuantDequantH263DCInter() local
455 if (shortHeader) ac_clip = 126; /* clip between [-127,126] (standard allows 127!) */ in BlockQuantDequantH263DCInter()
[all …]
Dfastquant_inline.h52 __inline int32 coeff_clip(int32 q_value, int32 ac_clip) in coeff_clip() argument
54 int32 coeff = q_value + ac_clip; in coeff_clip()
56 if ((UInt)coeff > (UInt)(ac_clip << 1)) in coeff_clip()
57 q_value = ac_clip ^(q_value >> 31); in coeff_clip()
365 __inline int32 coeff_clip(int32 q_value, int32 ac_clip) in coeff_clip() argument
371 add coeff, q_value, ac_clip in coeff_clip()
372 subs coeff, coeff, ac_clip, lsl #1 in coeff_clip()
373 eorhi q_value, ac_clip, q_value, asr #31 in coeff_clip()
469 __inline int32 coeff_clip(int32 q_value, int32 ac_clip) in coeff_clip() argument
478 : "r"(ac_clip)); in coeff_clip()