Home
last modified time | relevance | path

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

1234

/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)) != (1 << (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 = 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.cpp260 ABitReader bits(buffer->data() + 2, buffer->size() - 2); in addPacket() local
267 unsigned AU_size = bits.getBits(mSizeLength); in addPacket()
273 unsigned AU_index = bits.getBits(n); in addPacket()
287 if (bits.getBits(1)) { in addPacket()
291 bits.skipBits(mCTSDeltaLength); in addPacket()
301 if (bits.getBits(1)) { in addPacket()
305 bits.skipBits(mDTSDeltaLength); in addPacket()
314 bits.skipBits(1); in addPacket()
322 bits.skipBits(mStreamStateIndication); in addPacket()
334 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/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/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/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 …]
/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/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/compile/slang/
Dslang_rs_type_spec.h75 #define ENUM_PRIMITIVE_DATA_TYPE(x, name, bits) RS_DT_ ## x, argument
112 unsigned bits; // NOTE: Little-endian is assumed. member
220 (RS_CAST_TO_CONSTANT_ARRAY_TYPE(R)->base.bits & 0x00ffffff)
222 RS_CAST_TO_CONSTANT_ARRAY_TYPE(R)->base.bits = \
223 ((RS_CAST_TO_CONSTANT_ARRAY_TYPE(R)->base.bits & 0x000000ff) | \
231 ((RS_CAST_TO_RECORD_TYPE(R)->base.bits & 0xffff0000) >> 16)
233 RS_CAST_TO_RECORD_TYPE(R)->base.bits = \
234 ((RS_CAST_TO_RECORD_TYPE(R)->base.bits & 0x0000ffff) | ((V & 0xffff) << 16))
/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/mpeg2ts/
DESQueue.cpp348 ABitReader bits(mBuffer->data(), 4); in dequeueAccessUnitPCMAudio() local
349 CHECK_EQ(bits.getBits(8), 0xa0); in dequeueAccessUnitPCMAudio()
350 unsigned numAUs = bits.getBits(8); in dequeueAccessUnitPCMAudio()
351 bits.skipBits(8); in dequeueAccessUnitPCMAudio()
352 unsigned quantization_word_length = bits.getBits(2); in dequeueAccessUnitPCMAudio()
353 unsigned audio_sampling_frequency = bits.getBits(3); in dequeueAccessUnitPCMAudio()
354 unsigned num_channels = bits.getBits(3); in dequeueAccessUnitPCMAudio()
422 ABitReader bits(mBuffer->data() + offset, mBuffer->size() - offset); in dequeueAccessUnitAAC() local
426 CHECK_EQ(bits.getBits(12), 0xfffu); in dequeueAccessUnitAAC()
427 bits.skipBits(3); // ID, layer in dequeueAccessUnitAAC()
[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/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/base/libs/androidfw/
DInput.cpp168 if (!(bits & axisBit)) { in getAxisValue()
171 uint32_t index = __builtin_popcountll(bits & (axisBit - 1LL)); in getAxisValue()
181 uint32_t index = __builtin_popcountll(bits & (axisBit - 1LL)); in setAxisValue()
182 if (!(bits & axisBit)) { in setAxisValue()
186 uint32_t count = __builtin_popcountll(bits); in setAxisValue()
191 bits |= axisBit; in setAxisValue()
220 bits = parcel->readInt64(); in readFromParcel()
222 uint32_t count = __builtin_popcountll(bits); in readFromParcel()
234 parcel->writeInt64(bits); in writeToParcel()
236 uint32_t count = __builtin_popcountll(bits); in writeToParcel()
[all …]
/frameworks/native/services/surfaceflinger/tests/resize/
Dresize.cpp53 android_memset16((uint16_t*)outBuffer.bits, 0xF800, bpr*outBuffer.height); in main()
57 android_memset16((uint16_t*)outBuffer.bits, 0x07E0, bpr*outBuffer.height); in main()
/frameworks/base/libs/androidfw/tests/
DInputEvent_test.cpp41 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
57 ASSERT_EQ(0x00000002ULL, coords.bits); in TEST_F()
67 ASSERT_EQ(0x0000000aULL, coords.bits); in TEST_F()
82 ASSERT_EQ(0x0000000bULL, coords.bits); in TEST_F()
98 ASSERT_EQ(0x0000000fULL, coords.bits); in TEST_F()
115 ASSERT_EQ(0x0000000fULL, coords.bits); in TEST_F()
134 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
139 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
154 ASSERT_EQ(0ULL, outCoords.bits); in TEST_F()
165 ASSERT_EQ(outCoords.bits, inCoords.bits); in TEST_F()
/frameworks/rs/driver/linkloader/android/
Dlibrsloader.cpp90 ELFSectionBits<32>* bits = in rsloaderUpdateSectionHeaders() local
92 if (bits) { in rsloaderUpdateSectionHeaders()
93 const unsigned char* addr = bits->getBuffer(); in rsloaderUpdateSectionHeaders()
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
DSoftVorbis.cpp230 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { in makeBitReader() argument
241 oggpack_readinit(bits, ref); in makeBitReader()
261 oggpack_buffer bits; in onQueueFilled() local
265 &buf, &ref, &bits); in onQueueFilled()
272 CHECK_EQ(0, _vorbis_unpack_info(mVi, &bits)); in onQueueFilled()
274 CHECK_EQ(0, _vorbis_unpack_books(mVi, &bits)); in onQueueFilled()

1234