Home
last modified time | relevance | path

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

12345

/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/native/libs/math/include/math/
Dhalf.h59 uint16_t bits = 0; member
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16()
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
71 uint32_t bits = 0; member
76 void setS(unsigned int s) noexcept { bits = uint32_t((bits & 0x7FFFFFFF) | (s<<31)); } in setS()
[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/base/core/java/android/util/
DHalf.java495 public static @HalfFloat short intBitsToHalf(int bits) { in intBitsToHalf() argument
496 return (short) (bits & 0xffff); in intBitsToHalf()
547 int bits = h & 0xffff; in round() local
548 int e = bits & 0x7fff; in round()
549 int result = bits; in round()
581 int bits = h & 0xffff; in ceil() local
582 int e = bits & 0x7fff; in ceil()
583 int result = bits; in ceil()
587 result |= 0x3c00 & -(~(bits >> 15) & (e != 0 ? 1 : 0)); in ceil()
591 result += mask & ((bits >> 15) - 1); in ceil()
[all …]
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_protocol.h68 bool IsSet(Integer bits) const { return (value_ & bits) == bits; } in IsSet() argument
69 bool IsClear(Integer bits) const { return (value_ & bits) == 0; } in IsClear() argument
71 void Set(Integer bits) { value_ |= bits; } in Set() argument
72 void Clear(Integer bits) { value_ &= ~bits; } in Clear() argument
74 Integer operator|(Integer bits) const { return value_ | bits; }
75 Integer operator&(Integer bits) const { return value_ & bits; }
77 Flags& operator|=(Integer bits) {
78 value_ |= bits;
81 Flags& operator&=(Integer bits) {
82 value_ &= bits;
/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/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java478 int bits = data[valueIndex++] & 0xFF; in parseToRGB() local
489 if (0 == (8 % bits)) { in parseToRGB()
491 (width * height), colorIndexArray, bits); in parseToRGB()
494 (width * height), colorIndexArray, bits); in parseToRGB()
502 int length, int[] colorArray, int bits) { in mapTo2OrderBitColor() argument
503 if (0 != (8 % bits)) { in mapTo2OrderBitColor()
506 bits); in mapTo2OrderBitColor()
510 switch (bits) { in mapTo2OrderBitColor()
527 int run = 8 / bits; in mapTo2OrderBitColor()
532 resultArray[resultIndex++] = colorArray[(tempByte >> (offset * bits)) in mapTo2OrderBitColor()
[all …]
/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/av/media/libstagefright/mpeg2ts/
DESQueue.cpp118 ABitReader bits(ptr, size); in parseAC3SyncFrame() local
119 if (bits.numBitsLeft() < 16) { in parseAC3SyncFrame()
122 if (bits.getBits(16) != 0x0B77) { in parseAC3SyncFrame()
126 if (bits.numBitsLeft() < 16 + 2 + 6 + 5 + 3 + 3) { in parseAC3SyncFrame()
130 bits.skipBits(16); // crc1 in parseAC3SyncFrame()
132 unsigned fscod = bits.getBits(2); in parseAC3SyncFrame()
138 unsigned frmsizecod = bits.getBits(6); in parseAC3SyncFrame()
144 unsigned bsid = bits.getBits(5); in parseAC3SyncFrame()
150 unsigned bsmod __unused = bits.getBits(3); in parseAC3SyncFrame()
151 unsigned acmod = bits.getBits(3); in parseAC3SyncFrame()
[all …]
/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/minikin/include/minikin/
DFontFamily.h48 int getWeight() const { return bits & kWeightMask; } in getWeight()
49 bool getItalic() const { return (bits & kItalicMask) != 0; } in getItalic()
50 int getVariant() const { return (bits >> kVariantShift) & kVariantMask; } in getVariant()
54 return bits == other.bits && mLanguageListId == other.mLanguageListId;
70 uint32_t bits; variable
/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/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/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.java53 public FlagSet(int... bits) { in FlagSet() argument
55 for (int i = 0 ; i < bits.length; i ++) { in FlagSet()
56 max = Math.max(i, bits[i]); in FlagSet()
59 for (int x = 0 ; x < bits.length; x ++) { in FlagSet()
60 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 …]

12345