Searched defs:offset (Results 251 - 275 of 448) sorted by relevance

<<1112131415161718

/frameworks/av/libvideoeditor/vss/src/
H A DM4VSS3GPP_AudioMixing.c379 * Use offset to give a correct CTS ... */
403 /* For Audio the progress computation is based on dAto and offset,
1961 M4OSA_UInt16 offset; local
1963 M4OSA_TRACE2_3(" VIDEO step : dVTo = %f state = %d offset = %ld",
1998 offset = 0;
2005 offset = 4;
2007 pC->pInputClipCtxt->VideoAU.m_size -= offset;
2022 (void *)(pC->pInputClipCtxt->VideoAU.m_dataAddress + offset),
2068 M4OSA_TRACE2_3(" AUDIO mix : dATo = %f state = %d offset = %ld",
2426 M4OSA_TRACE2_3(" AUDIO repl : dATo = %f state = %d offset
[all...]
/frameworks/av/media/libmedia/
H A DIMediaRecorder.cpp168 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument
169 ALOGV("setOutputFile(%d, %lld, %lld)", fd, offset, length);
173 data.writeInt64(offset);
391 int64_t offset = data.readInt64(); local
393 reply->writeInt32(setOutputFile(fd, offset, length));
/frameworks/av/media/libstagefright/
H A DAACExtractor.cpp90 // Returns the frame length in bytes as described in an ADTS header starting at the given offset,
95 static size_t getAdtsFrameLength(const sp<DataSource> &source, off64_t offset, size_t* headerSize) { argument
103 if (source->readAt(offset, &syncword, 2) != 2) {
111 if (source->readAt(offset + 1, &protectionAbsent, 1) < 1) {
117 if (source->readAt(offset + 3, &header, 3) < 3) {
152 int64_t offset; local
153 CHECK(meta->findInt64("offset", &offset));
156 if (mDataSource->readAt(offset + 2, &header, 2) < 2) {
175 while (offset < streamSiz
[all...]
H A DFragmentedMP4Extractor.cpp329 off64_t offset = 0ll; local
335 while (!done && offset < kMaxScanOffset) {
337 if (source->readAt(offset, hdr, 8) < 8) {
343 off64_t chunkDataOffset = offset + 8;
346 if (source->readAt(offset + 8, &chunkSize, 8) < 8) {
362 off64_t chunkDataSize = offset + chunkSize - chunkDataOffset;
366 ALOGV("saw chunk type %s, size %lld @ %lld", chunkstring, chunkSize, offset);
408 moovAtomEndOffset = offset + chunkSize;
425 offset += chunkSize;
H A DStagefrightMetadataRetriever.cpp83 int fd, int64_t offset, int64_t length) {
86 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
93 mSource = new FileSource(fd, offset, length);
82 setDataSource( int fd, int64_t offset, int64_t length) argument
H A DWAVExtractor.cpp61 off64_t offset, size_t size);
150 off64_t offset = 12; local
154 if (mDataSource->readAt(offset, chunkHeader, 8) < 8) {
159 offset += 8;
173 if (mDataSource->readAt(offset, formatSpec, 2) < 2) {
189 if (mDataSource->readAt(offset, formatSpec, fmtSize) < fmtSize) {
272 mDataOffset = offset;
309 offset += chunkSize;
322 off64_t offset, size_t size)
329 mOffset(offset),
317 WAVSource( const sp<DataSource> &dataSource, const sp<MetaData> &meta, uint16_t waveFormat, int32_t bitsPerSample, off64_t offset, size_t size) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dblock.cpp373 int offset_cur[4], offset_pred[4], offset; local
542 offset = 1 << (Qq - 1);
551 coef[0] = (((m0 + m2) * quant + offset) >> Qq);
552 coef[64] = (((m0 - m2) * quant + offset) >> Qq);
553 coef[128] = (((m1 - m3) * quant + offset) >> Qq);
554 coef[192] = (((m1 + m3) * quant + offset) >> Qq);
566 /* offset btw 4x4 block */
570 /* offset btw 8x8 block */
909 /* offset btw 4x4 block */
H A Dslice.cpp170 int offset; local
182 offset = y_position * picPitch + x_position;
183 curL = currPic->Sl + offset;
184 orgL = currInput->YCbCr[0] + offset;
185 offset = (offset + x_position) >> 2;
186 curCb = currPic->Scb + offset;
187 curCr = currPic->Scr + offset;
188 orgCb = currInput->YCbCr[1] + offset;
189 orgCr = currInput->YCbCr[2] + offset;
513 int j, offset; local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dvlc_decode.cpp143 int k, offset; local
161 offset = (k & 1) + (k >> 1) * doubleWidth;
183 mot_x[pos+offset] = (MOT) mvx;
184 mot_y[pos+offset] = (MOT) mvy;
229 offset = (k & 1) + (k >> 1) * doubleWidth;
232 mot_x[pos+offset] = (MOT) mvx;
233 mot_y[pos+offset] = (MOT) mvy;
888 /* first escape mode. level is offset */
941 /* second escape mode. run is offset */
1069 /* first escape mode. level is offset */
[all...]
/frameworks/av/media/libstagefright/id3/
H A DID3.cpp285 size_t offset = 0; local
286 while (offset + 10 <= mSize) {
287 if (!memcmp(&mData[offset], "\0\0\0\0", 4)) {
293 dataSize = U32_AT(&mData[offset + 4]);
294 } else if (!ParseSyncsafeInteger(&mData[offset + 4], &dataSize)) {
298 if (offset + dataSize + 10 > mSize) {
302 uint16_t flags = U16_AT(&mData[offset + 8]);
308 memmove(&mData[offset + 10], &mData[offset + 14], mSize - offset
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp370 size_t offset = 0; local
384 CHECK_LT(offset, buffer->size());
385 tmp = ptr[offset++];
410 CHECK_LE(offset + payloadLength, buffer->size());
412 memcpy(out->data() + out->size(), &ptr[offset], payloadLength);
415 offset += payloadLength;
421 CHECK_LE(offset + (mOtherDataLenBits / 8), buffer->size());
422 offset += mOtherDataLenBits / 8;
426 if (offset < buffer->size()) {
427 ALOGI("ignoring %d bytes of trailing data", buffer->size() - offset);
[all...]
H A DAPacketSource.cpp343 size_t offset = 0; local
345 while (offset + 3 < config->size()) {
346 if (memcmp("\x00\x00\x01", &ptr[offset], 3)
347 || (ptr[offset + 3] & 0xf0) != 0x20) {
348 ++offset;
361 &ptr[offset], config->size() - offset, width, height);
H A DARTPWriter.cpp366 buffer->setRange(buffer->offset(), buffer->size() + 28);
378 size_t offset = 8; local
380 data[offset++] = 1; // CNAME
383 data[offset++] = strlen(kCNAME);
385 memcpy(&data[offset], kCNAME, strlen(kCNAME));
386 offset += strlen(kCNAME);
388 data[offset++] = 7; // NOTE
391 data[offset++] = strlen(kNOTE);
393 memcpy(&data[offset], kNOTE, strlen(kNOTE));
394 offset
613 size_t offset = 1; local
682 size_t offset = 2; local
[all...]
/frameworks/av/media/libstagefright/wifi-display/source/
H A DConverter.cpp465 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
511 buffer->setRange(buffer->offset() + copy, buffer->size() - copy);
604 size_t offset; local
609 &bufferIndex, &offset, &size, &timeUs, &flags);
630 mEncoderOutputBuffers.itemAt(bufferIndex)->base() + offset,
H A DSender.cpp532 buffer->setRange(buffer->offset(), buffer->size() + 28);
544 size_t offset = 8; local
546 data[offset++] = 1; // CNAME
549 data[offset++] = strlen(kCNAME);
551 memcpy(&data[offset], kCNAME, strlen(kCNAME));
552 offset += strlen(kCNAME);
554 data[offset++] = 7; // NOTE
557 data[offset++] = strlen(kNOTE);
559 memcpy(&data[offset], kNOTE, strlen(kNOTE));
560 offset
[all...]
/frameworks/av/services/audioflinger/
H A DAudioResamplerSinc.cpp654 const size_t offset = c.halfNumCoefs; local
655 indexP *= offset;
656 indexN *= offset;
663 size_t count = offset;
669 interpolate<CHANNELS>(l, r, coefsP++, offset, lerpP, sP);
671 interpolate<CHANNELS>(l, r, coefsN++, offset, lerpN, sN);
677 int32_t const* coefsP1 = coefsP + offset;
678 int32_t const* coefsN1 = coefsN + offset;
743 int32_t const* coefsP1 = coefsP + offset;
744 int32_t const* coefsN1 = coefsN + offset;
822 interpolate( int32_t& l, int32_t& r, const int32_t* coefs, size_t offset, int32_t lerp, const int16_t* samples) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java411 /*package*/ int read(byte[] b, int offset, int length) throws IOException { argument
414 int ret = mSocketIS.read(b, offset, length);
421 /*package*/ int write(byte[] b, int offset, int length) throws IOException { argument
424 mSocketOS.write(b, offset, length);
/frameworks/base/core/java/android/text/
H A DTextLine.java273 * @param offset the line-relative character offset, between 0 and the
276 * before offset, false to measure the leading edge of the character
277 * at offset.
280 * @return the signed offset from the leading margin to the requested
283 float measure(int offset, boolean trailing, FontMetricsInt fmi) { argument
284 int target = trailing ? offset - 1 : offset;
293 return measureRun(0, offset, mLen, false, fmi);
296 return measureRun(0, offset, mLe
412 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument
612 getOffsetBeforeAfter(int runIndex, int runStart, int runLimit, boolean runIsRtl, int offset, boolean after) argument
[all...]
/frameworks/base/core/java/android/util/
H A DJsonReader.java200 * The offset of the first character in the buffer.
1103 private JsonToken decodeNumber(char[] chars, int offset, int length) { argument
1104 int i = offset;
1144 if (i == offset + length) {
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp69 off_t offset = 0; local
71 switch (*(filename + offset)) {
87 offset++;
/frameworks/base/libs/androidfw/
H A DAsset.cpp184 long offset; local
210 offset = ftell(fp);
219 result = pAsset->openChunk(fd, offset, method, uncompressedLen,
235 /*static*/ Asset* Asset::createFromFileSegment(int fd, off64_t offset,
242 result = pAsset->openChunk(NULL, fd, offset, length);
253 /*static*/ Asset* Asset::createFromCompressedData(int fd, off64_t offset,
261 result = pAsset->openChunk(fd, offset, compressionMethod,
309 * Do generic seek() housekeeping. Pass in the offset/whence values from
310 * the seek request, along with the current chunk offset and the chunk
313 * Returns the new chunk offset, o
315 handleSeek(off64_t offset, int whence, off64_t curPosn, off64_t maxPosn) argument
373 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument
502 seek(off64_t offset, int whence) argument
698 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument
802 seek(off64_t offset, int whence) argument
[all...]
/frameworks/base/media/java/android/media/
H A DMediaCodec.java120 * Per buffer metadata includes an offset and size specifying
126 offset = newOffset;
132 public int offset; field in class:MediaCodec.BufferInfo
317 * @param offset The byte offset into the input buffer at which the data starts.
327 int offset, int size, long presentationTimeUs, int flags)
394 * @param offset The byte offset into the input buffer at which the data starts.
403 int offset,
325 queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument
401 queueSecureInputBuffer( int index, int offset, CryptoInfo info, long presentationTimeUs, int flags) argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp134 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
147 if (offset < 0 || length < 0 || fd < 0) {
148 if (offset < 0) {
149 ALOGE("negative offset (%lld)", offset);
160 process_media_retriever_call(env, retriever->setDataSource(fd, offset, length), "java/lang/RuntimeException", "setDataSource failed");
H A Dandroid_media_MediaRecorder.cpp250 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
259 status_t opStatus = mr->setOutputFile(fd, offset, length);
H A Dandroid_mtp_MtpDevice.cpp307 static bool get_object_callback(void* data, int offset, int length, void* clientData) argument
310 cbData->env->SetByteArrayRegion(cbData->array, offset, length, (jbyte *)data);

Completed in 986 milliseconds

<<1112131415161718