Home
last modified time | relevance | path

Searched refs:leadingZeros (Results 1 – 5 of 5) sorted by relevance

/external/opencore/codecs_v2/video/avc_h264/enc/src/
Dvlc_encode.cpp73 int leadingZeros; in SetEGBitstring() local
83 leadingZeros = 1; in SetEGBitstring()
84 while ((uint)(1 << leadingZeros) < codeNum + 2) in SetEGBitstring()
86 leadingZeros++; in SetEGBitstring()
88 leadingZeros--; in SetEGBitstring()
89 infobits = codeNum - (1 << leadingZeros) + 1; in SetEGBitstring()
91 status = BitstreamWriteBits(bitstream, leadingZeros, 0); in SetEGBitstring()
92 infobits |= (1 << leadingZeros); in SetEGBitstring()
93 status = BitstreamWriteBits(bitstream, leadingZeros + 1, infobits); in SetEGBitstring()
/external/opencore/codecs_v2/video/avc_h264/dec/src/
Dvlc.cpp154 int leadingZeros; in se_v32bit() local
158 if (AVCDEC_SUCCESS != GetEGBitstring32bit(bitstream, &leadingZeros, &infobits)) in se_v32bit()
161 codeNum = (1 << leadingZeros) - 1 + infobits; in se_v32bit()
190 AVCDec_Status GetEGBitstring32bit(AVCDecBitstream *bitstream, int *leadingZeros, uint32 *infobits) in GetEGBitstring32bit() argument
195 *leadingZeros = 0; in GetEGBitstring32bit()
201 (*leadingZeros)++; in GetEGBitstring32bit()
205 if (*leadingZeros > 0) in GetEGBitstring32bit()
209 BitstreamReadBits(bitstream, *leadingZeros, (uint*)&info_temp); in GetEGBitstring32bit()
215 if (*leadingZeros > 16) in GetEGBitstring32bit()
218 (*leadingZeros) -= 16; in GetEGBitstring32bit()
[all …]
Davcdec_lib.h337 AVCDec_Status GetEGBitstring(AVCDecBitstream *bitstream, int *leadingZeros, int *infobits);
347 AVCDec_Status GetEGBitstring32bit(AVCDecBitstream *bitstream, int *leadingZeros, uint32 *infobits);
/external/opencore/codecs_v2/utilities/m4v_config_parser/src/
Dm4v_config_parser.cpp1160 int32 leadingZeros = 0; in se_v() local
1168 leadingZeros++; in se_v()
1174 ReadBits(psBits, leadingZeros, &temp); in se_v()
/external/webkit/JavaScriptCore/assembler/
DARMv7Assembler.h255 int32_t leadingZeros = countLeadingZeros(value); in makeEncodedImm() local
257 ASSERT(leadingZeros < 24); in makeEncodedImm()
262 int32_t rightShiftAmount = 24 - leadingZeros; in makeEncodedImm()
268 encoding.shiftAmount = 8 + leadingZeros; in makeEncodedImm()