Searched refs:bits (Results 1 - 25 of 75) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseInputStream.java32 // The current position offset, in bits, from the msb in byte 0.
71 * @param bits the amount of data to read (gte 0, lte 8)
74 public int read(int bits) throws AccessException { argument
76 int offset = 16 - (mPos & 0x07) - bits; // &7==%8
77 if ((bits < 0) || (bits > 8) || ((mPos + bits) > mEnd)) {
79 "(pos " + mPos + ", end " + mEnd + ", bits " + bits + ")");
84 data &= (-1 >>> (32 - bits));
95 readByteArray(int bits) argument
110 skip(int bits) argument
[all...]
H A DBitwiseOutputStream.java32 // The current position offset, in bits, from the msb in byte 0.
73 * @param bits additional bits to be accommodated
75 private void possExpand(int bits) { argument
76 if ((mPos + bits) < mEnd) return;
77 byte[] newBuf = new byte[(mPos + bits) >>> 2];
89 * @param bits the amount of data to write (gte 0, lte 8)
90 * @param data to write, will be masked to expose only bits param from lsb
92 public void write(int bits, int data) throws AccessException { argument
93 if ((bits <
112 writeByteArray(int bits, byte[] arr) argument
126 skip(int bits) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_vlc.c84 of 65, i.e. 32 '0' bits, a '1' bit, and either 0 or 1 represented
85 by 32 bits.
108 u32 bits, numZeros; local
115 bits = h264bsdShowBits32(pStrmData);
118 if (bits >= 0x80000000)
125 else if (bits >= 0x40000000)
129 *codeNum = 1 + ((bits >> 29) & 0x1);
133 else if (bits >= 0x20000000)
137 *codeNum = 3 + ((bits >> 27) & 0x3);
141 else if (bits >
[all...]
H A Dh264bsd_cavlc.c52 * 4 bits symbol value (bits [4,7]) along with four bits to represent length
53 * of the VLC code word (bits [0,3]) */
55 /* macro to obtain length of the coeff token information field, bits [0,4] */
57 /* macro to obtain length of the other information fields, bits [0,3] */
59 /* macro to obtain code word from the information fields, bits [4,7] */
60 #define INFO(vlc) (((vlc) >> 4) & 0xF) /* 4 MSB bits contain information */
62 * bits [5,10] */
65 * bits [1
395 DecodeCoeffToken(u32 bits, u32 nc) argument
472 DecodeLevelPrefix(u32 bits) argument
538 DecodeTotalZeros(u32 bits, u32 totalCoeff, u32 isChromaDC) argument
660 DecodeRunBefore(u32 bits, u32 zerosLeft) argument
[all...]
H A Dh264bsd_stream.c57 Read and remove bits from the stream buffer.
61 numBits number of bits to read
67 bits read from stream
68 END_OF_STREAM if not enough bits left
98 Read 32 bits from the stream buffer. Buffer is left as it is, i.e.
99 no bits are removed. First bit read from the stream is the MSB of
100 the return value. If there is not enough bits in the buffer ->
101 bits beyong the end of the stream are set to '0' in the return
111 bits read from stream
118 i32 bits, shif local
[all...]
H A Dh264bsd_util.c48 /* look-up table for expected values of stuffing bits */
70 length number of bits in the code word
106 Check Raw Byte Stream Payload (RBSP) trailing bits, i.e. stuffing.
109 more '0' bits.
118 HANTRO_OK RBSP trailing bits found
156 -more than 8 bits left or
157 -last bits are not RBSP trailing bits
176 u32 bits; local
183 bits
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
H A Dbits2prm.h40 * : the received serial bits in a frame.
76 * the received serial bits in a frame.
83 Word16 bits[], /* input : serial bits, (244 + bfi) */
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dprm2bits.h40 * : vector of serial bits.
74 Word16 bits[] /* output: serial bits */
H A Dprm2bits.cpp92 no_of_bits = number of bits associated with value of type Word16
95 bitstream = pointer to address where bits are written of type Word16
111 PURPOSE: convert integer to binary and write the bits to the array
112 bitstream[]. The most significant bits are written first.
129 Word16 no_of_bits, // input : number of bits associated with value
130 Word16 *bitstream // output: address where bits are written
180 Word16 no_of_bits, /* input : number of bits associated with value */
181 Word16 *bitstream /* output: address where bits are written */
209 bits[] = pointer to serial bits o
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp99 ABitReader *bits, unsigned *audioObjectType) {
100 *audioObjectType = bits->getBits(5);
102 *audioObjectType = 32 + bits->getBits(6);
109 ABitReader *bits,
111 unsigned frameLengthFlag = bits->getBits(1);
112 unsigned dependsOnCoreCoder = bits->getBits(1);
114 /* unsigned coreCoderDelay = */bits->getBits(1);
116 unsigned extensionFlag = bits->getBits(1);
124 /* unsigned layerNr = */bits->getBits(3);
129 /* unsigned numOfSubFrame = */bits
98 parseAudioObjectType( ABitReader *bits, unsigned *audioObjectType) argument
108 parseGASpecificConfig( ABitReader *bits, unsigned audioObjectType, unsigned channelConfiguration) argument
145 parseAudioSpecificConfig(ABitReader *bits, sp<ABuffer> *asc) argument
255 parseStreamMuxConfig( ABitReader *bits, unsigned *numSubFrames, unsigned *frameLengthType, ssize_t *fixedFrameLength, bool *otherDataPresent, unsigned *otherDataLenBits) argument
[all...]
H A DAMPEG4ElementaryAssembler.cpp254 unsigned AU_headers_length = U16_AT(buffer->data()); // in bits
260 ABitReader bits(buffer->data() + 2, buffer->size() - 2);
267 unsigned AU_size = bits.getBits(mSizeLength);
273 unsigned AU_index = bits.getBits(n);
287 if (bits.getBits(1)) {
291 bits.skipBits(mCTSDeltaLength);
301 if (bits.getBits(1)) {
305 bits.skipBits(mDTSDeltaLength);
314 bits.skipBits(1);
322 bits
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dbits2prm.cpp83 no_of_bits = number of bits associated with value
84 bitstream = pointer to buffer where bits are read
102 Purpose : Read "no_of_bits" bits from the array bitstream[]
119 Word16 no_of_bits, // input : number of bits associated with value
120 Word16 *bitstream // output: address where bits are written
163 Word16 no_of_bits, /* input : number of bits associated with value */
164 Word16 *bitstream /* input: address where bits are read from */
190 bits[] = pointer to serial bits of type Word16
210 the received serial bits i
269 Bits2prm( enum Mode mode, Word16 bits[], Word16 prm[] ) argument
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_crc.cpp45 int32 neededBits, number of bits to read from the bit stream
124 int32 neededBits, /* number of bits to read from the bit stream */
128 uint32 bits = getNbits(inputStream, neededBits); local
132 calculate_crc(bits, neededBits, crc);
134 return(bits);
/frameworks/rs/
H A 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
[all...]
H A Dspec.h16 int bits; member in struct:__anon1567
/frameworks/support/renderscript/v8/rs_support/
H A 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
[all...]
H A Dspec.h16 int bits; member in struct:__anon1596
/frameworks/av/cmds/stagefright/
H A Djpeg.cpp25 static inline uint8_t from565to8(uint16_t p, int start, int bits) { argument
26 uint8_t c = (p >> start) & ((1 << bits) - 1);
27 return (c << (8 - bits)) | (c >> (bits - (8 - bits)));
/frameworks/native/opengl/libagl/
H A Ddxt.cpp162 // There's no need to endian-swap within 'bits'
164 uint32_t bits = *d32++; local
166 // Detect if any (odd, even) pair of bits are '11'
167 // bits: b31 b30 b29 ... b3 b2 b1 b0
168 // bits >> 1: b31 b31 b30 ... b4 b3 b2 b1
171 if (((bits & (bits >> 1)) & 0x55555555) != 0) {
216 uint32_t bits = *d32++; local
220 bits = swap(bits);
339 uint32_t bits = *d32++; local
463 uint32_t bits = *d32++; local
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIccUtils.java160 * 8 bit number which defines bits 15 to 8 of a 16 bit
161 * base pointer, where bit 16 is set to zero and bits 7 to 1
162 * are also set to zero. These sixteen bits constitute a
166 * If bit 8 of the octet is set to zero, the remaining 7 bits
169 * remaining seven bits are an offset value added to the
403 // reassign data and index for every byte (8 bits).
438 int bits = data[valueIndex++] & 0xFF;
449 if (0 == (8 % bits)) {
451 (width * height), colorIndexArray, bits);
454 (width * height), colorIndexArray, bits);
461 mapTo2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
499 mapToNon2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dadj_thr.h30 Word16 bits2pe(const Word16 bits);
/frameworks/compile/slang/
H A Dslang_rs_type_spec.h75 #define ENUM_PRIMITIVE_DATA_TYPE(x, name, bits) RS_DT_ ## x,
112 unsigned bits; // NOTE: Little-endian is assumed. member in union:RSTypeBase::__anon1307
145 // esize is encoded in base.bits{8-31} in little-endian way. This implicates
158 // num_fields is encoded in base.bits{16-31} in little-endian way. This
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
[all...]
/frameworks/native/services/surfaceflinger/tests/resize/
H A Dresize.cpp52 android_memset16((uint16_t*)info.bits, 0xF800, bpr*info.h);
56 android_memset16((uint16_t*)info.bits, 0x07E0, bpr*info.h);
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp56 uint32_t* bits = buf->pixels + y * buf->s; local
58 bits[x] = pixel;
62 bits[x+W] = pixel;
78 uint32_t* bits = buf->pixels + y * buf->s + x; local
79 android_memset32(bits, pixel, W*4);
97 uint32_t* bits = buf->pixels + y * buf->s + x; local
99 android_memset32(bits, pixel, W*4);
100 bits += buf->s;
227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); local
232 framebuffer.addr = bits;
[all...]
/frameworks/base/libs/androidfw/
H A DInput.cpp164 if (!(bits & axisBit)) {
167 uint32_t index = __builtin_popcountll(bits & (axisBit - 1LL));
177 uint32_t index = __builtin_popcountll(bits & (axisBit - 1LL));
178 if (!(bits & axisBit)) {
182 uint32_t count = __builtin_popcountll(bits);
187 bits |= axisBit;
216 bits = parcel->readInt64();
218 uint32_t count = __builtin_popcountll(bits);
230 parcel->writeInt64(bits);
232 uint32_t count = __builtin_popcountll(bits);
[all...]

Completed in 1416 milliseconds

123