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

12

/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/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 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...]
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)
/frameworks/base/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/base/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/base/awt/java/awt/image/
H A DPackedColorModel.java59 * @param bits
74 * if the number of bits in the combined bitmasks for the color
77 public PackedColorModel(ColorSpace space, int bits, int colorMaskArray[], int alphaMask, argument
80 super(bits, createBits(colorMaskArray, alphaMask), space, (alphaMask == 0 ? false : true),
84 // awt.236=The bits is less than 1 or greater than 32
95 if (this.bits[numColorComponents] == 1) {
108 * @param bits
126 * if the number of bits in the combined bitmasks for the color
129 public PackedColorModel(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, argument
132 super(bits, createBit
[all...]
H A DColorModel.java40 protected int pixel_bits; // Pixel length in bits
78 * The bits.
80 int[] bits; // Array of components masks field in class:ColorModel
92 int maxBitLength; // Max length color components in bits
103 * the pixel length in bits.
104 * @param bits
118 protected ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, argument
122 // awt.26B=The number of bits in the pixel values is less than 1
126 if (bits == null) {
127 // awt.26C=bits i
191 ColorModel(int bits) argument
947 getTransferType(int bits) argument
[all...]
H A DIndexColorModel.java59 * The valid bits.
94 * @param bits
107 * a list of which bits represent valid colormap values, or null
112 public IndexColorModel(int bits, int size, int cmap[], int start, int transferType, argument
115 super(bits, IndexColorModel.createBits(true), ColorSpace.getInstance(ColorSpace.CS_sRGB),
166 * @param bits
185 public IndexColorModel(int bits, int size, int cmap[], int start, boolean hasalpha, int trans, argument
188 super(bits, IndexColorModel.createBits(hasalpha || (trans >= 0)), ColorSpace
244 * @param bits
266 public IndexColorModel(int bits, in argument
301 IndexColorModel(int bits, int size, byte r[], byte g[], byte b[], int trans) argument
334 IndexColorModel(int bits, int size, byte r[], byte g[], byte b[]) argument
362 IndexColorModel(int bits, int size, byte cmap[], int start, boolean hasalpha, int trans) argument
435 IndexColorModel(int bits, int size, byte cmap[], int start, boolean hasalpha) argument
[all...]
H A DDirectColorModel.java100 * @param bits
116 * if the number of bits in the combined bitmasks for the color
119 public DirectColorModel(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, argument
122 super(space, bits, rmask, gmask, bmask, amask, isAlphaPremultiplied,
130 * the bits array, the transparency from the alpha mask, and the default
133 * @param bits
144 public DirectColorModel(int bits, int rmask, int gmask, int bmask, int amask) { argument
146 super(ColorSpace.getInstance(ColorSpace.CS_sRGB), bits, rmask, gmask, bmask, amask, false,
148 .getTransferType(bits));
155 * the transfer type from the bits arra
168 DirectColorModel(int bits, int rmask, int gmask, int bmask) argument
[all...]
H A DComponentColorModel.java155 * @param bits
167 public ComponentColorModel(ColorSpace colorSpace, int bits[], boolean hasAlpha, argument
169 super(createPixelBits(colorSpace, hasAlpha, transferType), validateBits(bits, colorSpace,
189 maxValues[numColorComponents] = (1 << bits[numColorComponents]) - 1;
255 * Validate bits.
257 * @param bits
258 * the bits.
267 private static int[] validateBits(int bits[], ColorSpace colorSpace, boolean hasAlpha, argument
269 if (bits != null) {
270 return 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/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/libs/rs/
H A Dspec.l77 currType->bits = 8;
83 currType->bits = 16;
89 currType->bits = 32;
95 currType->bits = 64;
101 currType->bits = 8;
107 currType->bits = 16;
113 currType->bits = 32;
119 currType->bits = 64;
125 currType->bits = 32;
131 currType->bits
[all...]
H A Dspec.h16 int bits; member in struct:__anon213
/frameworks/base/awt/org/apache/harmony/awt/gl/color/
H A DLUTColorConverter.java116 public static byte[] getsRGBLUT(int bits) { argument
117 if (bits < 1) return null;
118 int idx = bits -1;
122 fromsRGBto8sRGB_LUTs[idx] = createLUT(bits);
127 private static byte[] createLUT(int bits) { argument
128 int lutSize = (1 << bits);
/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...]
/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/libs/surfaceflinger/tests/resize/
H A Dresize.cpp47 android_memset16((uint16_t*)info.bits, 0xF800, bpr*info.h);
51 android_memset16((uint16_t*)info.bits, 0x07E0, bpr*info.h);
/frameworks/base/media/libstagefright/codecs/vorbis/dec/
H A DVorbisDecoder.cpp56 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
67 oggpack_readinit(bits, ref);
93 oggpack_buffer bits; local
94 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
95 CHECK_EQ(0, _vorbis_unpack_info(mVi, &bits));
101 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
102 CHECK_EQ(0, _vorbis_unpack_books(mVi, &bits));
54 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
/frameworks/base/awt/javax/imageio/
H A DImageTypeSpecifier.java162 * @param bits
163 * the number of bits per gray value.
170 public static ImageTypeSpecifier createGrayscale(int bits, int dataType, boolean isSigned) { argument
177 * @param bits
178 * the number of bits per gray value.
188 public static ImageTypeSpecifier createGrayscale(int bits, int dataType, boolean isSigned, argument
204 * @param bits
205 * the bits number for each index.
211 byte[] alphaLUT, int bits, int dataType) {
268 * Gets the number of bits pe
210 createIndexed(byte[] redLUT, byte[] greenLUT, byte[] blueLUT, byte[] alphaLUT, int bits, int dataType) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DSurface.java250 int[] bits = ccm.getComponentSize();
252 for (int i = 0; i < bits.length; i++) {
253 if (bits[i] != 8 ||
275 int bits[] = cm.getComponentSize();
277 bits[0] == 8){
280 bits[0] == 16){

Completed in 260 milliseconds

12