/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...] |
H A D | q_pulse.h | 66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]); 67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]); 68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]); 69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]); 70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]); 71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]); 72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
H A D | q_pulse.h | 31 Word16 pos, /* (i) position of the pulse */ 53 Word16 pos[], /* (i) position of the pulse 1..4 */ 57 Word16 pos[], /* (i) position of the pulse 1..5 */ 61 Word16 pos[], /* (i) position of the pulse 1..6 */
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/ |
H A D | cor_h_vec_opt.s | 44 @r0 --- h[], r1 --- vec[], r2 --- pos 49 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos] 51 RSB r11, r2, #62 @j=62-pos 71 ADD r9, r3, r2, LSL #1 @address of sign[pos] 73 LDRSH r10, [r9], #2 @sign[pos] 74 LDRSH r11, [r9] @sign[pos + 1] 94 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos] 96 RSB r11, r2, #62 @j=62-pos 118 ADD r9, r3, r2, LSL #1 @address of sign[pos] 120 LDRSH r10, [r9], #2 @sign[pos] [all...] |