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

123

/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/av/media/libstagefright/codecs/on2/h264dec/source/
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_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_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...]
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...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java72 public static long packBits(int[] bits) { argument
74 for (int b : bits) {
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...]
H A DCallbackRegistry.java59 * array of bits are allocated for the callbacks.
129 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for
159 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If
174 final long bits = mRemainderRemoved[remainderIndex];
178 notifyCallbacksLocked(sender, arg, arg2, startIndex, endIndex, bits);
183 * Notify callbacks from startIndex to endIndex, using bits as the bit status
184 * for whether they have been removed or not. bits should be from mRemainderRemoved or
185 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
196 * @param bits A bit field indicating which callbacks have been removed and shouldn't
200 final int endIndex, final long bits) {
199 notifyCallbacksLocked(T sender, int arg, A arg2, final int startIndex, final int endIndex, final long bits) argument
[all...]
/frameworks/rs/
H A Dspec.h16 int bits; member in struct:__anon2077
/frameworks/native/libs/nativewindow/include/android/
H A Dnative_window.h46 /** Red: 8 bits, Green: 8 bits, Blue: 8 bits, Alpha: 8 bits. **/
48 /** Red: 8 bits, Green: 8 bits, Blue: 8 bits, Unused: 8 bits. **/
50 /** Red: 5 bits, Green: 6 bits, Blu
101 void* bits; member in struct:ANativeWindow_Buffer
[all...]
/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/base/tools/bit/
H A Dadb.cpp87 uint32_t bits = 0; local
98 result |= uint64_t(byte & 0x7F) << bits;
102 bits += 7;
103 if (bits > 64) {
/frameworks/native/libs/math/include/math/
H A Dhalf.h59 uint16_t bits = 0; member in struct:android::half::fp16
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { }
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); }
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); }
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); }
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; }
66 constexpr unsigned int getE() const noexcept { return (bits >> 1
71 uint32_t bits = 0; member in union:android::fp32::__anon1693
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
H A DIccUtils.java200 * 8 bit number which defines bits 15 to 8 of a 16 bit
201 * base pointer, where bit 16 is set to zero and bits 7 to 1
202 * are also set to zero. These sixteen bits constitute a
206 * If bit 8 of the octet is set to zero, the remaining 7 bits
209 * remaining seven bits are an offset value added to the
443 // reassign data and index for every byte (8 bits).
478 int bits = data[valueIndex++] & 0xFF;
489 if (0 == (8 % bits)) {
491 (width * height), colorIndexArray, bits);
494 (width * height), colorIndexArray, bits);
501 mapTo2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
539 mapToNon2OrderBitColor(byte[] data, int valueIndex, int length, int[] colorArray, int bits) argument
[all...]
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
H A DCallbackRegistry.java61 * array of bits are allocated for the callbacks.
127 * This part captures the callbacks beyond Long.SIZE that have no bits allocated for
156 * Notify callbacks that have mRemainderRemoved bits set for remainderIndex. If
171 final long bits = mRemainderRemoved[remainderIndex];
175 notifyCallbacks(sender, arg, arg2, startIndex, endIndex, bits);
180 * Notify callbacks from startIndex to endIndex, using bits as the bit status
181 * for whether they have been removed or not. bits should be from mRemainderRemoved or
182 * mFirst64Removed. bits set to 0 indicates that all callbacks from startIndex to
193 * @param bits A bit field indicating which callbacks have been removed and shouldn't
197 final int endIndex, final long bits) {
196 notifyCallbacks(T sender, int arg, A arg2, final int startIndex, final int endIndex, final long bits) argument
[all...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/writer/
H A DFlagSet.java53 public FlagSet(int... bits) { argument
55 for (int i = 0 ; i < bits.length; i ++) {
56 max = Math.max(i, bits[i]);
59 for (int x = 0 ; x < bits.length; x ++) {
60 final int i = bits[x];
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
H A DIconCompat.java99 * @param bits A valid {@link android.graphics.Bitmap} object
102 public static IconCompat createWithBitmap(Bitmap bits) { argument
103 if (bits == null) {
107 rep.mObj1 = bits;
114 * @param bits A valid {@link android.graphics.Bitmap} object
117 public static IconCompat createWithAdaptiveBitmap(Bitmap bits) { argument
118 if (bits == null) {
122 rep.mObj1 = bits;
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp249 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
260 oggpack_readinit(bits, ref);
287 oggpack_buffer bits; local
291 &buf, &ref, &bits);
298 int ret = _vorbis_unpack_info(mVi, &bits);
305 int ret = _vorbis_unpack_books(mVi, &bits);
247 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp174 void* bits = NULL; local
175 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
178 if (!bits) {
193 bitmap.setPixels(bits);
/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/compile/mclinker/lib/Target/AArch64/
H A DAArch64RelocationHelpers.h21 unsigned bits) {
22 if (bits >= sizeof(int64_t) * 8)
25 int64_t max = (1 << (bits - 1)) - 1;
26 int64_t min = -(1 << (bits - 1));
20 helper_check_signed_overflow(Relocator::DWord pValue, unsigned bits) argument
/frameworks/minikin/include/minikin/
H A DFontFamily.h48 int getWeight() const { return bits & kWeightMask; }
49 bool getItalic() const { return (bits & kItalicMask) != 0; }
50 int getVariant() const { return (bits >> kVariantShift) & kVariantMask; }
54 return bits == other.bits && mLanguageListId == other.mLanguageListId;
70 uint32_t bits; member in class:minikin::FontStyle
/frameworks/av/media/libstagefright/colorconversion/
H A DColorConverter.cpp62 void *bits,
66 : mBits(bits),
61 BitmapParams( void *bits, size_t width, size_t height, size_t cropLeft, size_t cropTop, size_t cropRight, size_t cropBottom) argument

Completed in 9039 milliseconds

123