Searched defs:bits (Results 1 - 25 of 54) sorted by path

123

/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/av/media/extractors/ogg/
H A DOggExtractor.cpp82 // Returns an approximate bitrate in bits per second.
527 // Only bits 0-2 are defined in version 0.
1019 oggpack_buffer bits; local
1020 oggpack_readinit(&bits, &ref);
1027 char chr = oggpack_read(&bits, 8);
1033 int32_t vendorLen = oggpack_read(&bits, 32);
1041 oggpack_read(&bits, 8);
1044 int32_t n = oggpack_read(&bits, 32);
1046 if (n < 0 || n > ((commentSize - oggpack_bytes(&bits)) >> 2)) {
1050 int32_t len = oggpack_read(&bits, 3
1108 oggpack_buffer bits; local
[all...]
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerDyn.cpp171 int bits = 0; local
174 for (int i=lscale; i; ++bits, i>>=1)
177 mShift = kNumPhaseBits - bits;
481 // check if locked phase (works only if mPhaseIncrement has no "fractional phase bits")
/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/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/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/vorbis/dec/
H A DSoftVorbis.cpp298 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
309 oggpack_readinit(bits, ref);
379 oggpack_buffer bits; local
381 makeBitReader((const uint8_t *)data + 7, size - 7, &buf, &ref, &bits);
388 int ret = _vorbis_unpack_info(mVi, &bits);
395 int ret = _vorbis_unpack_books(mVi, &bits);
296 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
/frameworks/av/media/libstagefright/colorconversion/
H A DColorConverter.cpp89 void *bits,
94 : mBits(bits),
88 BitmapParams( void *bits, size_t width, size_t height, size_t cropLeft, size_t cropTop, size_t cropRight, size_t cropBottom, OMX_COLOR_FORMATTYPE colorFromat) argument
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp595 void *bits = NULL; local
607 Rect(width, height), &bits);
616 ycbcr.y = bits;
617 ycbcr.cr = (uint8_t *)bits + srcStride * srcVStride;
625 ycbcr.y = bits;
626 ycbcr.cr = (uint8_t *)bits + srcStride * srcVStride;
641 (const uint8_t *)bits, width, height, srcStride,
/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 __unused = 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...]
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/
H A DLongitudinalReportingEncoder.java143 public byte[] encodeBits(byte[] bits) { argument
/frameworks/base/core/java/android/privacy/internal/rappor/
H A DRapporEncoder.java126 public byte[] encodeBits(byte[] bits) { argument
127 return mEncoder.encodeBits(bits);
/frameworks/base/core/java/android/util/
H A DHalf.java36 * <li>Exponent width: 5 bits</li>
37 * <li>Significand: 10 bits</li>
97 * The number of bits used to represent a half-precision float value.
439 * @return The bits that represent the half-precision float value
456 * @return The bits that represent the half-precision float value
472 * most significant bits of the returned value are set to 0.</p>
475 * @return The bits that represent the half-precision float value
490 * most significant bits of the argument are ignored.</p>
492 * @param bits An integer
495 public static @HalfFloat short intBitsToHalf(int bits) { argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DBitUtils.java79 public static long packBits(int[] bits) { argument
81 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/base/core/java/com/android/internal/util/function/pooled/
H A DPooledLambdaImpl.java514 private static int unmask(int mask, int bits) { argument
515 return (bits & mask) / (1 << Integer.numberOfTrailingZeros(mask));
519 * Contract for encoding a supported lambda type in {@link #MASK_BIT_COUNT} bits
/frameworks/base/core/jni/android/graphics/
H A DGraphicBuffer.cpp185 void* bits = NULL; local
186 status_t status = buffer->lock(LOCK_CANVAS_USAGE, rect, &bits);
189 if (!bits) {
204 bitmap.setPixels(bits);
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_DngCreator.cpp1121 // Set bits per sample
1122 uint16_t bits = static_cast<uint16_t>(bitsPerSample); local
1123 BAIL_IF_INVALID_RET_NULL_SP(writer->addEntry(TAG_BITSPERSAMPLE, 1, &bits, TIFF_IFD_0), env,
2003 // Set bits per sample
2004 uint16_t bits[SAMPLES_PER_RGB_PIXEL]; local
2005 for (int i = 0; i < SAMPLES_PER_RGB_PIXEL; i++) bits[i] = BITS_PER_RGB_SAMPLE;
2007 writer->addEntry(TAG_BITSPERSAMPLE, SAMPLES_PER_RGB_PIXEL, bits, TIFF_IFD_0),
H A Dandroid_view_MotionEvent.cpp216 BitSet64 bits = local
218 if (!bits.isEmpty()) {
227 uint32_t axis = bits.clearFirstMarkedBit();
229 } while (!bits.isEmpty());
280 BitSet64 bits = BitSet64(rawPointerCoords->bits); local
281 bits.clearBit(AMOTION_EVENT_AXIS_X);
282 bits.clearBit(AMOTION_EVENT_AXIS_Y);
283 bits.clearBit(AMOTION_EVENT_AXIS_PRESSURE);
284 bits
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java590 * @param bits A valid {@link android.graphics.Bitmap} object
592 public static Icon createWithBitmap(Bitmap bits) { argument
593 if (bits == null) {
597 rep.setBitmap(bits);
604 * @param bits A valid {@link android.graphics.Bitmap} object
606 public static Icon createWithAdaptiveBitmap(Bitmap bits) { argument
607 if (bits == null) {
611 rep.setBitmap(bits);
769 final Bitmap bits = Bitmap.CREATOR.createFromParcel(in);
770 mObj1 = bits;
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java265 native void rsnContextDump(long con, int bits); argument
266 synchronized void nContextDump(int bits) { argument
268 rsnContextDump(mContext, bits);
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp936 nContextDump(JNIEnv *_env, jobject _this, jlong con, jint bits) argument
939 ALOGD("nContextDump, con(%p) bits(%i)", (RsContext)con, bits);
941 rsContextDump((RsContext)con, bits);
1231 nAllocationSyncAll(JNIEnv *_env, jobject _this, jlong con, jlong a, jint bits) argument
1234 ALOGD("nAllocationSyncAll, con(%p), a(%p), bits(0x%08x)", (RsContext)con, (RsAllocation)a,
1235 bits);
1237 rsAllocationSyncAll((RsContext)con, (RsAllocation)a, (RsAllocationUsageType)bits);
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java685 // Utility: build a new random integer token. The low bits are the ordinal of the
686 // operation for near-time uniqueness, and the upper bits are random for app-
1091 public byte[] randomBytes(int bits) { argument
1092 byte[] array = new byte[bits / 8];

Completed in 514 milliseconds

123