/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/extractors/aac/ |
H A D | AACExtractor.cpp | 336 off64_t pos = 0; local 340 if (source->readAt(pos, id3header, sizeof(id3header)) 359 pos += len; 362 (long long)pos, (long long)pos); 367 if (source->readAt(pos, &header, 2) != 2) { 376 *offPtr = pos;
|
/frameworks/av/media/extractors/mkv/ |
H A D | MatroskaExtractor.cpp | 320 long long pos; local 327 res = mCluster->Parse(pos, len); 345 mCluster, nextCluster, pos, len); 361 res = mCluster->Parse(pos, len); 446 long len; long long pos; local 447 pSegment->ParseCues(pEntry->pos, pos, len); 939 long long pos; local 940 if (ebmlHeader.Parse(mReader, pos) < 0) { 949 mkvparser::Segment::CreateInstance(mReader, pos, mSegmen 1627 long long pos; local [all...] |
/frameworks/av/media/extractors/mp3/ |
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; 250 off64_t pos; member in struct:android::Mp3Meta 263 off64_t pos = 0; local 568 off64_t pos = mCurrentPos; local 682 off64_t pos = 0; local [all...] |
H A D | VBRISeeker.cpp | 41 off64_t pos = post_id3_pos; local 44 ssize_t n = source->readAt(pos, header, sizeof(header)); 57 pos += sizeof(header) + 32; 60 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); 104 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); 165 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 173 *pos = mBasePos; 177 *pos += mSegments.itemAt(segmentIndex++); 180 ALOGV("getOffsetForTime %lld us => 0x%016llx", (long long)*timeUs, (long long)*pos);
|
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/extractors/ogg/ |
H A D | OggExtractor.cpp | 429 off64_t pos = timeUs * bps / 8000000ll; local 431 ALOGV("seeking to offset %lld", (long long)pos); 432 return seekToOffset(pos);
|
/frameworks/av/media/extractors/wav/ |
H A D | WAVExtractor.cpp | 428 int64_t pos = 0; local 434 pos = framenumber * 65; 436 pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); 438 if (pos > (off64_t)mSize) { 439 pos = mSize; 441 mCurrentPos = pos + mOffset;
|
/frameworks/av/media/libaaudio/examples/loopback/src/ |
H A D | LoopbackAnalyzer.h | 385 float pos = fabs(*inputData); local 386 if (pos > peak) { 387 peak = pos;
|
/frameworks/av/media/libaaudio/tests/ |
H A D | test_marshalling.cpp | 39 size_t pos = parcel.dataPosition(); local 42 parcel.setDataPosition(pos); 65 size_t pos = parcel.dataPosition(); local 68 parcel.setDataPosition(pos); 99 size_t pos = parcel.dataPosition(); local 102 parcel.setDataPosition(pos); 149 size_t pos = parcel.dataPosition(); local 153 parcel.setDataPosition(pos);
|
/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/libmedia/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/libstagefright/ |
H A D | MPEG4Writer.cpp | 171 // @arg pos location the value must be in. 172 void set(const TYPE& value, uint32_t pos) { argument 173 CHECK_LT(pos, mTotalNumTableEntries * ENTRY_SIZE); 176 uint32_t iterations = (pos / (mElementCapacity * ENTRY_SIZE)); 184 (*it)[(pos % (mElementCapacity * ENTRY_SIZE))] = value; 189 // @arg pos location the value must be in. 191 bool get(TYPE& value, uint32_t pos) const { 192 if (pos >= mTotalNumTableEntries * ENTRY_SIZE) { 197 uint32_t iterations = (pos / (mElementCapacity * ENTRY_SIZE)); 205 value = (*it)[(pos 236 uint32_t pos = nEntries * ENTRY_SIZE + nValues; local [all...] |
H A D | MediaCodecListOverrides.cpp | 185 ssize_t pos = s.find(delimiter.c_str()); local 186 if (pos < 0) { 189 *s1 = AString(s, 0, pos); 190 *s2 = AString(s, pos + 1, s.size() - pos - 1);
|
/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...] |