/frameworks/av/cmds/screenrecord/ |
H A D | Program.cpp | 207 const float pos[] = { local 221 err = beforeDraw(texName, texMatrix, pos, uv, invert);
|
/frameworks/av/include/media/ |
H A D | RingBuffer.h | 49 iterator(T* ptr, size_t size, size_t pos, size_t ctr); 75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr); 177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : argument 178 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} 221 RingBuffer<T>::const_iterator::const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) : argument 222 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} 332 size_t pos = (index >= mFrontIdx) ? local 334 return mBuffer[pos]; 341 size_t pos = (index >= mFrontIdx) ? local 343 return mBuffer[pos]; [all...] |
/frameworks/av/media/libmedia/ |
H A D | Metadata.cpp | 148 size_t pos = mData->dataPosition(); local 159 mData->setDataPosition(pos + size);
|
H A D | MidiIoWrapper.cpp | 27 static int readAt(void *handle, void *buffer, int pos, int size) { argument 28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size);
|
/frameworks/av/media/libstagefright/ |
H A D | AACExtractor.cpp | 337 off64_t pos = 0; local 341 if (source->readAt(pos, id3header, sizeof(id3header)) 360 pos += len; 363 (long long)pos, (long long)pos); 368 if (source->readAt(pos, &header, 2) != 2) { 378 (*meta)->setInt64("offset", pos);
|
H A D | MP3Extractor.cpp | 93 off64_t pos = *inout_pos; local 106 if (pos >= (off64_t)(*inout_pos + kMaxBytesChecked)) { 108 ALOGV("giving up at offset %lld", (long long)pos); 124 totalBytesRead = source->readAt(pos + remainingBytes, 141 ++pos; 152 ++pos; 158 ALOGV("found possible 1st frame at %lld (header = 0x%08x)", (long long)pos, header); 163 off64_t test_pos = pos + frame_size; 195 *inout_pos = pos; 204 ++pos; 256 off64_t pos = 0; local 563 off64_t pos = mCurrentPos; local 672 off64_t pos = 0; local [all...] |
H A D | MPEG4Writer.cpp | 146 // @arg pos location the value must be in. 147 void set(const TYPE& value, uint32_t pos) { argument 148 CHECK_LT(pos, mTotalNumTableEntries * mEntryCapacity); 151 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 159 (*it)[(pos % (mElementCapacity * mEntryCapacity))] = value; 164 // @arg pos location the value must be in. 166 bool get(TYPE& value, uint32_t pos) const { 167 if (pos >= mTotalNumTableEntries * mEntryCapacity) { 172 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 180 value = (*it)[(pos 196 uint32_t pos = nEntries * mEntryCapacity + nValues; local [all...] |
H A D | MediaCodecListOverrides.cpp | 242 ssize_t pos = s.find(delimiter.c_str()); local 243 if (pos < 0) { 246 *s1 = AString(s, 0, pos); 247 *s2 = AString(s, pos + 1, s.size() - pos - 1);
|
H A D | OggExtractor.cpp | 426 off64_t pos = timeUs * bps / 8000000ll; local 428 ALOGV("seeking to offset %lld", (long long)pos); 429 return seekToOffset(pos);
|
H A D | VBRISeeker.cpp | 42 off64_t pos = post_id3_pos; local 45 ssize_t n = source->readAt(pos, header, sizeof(header)); 58 pos += sizeof(header) + 32; 61 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); 89 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); 151 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 159 *pos = mBasePos; 163 *pos += mSegments.itemAt(segmentIndex++); 166 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos);
|
H A D | WAVExtractor.cpp | 421 int64_t pos = 0; local 427 pos = framenumber * 65; 429 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); 431 if (pos > (off64_t)mSize) { 432 pos = mSize; 434 mCurrentPos = pos + mOffset;
|
H A D | XINGSeeker.cpp | 46 bool XINGSeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 73 *pos = (int)((1.0f/256.0f)*fx*mSizeBytes) + mFirstFramePos;
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | d2_11pf.cpp | 160 Word16 pos[NB_PULSE]; local 170 pos[0] = i * 5 + j * 2 + 1; 185 pos[1] = i * 5 + 4; 189 pos[1] = i * 5 + j; 210 * cod[pos[j]] = 8191; 214 * cod[pos[j]] = -8192; 218 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d2_9pf.cpp | 187 Word16 pos[NB_PULSE]; local 207 pos[0] = i * 5 + startPos[k++]; 215 pos[1] = i * 5 + startPos[k]; 234 * cod[pos[j]] = 8191; 238 * cod[pos[j]] = -8192; 242 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d3_14pf.cpp | 165 Word16 pos[NB_PULSE]; local 171 pos[0] = i * 5; 185 pos[1] = i * 5 + j * 2 + 1; 199 pos[2] = i * 5 + j * 2 + 2; 218 * cod[pos[j]] = 8191; 222 * cod[pos[j]] = -8192; 226 cod[pos[j]] = i * 16383 - 8192;
|
H A D | d4_17pf.cpp | 46 the calculation of pos[2] incorrectly. The correct formula is pos2 =i*5+2, 185 Word16 pos[NB_PULSE]; local 203 pos[0] = i * 5; /* pos0 =i*5 */ 212 pos[1] = i * 5 + 1; /* pos1 =i*5+1 */ 222 pos[2] = i * 5 + 2; /* pos2 =i*5+2 */ 238 pos[3] = i * 5 + 3 + j; /* pos3 =i*5+3+j */ 257 * cod[pos[j]] = 8191; 261 * cod[pos[j]] = -8192; 265 cod[pos[j]] = i * 16383 - 8192;
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | c3_14pf.cpp | 389 Word16 pos; local 586 pos = ipos[2]; 589 ipos[0] = pos; 706 /* index = pos/5 */ 710 /* track = pos%5 */
|
H A D | c4_17pf.cpp | 403 Word16 pos; local 653 pos = ipos[3]; 657 ipos[0] = pos; 778 /* index = pos/5 */ 782 /* track = pos%5 */
|
H A D | s10_8pf.cpp | 191 Word16 i, j, k, pos, ia, ib; 520 pos = ipos[1]; 525 ipos[sub(nbPulse,1)] = pos; 570 Word16 pos, ia, ib; local 982 pos = ipos[1]; 987 ipos[nbPulse-1] = pos;
|
H A D | set_sign.cpp | 178 Word16 pos = 0; //initialization only needed to keep gcc silent 211 pos = j; 215 dn2[pos] = -1; 253 Word16 pos = 0; /* initialization only needed to keep gcc silent */ local 288 pos = j; 292 dn2[pos] = -1; 369 Word16 pos = 0; // initialization only needed to keep gcc silent 428 pos = j; 432 pos_max[i] = pos; 447 pos 504 Word16 pos = 0; /* initialization only needed to keep gcc silent */ local [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | dec_acelp_4p_in_64.cpp | 123 void add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]); 160 int16 k, pos[6]; local 173 dec_1p_N1(L_index, 4, 0, pos); 174 add_pulses(pos, 1, k, code); 182 dec_2p_2N1(L_index, 4, 0, pos); 183 add_pulses(pos, 2, k, code); 190 dec_3p_3N1(L_index, 4, 0, pos); 191 add_pulses(pos, 3, k, code); 196 dec_2p_2N1(L_index, 4, 0, pos); 197 add_pulses(pos, 246 add_pulses(int16 pos[], int16 nb_pulse, int16 track, int16 code[]) argument [all...] |
H A D | dec_alg_codebook.cpp | 87 #define NB_POS 16 /* pos in track, mask for sign bit */ 118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 135 pos[0] = pos1; 145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 180 pos[0] = pos1; 181 pos[1] = pos2; 192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); 219 dec_1p_N1(idx, N, offset, pos + 2); 229 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) argument 265 dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]) argument 316 dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]) argument 350 dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | c2t64fx.c | 56 Word32 i, j, k, i0, i1, ix, iy, pos, pos2; local 168 pos = MSIZE - 1; 174 p1 = &rrixiy[pos]; 199 pos -= NB_POS; 224 * 32 pos x 32 pos = 1024 tests (all combinaisons is tested) * 239 pos = -1; 250 pos = i1; 254 if (pos >= 0) 257 iy = pos; [all...] |
H A D | c4t64fx.c | 103 Word16 nb_pos_ix, /* (i) nb of pos for pulse 1 (1..8) */ 136 Word16 st, ix, iy, pos, index, track, nb_pulse, nbiter, j_temp; local 300 pos = 0; 311 pos = j; 314 dn2[pos] = (k - NB_MAX); /* dn2 < 0 when position is selected */ 317 pos_max[i] = pos; 412 pos = MSIZE - 1; 417 p3 = &rrixiy[2][pos]; 418 p2 = &rrixiy[1][pos]; 419 p1 = &rrixiy[0][pos]; 844 Word32 i, j, pos, corr; local 916 Word32 i, j, pos, corr; local 987 Word32 x, y, pos, thres_ix; local [all...] |
H A D | decim54.c | 96 Word32 i, j, frac, pos; local 100 pos = 0; /* position is in Q2 -> 1/4 resolution */ 103 i = (pos >> 2); /* integer part */ 104 frac = pos & 3; /* fractional part */ 141 pos += FAC5; /* pos + 5/4 */
|