Searched defs:bits (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dsbr_decode_huff_cw.cpp41 Reads bits from the bitstream until a valid codeword is found.
137 Int32 bits; local
142 bits = buf_get_1bit(hBitBuf);
143 index = h[index][bits];
H A Dsbr_get_sce.cpp148 Int32 bits; local
151 /* reserved bits */
152 bits = buf_getbits(hBitBuf, SI_SBR_RESERVED_PRESENT);
154 if (bits)
H A Dsbr_get_cpe.cpp145 Int32 bits; local
148 /* reserved bits */
149 bits = buf_getbits(hBitBuf, SI_SBR_RESERVED_PRESENT);
151 if (bits)
158 bits = buf_getbits(hBitBuf, SI_SBR_COUPLING_BITS);
160 if (bits)
H A Dhuffcb.cpp55 when the number of bits read is 9 or less and get1bits
74 Int sectbits = array that defines the number of bits
95 Int bits = number of bits needed for expressing section length
298 Int bits; /* # of bits used to express esc_val */ local
308 bits = sectbits[0]; /* 3 for SHORT_WIN, 5 for LONG_WIN */
309 esc_val = (1 << bits) - 1; /* ESC_value for section length */
323 bits,
333 bits,
[all...]
/frameworks/base/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/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];
88 * @param bits the amount of data to write (gte 0, lte 8)
89 * @param data to write, will be masked to expose only bits param from lsb
91 public void write(int bits, int data) throws AccessException { argument
92 if ((bits <
111 writeByteArray(int bits, byte[] arr) argument
125 skip(int bits) argument
[all...]
/frameworks/base/libs/rs/
H A Dspec.h16 int bits; member in struct:__anon257
H A DrsFileA3D.cpp265 uint32_t bits = io->loadU8(); local
268 LOGE("processChunk_Primitive count %i, bits %i", p->mIndexCount, bits);
274 switch(bits) {
291 switch(bits) {
335 uint32_t bits = io->loadU8();
337 LOGE(" %i %i %i %i", dk, dt, bits, isNorm);
338 rsi_ElementAdd(rsc, dk, dt, isNorm, bits, 0);
H A DrsContext.cpp914 void rsi_ContextDump(Context *rsc, int32_t bits) argument
/frameworks/base/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/base/native/include/android/
H A Dnative_window.h52 // The actual bits.
53 void* bits; member in struct:ANativeWindow_Buffer
/frameworks/base/media/libstagefright/codecs/vorbis/dec/
H A DVorbisDecoder.cpp60 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
71 oggpack_readinit(bits, ref);
97 oggpack_buffer bits; local
98 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
99 CHECK_EQ(0, _vorbis_unpack_info(mVi, &bits));
105 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
106 CHECK_EQ(0, _vorbis_unpack_books(mVi, &bits));
58 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DIccUtils.java132 * 8 bit number which defines bits 15 to 8 of a 16 bit
133 * base pointer, where bit 16 is set to zero and bits 7 to 1
134 * are also set to zero. These sixteen bits constitute a
138 * If bit 8 of the octet is set to zero, the remaining 7 bits
141 * remaining seven bits are an offset value added to the
362 // reassign data and index for every byte (8 bits).
397 int bits = data[valueIndex++] & 0xFF;
409 if (0 == (8 % bits)) {
411 (width * height), colorIndexArray, bits);
414 (width * height), colorIndexArray, bits);
421 mapTo2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
459 mapToNon2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
[all...]
/frameworks/base/include/surfaceflinger/
H A DSurface.h144 void* bits; member in struct:android::Surface::SurfaceInfo
/frameworks/base/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp96 ABitReader *bits, unsigned *audioObjectType) {
97 *audioObjectType = bits->getBits(5);
99 *audioObjectType = 32 + bits->getBits(6);
106 ABitReader *bits,
108 unsigned frameLengthFlag = bits->getBits(1);
109 unsigned dependsOnCoreCoder = bits->getBits(1);
111 /* unsigned coreCoderDelay = */bits->getBits(1);
113 unsigned extensionFlag = bits->getBits(1);
121 /* unsigned layerNr = */bits->getBits(3);
126 /* unsigned numOfSubFrame = */bits
95 parseAudioObjectType( ABitReader *bits, unsigned *audioObjectType) argument
105 parseGASpecificConfig( ABitReader *bits, unsigned audioObjectType, unsigned channelConfiguration) argument
142 parseAudioSpecificConfig(ABitReader *bits) argument
213 parseStreamMuxConfig( ABitReader *bits, unsigned *numSubFrames, unsigned *frameLengthType, bool *otherDataPresent, unsigned *otherDataLenBits) argument
[all...]
/frameworks/base/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...]
H A Degl.cpp240 void* bits; member in struct:android::egl_window_surface_v2_t
356 blitengine(0), bits(NULL)
418 GRALLOC_USAGE_SW_WRITE_OFTEN, &bits) != NO_ERROR) {
429 if (buffer && bits) {
430 bits = NULL;
555 copyBlt(buffer, bits, previousBuffer, prevBits, copyBack);
604 GRALLOC_USAGE_SW_WRITE_OFTEN, &bits) != NO_ERROR) {
631 buffer.data = (GGLubyte*)bits;
646 buffer.data = (GGLubyte*)bits; // FIXME: hopefully is is LOCKED!!!
/frameworks/base/media/libstagefright/
H A DOggExtractor.cpp73 // Returns an approximate bitrate in bits per second.
349 // Only bits 0-2 are defined in version 0.
590 oggpack_buffer bits; local
591 oggpack_readinit(&bits, &ref);
593 CHECK_EQ(oggpack_read(&bits, 8), type);
595 oggpack_read(&bits, 8); // skip 'vorbis'
601 CHECK_EQ(0, _vorbis_unpack_info(&mVi, &bits));
623 if (0 != _vorbis_unpack_comment(&mVc, &bits)) {
633 if (0 != _vorbis_unpack_books(&mVi, &bits)) {
/frameworks/base/graphics/java/android/renderscript/
H A DRenderScript.java70 native void nContextDump(int bits); argument
97 native void nTypeSetupFields(Type t, int[] types, int[] bits, Field[] IDs); argument
305 public void contextDump(int bits) { argument
307 nContextDump(bits);
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dadj_thr.c51 * description: convert from bits to pe
55 Word16 bits2pe(const Word16 bits) { argument
56 return (bits + ((PEBITS_COEF * bits) >> 15));
926 * description: calculates factor of spending bits for one frame
927 * 1.0 : take all frame dynpart bits
928 * >1.0 : take all frame dynpart bits + bitres
929 * <1.0 : put bits in bitreservoir
/frameworks/base/media/libstagefright/codecs/avc/enc/src/
H A Dmotion_est.cpp77 int bits, imax, imin, i; local
101 for (bits = 3; bits <= max_mv_bits; bits += 2)
103 imax = 1 << (bits >> 1);
106 for (i = imin; i < imax; i++) mvbits[-i] = mvbits[i] = bits;
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dvlc_encode.cpp1988 return n_bits; /* # bits for intra_dc dpcm */
2734 Int residual, vlc_code_mag, bits, entry; local
2743 bits = PutMV(entry, bs);
2748 bits += f_code - 1;
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp203 nContextDump(JNIEnv *_env, jobject _this, jint bits) argument
206 LOG_API("nContextDump, con(%p) bits(%i)", (RsContext)con, bits);
207 rsContextDump((RsContext)con, bits);
368 int bits; member in struct:TypeFieldCache
387 // native void nTypeSetupFields(Type t, int[] types, int[] bits, Field[] IDs);
405 tfc[ct].bits = fBits[ct];

Completed in 563 milliseconds