Searched refs:pos (Results 1 - 25 of 216) sorted by path

123456789

/frameworks/av/libvideoeditor/osal/inc/
H A DLVOSA_FileReader_optim.h44 M4OSA_FilePosition pos,
/frameworks/av/libvideoeditor/osal/src/
H A DLVOSA_FileReader_optim.c190 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 DMetadata.cpp148 size_t pos = mData->dataPosition(); local
159 mData->setDataPosition(pos + size);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1502 uint32_t pos; local
1503 if (t->getPosition(&pos) == OK) {
1504 mBytesWritten = uint64_t(pos) * t->frameSize();
/frameworks/av/media/libstagefright/
H A DAACExtractor.cpp337 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 DMP3Extractor.cpp93 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 DMPEG4Writer.cpp104 // @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 DOggExtractor.cpp316 off64_t pos = timeUs * approxBitrate() / 8000000ll; local
318 ALOGV("seeking to offset %lld", pos);
319 return seekToOffset(pos);
H A DVBRISeeker.cpp39 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 DWAVExtractor.cpp391 int64_t pos = (seekTimeUs * mSampleRate) / 1000000 * mNumChannels * (mBitsPerSample >> 3); local
392 if (pos > mSize) {
393 pos = mSize;
395 mCurrentPos = pos + mOffset;
H A DXINGSeeker.cpp46 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 Dd2_11pf.cpp160 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 Dd2_9pf.cpp187 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 Dd3_14pf.cpp165 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 Dd4_17pf.cpp46 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 Dc3_14pf.cpp389 Word16 pos; local
586 pos = ipos[2];
589 ipos[0] = pos;
706 /* index = pos/5 */
710 /* track = pos%5 */
H A Dc4_17pf.cpp403 Word16 pos; local
653 pos = ipos[3];
657 ipos[0] = pos;
778 /* index = pos/5 */
782 /* track = pos%5 */
H A Ds10_8pf.cpp191 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 Dset_sign.cpp178 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 Ddec_acelp_4p_in_64.cpp123 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 Ddec_alg_codebook.cpp87 #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 Dq_pulse.h66 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 Dq_pulse.h31 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 Dcor_h_vec_opt.s44 @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...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
H A Dcor_h_vec_neon.s44 @r0 --- h[], r1 --- vec[], r2 --- pos
50 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
52 RSB r11, r2, #62 @j=62-pos
72 ADD r9, r3, r2, LSL #1 @address of sign[pos]
74 LDRSH r10, [r9], #2 @sign[pos]
75 LDRSH r11, [r9] @sign[pos + 1]
95 ADD r9, r1, r2, LSL #1 @p2 = &vec[pos]
97 RSB r11, r2, #62 @j=62-pos
119 ADD r9, r3, r2, LSL #1 @address of sign[pos]
121 LDRSH r10, [r9], #2 @sign[pos]
[all...]

Completed in 2446 milliseconds

123456789