Searched defs:offset (Results 1 - 25 of 274) sorted by relevance

1234567891011

/frameworks/base/media/libstagefright/codecs/mp3dec/src/
H A Ds_mp3bits.h94 uint32 offset; member in struct:__anon634
H A Dpvmp3_getbits.cpp114 uint32 offset; local
127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE));
131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE));
132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE));
162 uint32 offset; local
168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE));
171 Elem1 = *(ptBitStream->pBuffer + module(offset
198 uint32 offset; local
236 uint32 offset; local
[all...]
/frameworks/base/libs/binder/
H A DMemoryBase.cpp29 ssize_t offset, size_t size)
30 : mSize(size), mOffset(offset), mHeap(heap)
34 sp<IMemoryHeap> MemoryBase::getMemory(ssize_t* offset, size_t* size) const argument
36 if (offset) *offset = mOffset;
28 MemoryBase(const sp<IMemoryHeap>& heap, ssize_t offset, size_t size) argument
/frameworks/base/media/libstagefright/codecs/amrwb/src/
H A Disp_isf.cpp154 int16 i, ind, offset; local
166 offset = (isp[i] & 0x007f); /* offset = b0-b6 of isf[i] */
168 /* isp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 128 */
170 L_tmp = mul_16by16_to_int32(table[ind + 1] - table[ind], offset);
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
H A Disp_isf.c67 Word16 offset; local
79 offset = (Word16) (isp[i] & 0x007f); /* offset = b0-b6 of isf[i] */
81 /* isp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 128 */
82 L_tmp = vo_L_mult(vo_sub(table[ind + 1], table[ind]), offset);
/frameworks/base/media/libstagefright/foundation/
H A Dhexdump.cpp35 size_t offset = 0; local
36 while (offset < size) {
40 sprintf(tmp, "%08lx: ", (unsigned long)offset);
48 if (offset + i >= size) {
51 sprintf(tmp, "%02x ", data[offset + i]);
59 if (offset + i >= size) {
63 if (isprint(data[offset + i])) {
64 line.append((char)data[offset + i]);
72 offset += 16;
H A DABuffer.cpp56 void ABuffer::setRange(size_t offset, size_t size) { argument
57 CHECK_LE(offset, mCapacity);
58 CHECK_LE(offset + size, mCapacity);
60 mRangeOffset = offset;
/frameworks/base/cmds/keystore/
H A Dkeystore_cli.c80 int offset; local
86 for (offset = 0; offset < length; offset += i) {
87 i = recv(sock, &bytes[offset], length - offset, 0);
H A Dkeystore_get.h58 int offset = 0; local
60 while (offset < length) {
61 int n = recv(sock, &value[offset], length - offset, 0);
66 offset += n;
/frameworks/base/core/java/android/app/backup/
H A DBackupDataInputStream.java69 * {@code offset} within the array.
72 * @param offset The data will be stored in {@code b} beginning at this index
80 public int read(byte[] b, int offset, int size) throws IOException { argument
81 return mData.readEntityData(b, offset, size);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothInputStream.java70 * the byte array {@code b} starting at {@code offset}.
74 * @param offset
82 * if {@code offset < 0} or {@code length < 0}, or if
83 * {@code offset + length} is greater than the length of
89 public int read(byte[] b, int offset, int length) throws IOException { argument
93 if ((offset | length) < 0 || length > b.length - offset) {
94 throw new ArrayIndexOutOfBoundsException("invalid offset or length");
96 return mSocket.read(b, offset, length);
H A DBluetoothOutputStream.java61 * at position {@code offset} to this stream.
65 * @param offset
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
83 throw new IndexOutOfBoundsException("invalid offset or length");
85 mSocket.write(b, offset, count);
/frameworks/base/graphics/java/android/graphics/
H A DPoint.java58 public final void offset(int dx, int dy) { method in class:Point
H A DPointF.java62 public final void offset(float dx, float dy) { method in class:PointF
/frameworks/base/media/libmediaplayerservice/
H A DMidiMetadataRetriever.cpp50 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
52 LOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
58 return mMidiPlayer->setDataSource(fd, offset, length);;
/frameworks/base/media/libstagefright/
H A DFileSource.cpp28 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument
30 mOffset(offset),
32 CHECK(offset >= 0);
47 ssize_t FileSource::readAt(off_t offset, void *data, size_t size) { argument
55 if (offset >= mLength) {
58 int64_t numAvailable = mLength - offset;
64 int err = fseeko(mFile, offset + mOffset, SEEK_SET);
66 LOGE("seek to %lld failed", offset + mOffset);
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dcalc_gsfb_table.cpp115 offset = 0;
119 pFrameInfo->group_len[group_idx] = group[group_idx] - offset;
120 offset = group[group_idx];
123 WHILE (offset < NUM_SHORT_WINDOWS);
129 offset = 0;
137 offset += pFrameInfo->sfb_width_128[sfb] * len;
138 *pFrameSfbTop++ = offset;
217 Int offset; local
232 offset = 0;
236 pFrameInfo->group_len[ngroups] = group[ngroups] - offset;
[all...]
H A Dgetbits.h103 UInt offset; local
107 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
109 pElem = pInputStream->pBuffer + offset;
113 offset = pInputStream->inputBufferCurrentLength - offset;
115 if (offset > 3)
132 switch (offset)
175 UInt offset; local
179 offset = (pInputStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT;
181 pElem = pInputStream->pBuffer + offset;
210 UInt offset; local
274 UInt offset; local
[all...]
H A Dsbr_get_envelope.cpp146 Int32 offset = 0; local
236 h_frame_data->iEnvelope_man[offset] = tmp << envDataTableCompFactor;
241 h_frame_data->iEnvelope_man[offset] = tmp;
257 h_frame_data->iEnvelope_man[offset + i] = delta << envDataTableCompFactor;
259 offset += no_band[j];
/frameworks/base/media/libstagefright/codecs/aacenc/inc/
H A Dline_pe.h48 Word16 offset; member in struct:__anon507
/frameworks/base/media/libstagefright/codecs/amrnb/common/src/
H A Dlsp_lsf.cpp174 Word16 i, ind, offset;
180 offset = lsf[i] & 0x00ff; // offset = b0-b7 of lsf[i]
182 // lsp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 256
184 L_tmp = L_mult (sub (table[ind + 1], table[ind]), offset);
221 Word16 i, ind, offset; local
227 offset = lsf[i] & 0x00ff; /* offset = b0-b7 of lsf[i] */
229 /* lsp[i] = table[ind]+ ((table[ind+1]-table[ind])*offset) / 256 */
231 L_tmp = ((Word32)(table[ind + 1] - table[ind]) * offset) >>
[all...]
/frameworks/base/media/tests/omxjpegdecoder/
H A DStreamSource.cpp38 ssize_t StreamSource::readAt(off_t offset, void *data, size_t size) { argument
42 mStream->skip(offset);
/frameworks/base/core/java/com/android/internal/util/
H A DHexDump.java28 public static String dumpHexString(byte[] array, int offset, int length) argument
36 result.append(toHexString(offset));
38 for (int i = offset ; i < offset + length ; i++)
104 public static String toHexString(byte[] array, int offset, int length) argument
109 for (int i = offset ; i < offset + length; i++)
/frameworks/base/include/media/stagefright/foundation/
H A DABuffer.h41 size_t offset() const { return mRangeOffset; } function in struct:android::ABuffer
43 void setRange(size_t offset, size_t size);
/frameworks/base/libs/rs/java/Film/res/raw/
H A Dfilmstrip.c71 int offset = (int)floorf(pos * 2.f); local
74 offset = offset + triangleOffsetsCount / 2;
75 if (!((offset < 0) || (offset >= triangleOffsetsCount))) {
76 int start = offset -2;
77 int end = offset + 2;

Completed in 349 milliseconds

1234567891011