Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_cavlc.c324 #define BUFFER_INIT(value, bits) \ argument
326 bits = 32; \
332 #define BUFFER_SHOW(value, bits, outVal, numBits) \ argument
334 if (bits < (numBits)) \
336 if(h264bsdFlushBits(pStrmData,32-bits) == END_OF_STREAM) \
339 bits = 32; \
345 #define BUFFER_FLUSH(value, bits, numBits) \ argument
348 bits -= (numBits); \
353 #define BUFFER_GET(value, bits, outVal, numBits) \ argument
355 if (bits < (numBits)) \
[all …]
Dh264bsd_vlc.c108 u32 bits, numZeros; in h264bsdDecodeExpGolombUnsigned() local
115 bits = h264bsdShowBits32(pStrmData); in h264bsdDecodeExpGolombUnsigned()
118 if (bits >= 0x80000000) in h264bsdDecodeExpGolombUnsigned()
125 else if (bits >= 0x40000000) in h264bsdDecodeExpGolombUnsigned()
129 *codeNum = 1 + ((bits >> 29) & 0x1); in h264bsdDecodeExpGolombUnsigned()
133 else if (bits >= 0x20000000) in h264bsdDecodeExpGolombUnsigned()
137 *codeNum = 3 + ((bits >> 27) & 0x3); in h264bsdDecodeExpGolombUnsigned()
141 else if (bits >= 0x10000000) in h264bsdDecodeExpGolombUnsigned()
145 *codeNum = 7 + ((bits >> 25) & 0x7); in h264bsdDecodeExpGolombUnsigned()
152 numZeros = 4 + h264bsdCountLeadingZeros(bits, 28); in h264bsdDecodeExpGolombUnsigned()
[all …]
Dh264bsd_stream.c118 i32 bits, shift; in h264bsdShowBits32() local
131 bits = (i32)pStrmData->strmBuffSize*8 - (i32)pStrmData->strmBuffReadBits; in h264bsdShowBits32()
134 if (bits >= 32) in h264bsdShowBits32()
150 else if (bits > 0) in h264bsdShowBits32()
154 bits -= (i32)(8 - pStrmData->bitPosInWord); in h264bsdShowBits32()
155 while (bits > 0) in h264bsdShowBits32()
159 bits -= 8; in h264bsdShowBits32()
Dh264bsd_util.c176 u32 bits; in h264bsdMoreRbspData() local
183 bits = pStrmData->strmBuffSize * 8 - pStrmData->strmBuffReadBits; in h264bsdMoreRbspData()
185 if (bits == 0) in h264bsdMoreRbspData()
188 if ( (bits > 8) || in h264bsdMoreRbspData()
189 ((h264bsdShowBits32(pStrmData)>>(32-bits)) != (1ul << (bits-1))) ) in h264bsdMoreRbspData()
/frameworks/av/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp99 ABitReader *bits, unsigned *audioObjectType) { in parseAudioObjectType() argument
100 *audioObjectType = bits->getBits(5); in parseAudioObjectType()
102 *audioObjectType = 32 + bits->getBits(6); in parseAudioObjectType()
109 ABitReader *bits, in parseGASpecificConfig() argument
111 unsigned frameLengthFlag __unused = bits->getBits(1); in parseGASpecificConfig()
112 unsigned dependsOnCoreCoder = bits->getBits(1); in parseGASpecificConfig()
114 /* unsigned coreCoderDelay = */bits->getBits(1); in parseGASpecificConfig()
116 unsigned extensionFlag = bits->getBits(1); in parseGASpecificConfig()
124 /* unsigned layerNr = */bits->getBits(3); in parseGASpecificConfig()
129 /* unsigned numOfSubFrame = */bits->getBits(5); in parseGASpecificConfig()
[all …]
DAMPEG4ElementaryAssembler.cpp264 ABitReader bits(buffer->data() + 2, buffer->size() - 2); in addPacket() local
271 unsigned AU_size = bits.getBits(mSizeLength); in addPacket()
277 unsigned AU_index = bits.getBits(n); in addPacket()
291 if (bits.getBits(1)) { in addPacket()
295 bits.skipBits(mCTSDeltaLength); in addPacket()
305 if (bits.getBits(1)) { in addPacket()
309 bits.skipBits(mDTSDeltaLength); in addPacket()
318 bits.skipBits(1); in addPacket()
326 bits.skipBits(mStreamStateIndication); in addPacket()
338 ABitReader bits(buffer->data() + offset, buffer->size() - offset); in addPacket() local
[all …]
/frameworks/base/core/java/com/android/internal/util/
DBitwiseInputStream.java74 public int read(int bits) throws AccessException { in read() argument
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in read()
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) { in read()
79 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")"); in read()
84 data &= (-1 >>> (32 - bits)); in read()
85 mPos += bits; in read()
95 public byte[] readByteArray(int bits) throws AccessException { in readByteArray() argument
96 int bytes = (bits >>> 3) + ((bits & 0x07) > 0 ? 1 : 0); // &7==%8 in readByteArray()
99 int increment = Math.min(8, bits - (i << 3)); in readByteArray()
110 public void skip(int bits) throws AccessException { in skip() argument
[all …]
DBitwiseOutputStream.java75 private void possExpand(int bits) { in possExpand() argument
76 if ((mPos + bits) < mEnd) return; in possExpand()
77 byte[] newBuf = new byte[(mPos + bits) >>> 2]; in possExpand()
92 public void write(int bits, int data) throws AccessException { in write() argument
93 if ((bits < 0) || (bits > 8)) { in write()
94 throw new AccessException("illegal write (" + bits + " bits)"); in write()
96 possExpand(bits); in write()
97 data &= (-1 >>> (32 - bits)); in write()
99 int offset = 16 - (mPos & 0x07) - bits; // &7==%8 in write()
101 mPos += bits; in write()
[all …]
/frameworks/compile/slang/tests/F_fs_types/
Dstderr.txt.expect1 fs_types.fs:4:8: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd'
2 fs_types.fs:13:10: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'myS'
3 fs_types.fs:15:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'd'
4 fs_types.fs:16:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'e'
5 fs_types.fs:17:15: error: Builtin types > 32 bits in size are forbidden in Filterscript
6 fs_types.fs:18:7: error: Builtin types > 32 bits in size are forbidden in Filterscript
7 fs_types.fs:21:12: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'l'
8 fs_types.fs:22:10: error: Builtin types > 32 bits in size are forbidden in Filterscript: 'm'
9 fs_types.fs:23:13: error: Builtin types > 32 bits in size are forbidden in Filterscript
10 fs_types.fs:24:7: error: Builtin types > 32 bits in size are forbidden in Filterscript
[all …]
/frameworks/minikin/include/minikin/
DFontFamily.h52 explicit FontLanguage(uint32_t bits) : mBits(bits) { } in FontLanguage() argument
54 uint32_t bits() const { return mBits; } in bits() function
69 bits = (weight & kWeightMask) | (italic ? kItalicMask : 0);
72 bits = (weight & kWeightMask) | (italic ? kItalicMask : 0)
73 | (variant << kVariantShift) | (lang.bits() << kLangShift);
75 int getWeight() const { return bits & kWeightMask; } in getWeight()
76 bool getItalic() const { return (bits & kItalicMask) != 0; } in getItalic()
77 int getVariant() const { return (bits >> kVariantShift) & kVariantMask; } in getVariant()
78 FontLanguage getLanguage() const { return FontLanguage(bits >> kLangShift); } in getLanguage()
80 bool operator==(const FontStyle other) const { return bits == other.bits; }
[all …]
/frameworks/native/opengl/libagl/
Ddxt.cpp164 uint32_t bits = *d32++; in DXT1HasAlpha() local
171 if (((bits & (bits >> 1)) & 0x55555555) != 0) { in DXT1HasAlpha()
216 uint32_t bits = *d32++; in decodeDXT1() local
220 bits = swap(bits); in decodeDXT1()
253 int bbits = bits >> 1; in decodeDXT1()
254 bool has2 = ((bbits & ~bits) & 0x55555555) != 0; in decodeDXT1()
255 bool has3 = ((bbits & bits) & 0x55555555) != 0; in decodeDXT1()
295 int code = bits & 0x3; in decodeDXT1()
296 bits >>= 2; in decodeDXT1()
339 uint32_t bits = *d32++; in decodeDXT3() local
[all …]
/frameworks/rs/
Dspec.l106 currType->bits = 8;
112 currType->bits = 16;
118 currType->bits = 32;
124 currType->bits = 64;
130 currType->bits = 8;
136 currType->bits = 16;
142 currType->bits = 32;
148 currType->bits = 64;
154 currType->bits = 32;
160 currType->bits = 64;
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp92 ABitReader bits(ptr, size); in parseAC3SyncFrame() local
93 if (bits.numBitsLeft() < 16) { in parseAC3SyncFrame()
96 if (bits.getBits(16) != 0x0B77) { in parseAC3SyncFrame()
100 if (bits.numBitsLeft() < 16 + 2 + 6 + 5 + 3 + 3) { in parseAC3SyncFrame()
104 bits.skipBits(16); // crc1 in parseAC3SyncFrame()
106 unsigned fscod = bits.getBits(2); in parseAC3SyncFrame()
112 unsigned frmsizecod = bits.getBits(6); in parseAC3SyncFrame()
118 unsigned bsid = bits.getBits(5); in parseAC3SyncFrame()
124 unsigned bsmod __unused = bits.getBits(3); in parseAC3SyncFrame()
125 unsigned acmod = bits.getBits(3); in parseAC3SyncFrame()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DIccUtils.java436 int bits = data[valueIndex++] & 0xFF; in parseToRGB() local
447 if (0 == (8 % bits)) { in parseToRGB()
449 (width * height), colorIndexArray, bits); in parseToRGB()
452 (width * height), colorIndexArray, bits); in parseToRGB()
460 int length, int[] colorArray, int bits) { in mapTo2OrderBitColor() argument
461 if (0 != (8 % bits)) { in mapTo2OrderBitColor()
464 bits); in mapTo2OrderBitColor()
468 switch (bits) { in mapTo2OrderBitColor()
485 int run = 8 / bits; in mapTo2OrderBitColor()
490 resultArray[resultIndex++] = colorArray[(tempByte >> (offset * bits)) in mapTo2OrderBitColor()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccUtils.java436 int bits = data[valueIndex++] & 0xFF; in parseToRGB() local
447 if (0 == (8 % bits)) { in parseToRGB()
449 (width * height), colorIndexArray, bits); in parseToRGB()
452 (width * height), colorIndexArray, bits); in parseToRGB()
460 int length, int[] colorArray, int bits) { in mapTo2OrderBitColor() argument
461 if (0 != (8 % bits)) { in mapTo2OrderBitColor()
464 bits); in mapTo2OrderBitColor()
468 switch (bits) { in mapTo2OrderBitColor()
485 int run = 8 / bits; in mapTo2OrderBitColor()
490 resultArray[resultIndex++] = colorArray[(tempByte >> (offset * bits)) in mapTo2OrderBitColor()
[all …]
DHardwareConfig.java153 char[] bits = Integer.toBinaryString(ratBits).toCharArray(); in assignModem() local
157 rat = new BitSet(bits.length); in assignModem()
158 for (int i = 0 ; i < bits.length ; i++) { in assignModem()
159 rat.set(i, (bits[i] == '1' ? true : false)); in assignModem()
/frameworks/av/cmds/stagefright/
Djpeg.cpp25 static inline uint8_t from565to8(uint16_t p, int start, int bits) { in from565to8() argument
26 uint8_t c = (p >> start) & ((1 << bits) - 1); in from565to8()
27 return (c << (8 - bits)) | (c >> (bits - (8 - bits))); in from565to8()
/frameworks/base/tests/touchlag/
Dtouchlag.cpp56 uint32_t* bits = buf->pixels + y * buf->s; in drawTwoPixels() local
58 bits[x] = pixel; in drawTwoPixels()
62 bits[x+W] = pixel; in drawTwoPixels()
78 uint32_t* bits = buf->pixels + y * buf->s + x; in drawHLine() local
79 android_memset32(bits, pixel, W*4); in drawHLine()
97 uint32_t* bits = buf->pixels + y * buf->s + x; in drawRect() local
99 android_memset32(bits, pixel, W*4); in drawRect()
100 bits += buf->s; in drawRect()
227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() local
232 framebuffer.addr = bits; in main()
/frameworks/native/libs/input/
DInput.cpp92 if (axis < 0 || axis > 63 || !BitSet64::hasBit(bits, axis)){ in getAxisValue()
95 return values[BitSet64::getIndexOfBit(bits, axis)]; in getAxisValue()
103 uint32_t index = BitSet64::getIndexOfBit(bits, axis); in setAxisValue()
104 if (!BitSet64::hasBit(bits, axis)) { in setAxisValue()
109 uint32_t count = BitSet64::count(bits); in setAxisValue()
114 BitSet64::markBit(bits, axis); in setAxisValue()
149 bits = parcel->readInt64(); in readFromParcel()
151 uint32_t count = BitSet64::count(bits); in readFromParcel()
163 parcel->writeInt64(bits); in writeToParcel()
165 uint32_t count = BitSet64::count(bits); in writeToParcel()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_crc.cpp128 uint32 bits = getNbits(inputStream, neededBits); in getbits_crc() local
132 calculate_crc(bits, neededBits, crc); in getbits_crc()
134 return(bits); in getbits_crc()
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dbits2prm.cpp271 Word16 bits[], /* i : serial bits (size <= MAX_SERIAL_SIZE) */ in Bits2prm() argument
279 prm[i] = Bin2int(bitno[mode][i], bits); in Bits2prm()
280 bits += bitno[mode][i]; in Bits2prm()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dprm2bits.cpp292 Word16 bits[] /* o : serial bits (size <= MAX_SERIAL_SIZE) */ in Prm2bits() argument
304 Int2bin(*(p_prm++), *(p_mode), bits); in Prm2bits()
305 bits += *(p_mode++); in Prm2bits()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
DFlagSet.java54 public FlagSet(int... bits) { in FlagSet() argument
56 for (int i = 0 ; i < bits.length; i ++) { in FlagSet()
57 max = Math.max(i, bits[i]); in FlagSet()
60 for (int x = 0 ; x < bits.length; x ++) { in FlagSet()
61 final int i = bits[x]; in FlagSet()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp216 BitSet64 bits = in pointerCoordsToNative() local
218 if (!bits.isEmpty()) { in pointerCoordsToNative()
227 uint32_t axis = bits.clearFirstMarkedBit(); in pointerCoordsToNative()
229 } while (!bits.isEmpty()); in pointerCoordsToNative()
280 BitSet64 bits = BitSet64(rawPointerCoords->bits); in pointerCoordsFromNative() local
281 bits.clearBit(AMOTION_EVENT_AXIS_X); in pointerCoordsFromNative()
282 bits.clearBit(AMOTION_EVENT_AXIS_Y); in pointerCoordsFromNative()
283 bits.clearBit(AMOTION_EVENT_AXIS_PRESSURE); in pointerCoordsFromNative()
284 bits.clearBit(AMOTION_EVENT_AXIS_SIZE); in pointerCoordsFromNative()
285 bits.clearBit(AMOTION_EVENT_AXIS_TOUCH_MAJOR); in pointerCoordsFromNative()
[all …]
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DCallbackRegistry.java171 final long bits = mRemainderRemoved[remainderIndex]; in notifyRemainder() local
175 notifyCallbacks(sender, arg, arg2, startIndex, endIndex, bits); in notifyRemainder()
197 final int endIndex, final long bits) { in notifyCallbacks() argument
200 if ((bits & bitMask) == 0) { in notifyCallbacks()
240 final long bits = mRemainderRemoved[maskIndex]; in isRemoved() local
242 return (bits & bitMask) != 0; in isRemoved()

123456