/frameworks/av/libvideoeditor/osal/src/ |
H A D | LVOSA_FileReader_optim.c | 190 M4OSA_Int8 i, M4OSA_FilePosition pos, 199 if( (pos < apContext->buffer[i].filepos) 200 || (pos > (apContext->buffer[i].filepos + apContext->buffer[i].size - 1)) ) 205 offset = pos - apContext->buffer[i].filepos; 220 M4OSA_Int8 i, M4OSA_FilePosition pos) 238 M4OSA_TRACE3_4("BufferFill i = %d pos = %ld read = %ld old = %ld", i, pos, 242 if(pos >= apContext->fileSize) 247 tempPos = (M4OSA_FilePosition) (pos / bufferSize); 352 M4OSA_FilePosition pos) 189 M4OSA_FileReader_BufferCopy(M4OSA_FileReader_Context_optim* apContext, M4OSA_Int8 i, M4OSA_FilePosition pos, M4OSA_FilePosition size, M4OSA_MemAddr8 pData) argument 219 M4OSA_FileReader_BufferFill(M4OSA_FileReader_Context_optim* apContext, M4OSA_Int8 i, M4OSA_FilePosition pos) argument 351 M4OSA_FileReader_BufferMatch(M4OSA_FileReader_Context_optim* apContext, M4OSA_FilePosition pos) argument [all...] |
/frameworks/av/media/libmedia/ |
H A D | Metadata.cpp | 148 size_t pos = mData->dataPosition(); local 159 mData->setDataPosition(pos + size);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 1502 uint32_t pos; local 1503 if (t->getPosition(&pos) == OK) { 1504 mBytesWritten = uint64_t(pos) * t->frameSize();
|
/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 pos, 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 >= *inout_pos + kMaxBytesChecked) { 108 ALOGV("giving up at offset %lld", pos); 124 totalBytesRead = source->readAt(pos + remainingBytes, 141 ++pos; 152 ++pos; 158 ALOGV("found possible 1st frame at %lld (header = 0x%08x)", pos, header); 163 off64_t test_pos = pos + frame_size; 195 *inout_pos = pos; 204 ++pos; 255 off64_t pos = 0; local 541 off64_t pos = mCurrentPos; local 650 off64_t pos = 0; local [all...] |
H A D | MPEG4Writer.cpp | 104 // @arg pos location the value must be in. 105 void set(const TYPE& value, uint32_t pos) { argument 106 CHECK_LT(pos, mTotalNumTableEntries * mEntryCapacity); 109 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 117 (*it)[(pos % (mElementCapacity * mEntryCapacity))] = value; 122 // @arg pos location the value must be in. 124 bool get(TYPE& value, uint32_t pos) const { 125 if (pos >= mTotalNumTableEntries * mEntryCapacity) { 130 uint32_t iterations = (pos / (mElementCapacity * mEntryCapacity)); 138 value = (*it)[(pos 154 uint32_t pos = nEntries * mEntryCapacity + nValues; local [all...] |
H A D | OggExtractor.cpp | 316 off64_t pos = timeUs * approxBitrate() / 8000000ll; local 318 ALOGV("seeking to offset %lld", pos); 319 return seekToOffset(pos);
|
H A D | VBRISeeker.cpp | 39 off64_t pos = post_id3_pos; local 42 ssize_t n = source->readAt(pos, header, sizeof(header)); 55 pos += sizeof(header) + 32; 58 n = source->readAt(pos, vbriHeader, sizeof(vbriHeader)); 86 n = source->readAt(pos + sizeof(vbriHeader), buffer, totalEntrySize); 148 bool VBRISeeker::getOffsetForTime(int64_t *timeUs, off64_t *pos) { argument 156 *pos = mBasePos; 160 *pos += mSegments.itemAt(segmentIndex++); 163 ALOGV("getOffsetForTime %lld us => 0x%08lx", *timeUs, *pos);
|
H A D | WAVExtractor.cpp | 391 int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); local 392 if (pos > mSize) { 393 pos = mSize; 395 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 165 pos = MSIZE - 1; 171 p1 = &rrixiy[pos]; 196 pos -= NB_POS; 221 * 32 pos x 32 pos = 1024 tests (all combinaisons is tested) * 236 pos = -1; 247 pos = i1; 251 if (pos >= 0) 254 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]; 836 Word32 i, j, pos, corr; local 908 Word32 i, j, pos, corr; local 979 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 */
|
H A D | q_pulse.c | 29 #define NB_POS 16 /* pos in track, mask for sign bit */ 32 Word16 pos, /* (i) position of the pulse */ 42 index = L_deposit_l((Word16) (pos & mask)); 43 if ((pos & NB_POS) != 0) 188 Word16 pos[], /* (i) position of the pulse 1..4 */ 203 if ((pos[k] & nb_pos) == 0) 205 posA[i++] = pos[k]; 208 posB[j++] = pos[k]; 254 Word16 pos[], /* (i) position of the pulse 1..5 */ 268 if ((pos[ 31 quant_1p_N1( Word16 pos, Word16 N) argument 187 quant_4p_4N( Word16 pos[], Word16 N) argument 253 quant_5p_5N( Word16 pos[], Word16 N) argument 327 quant_6p_6N_2( Word16 pos[], Word16 N) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | bitstream.cpp | 529 PV_STATUS movePointerTo(BitstreamDecVideo *stream, int32 pos) argument 532 if (pos < 0) 534 pos = 0; 537 byte_pos = pos >> 3; 551 PV_BitstreamFlushBits(stream, ((pos & 0x7) + ((byte_pos & 0x3) << 3))); 803 if (tmpvar & 1) // Check if the 17th bit from the curr bit pos is a '1' 892 if (tmpvar & 1) // Check if the 17th bit from the curr bit pos is a '1'
|