Searched defs:offset (Results 101 - 125 of 448) sorted by relevance

1234567891011>>

/frameworks/av/media/libmedia/
H A DIMediaMetadataRetriever.cpp107 status_t setDataSource(int fd, int64_t offset, int64_t length) argument
112 data.writeInt64(offset);
201 int64_t offset = data.readInt64(); local
203 reply->writeInt32(setDataSource(fd, offset, length));
H A Dmediametadataretriever.cpp112 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
114 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
120 if (fd < 0 || offset < 0 || length < 0) {
124 return mRetriever->setDataSource(fd, offset, length);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp135 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument
137 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
151 if (offset >= sb.st_size) {
152 ALOGE("offset (%lld) bigger than file size (%llu)", offset, sb.st_size);
156 if (offset + length > sb.st_size) {
157 length = sb.st_size - offset;
164 offset,
172 status_t status = p->setDataSource(fd, offset, lengt
[all...]
/frameworks/av/media/libstagefright/
H A DDataSource.cpp49 bool DataSource::getUInt16(off64_t offset, uint16_t *x) { argument
53 if (readAt(offset, byte, 2) != 2) {
H A DVBRISeeker.cpp104 off64_t offset = post_id3_pos; local
122 ALOGV("entry #%d: %d offset 0x%08lx", i, numBytes, offset);
123 offset += numBytes;
H A DXINGSeeker.cpp86 int offset = first_frame_pos; local
87 if (source->readAt(offset, &buffer, 4) < 4) { // get header
90 offset += 4;
105 // determine offset of XING header
107 if (num_channels != 1) offset += 32;
108 else offset += 17;
110 if (num_channels != 1) offset += 17;
111 else offset += 9;
114 int xingbase = offset;
116 if (source->readAt(offset,
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dget_pred_adv_b_add.cpp90 int offset, offset2; local
94 /* initialize offset to adjust pixel counter */
96 offset = width - B_SIZE; /* offset for prev */
97 offset2 = (pred_width_rnd >> 1) - 4; /* offset for pred_block */
129 prev += offset;
152 prev += offset;
174 prev += offset;
190 int offset, offset2; local
196 /* initialize offset t
519 int offset, offset2; local
866 int offset, offset2; local
[all...]
H A Didct_vca.cpp48 /* preset the offset, such that we can take advantage pre-offset addressing mode */
104 /* preset the offset, such that we can take advantage pre-offset addressing mode */
192 /* preset the offset, such that we can take advantage pre-offset addressing mode */
301 /* preset the offset, such that we can take advantage pre-offset addressing mode */
424 int offset = width; local
427 comp -= offset;
452 int offset = width; local
509 int offset = width; local
582 int offset = width; local
[all...]
H A Dpost_filter.cpp190 int d, offset, nMBPerRow, nMBPerCol, width2 = (width << 1); local
399 offset = width * b_size - b_size;
472 rec_y -= offset;
489 offset = width * b_size - b_size;
570 rec_y -= offset;
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Ddatapart_encode.cpp44 Int offset = 0; local
111 getMotionCompensatedMB(video, ind_x, ind_y, offset);
130 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
168 offset += 16;
171 offset += (lx << 4) - width;
224 Int offset = video->offset; /* get current MB location */ local
317 getMotionCompensatedMB(video, ind_x, ind_y, offset);
341 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
419 video->offset
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_framedecoder.cpp271 * offset in bytes from the first byte of the sync word
562 pMainData->pBuffer[module(pMainData->offset++, BUFSIZE)] = (uint8)val;
571 int32 offset = (pVars->inputStream.usedBits) >> INBUF_ARRAY_INDEX_SHIFT; local
576 if ((offset + temp) < BUFSIZE)
578 uint8 * ptr = pVars->inputStream.pBuffer + offset;
580 offset = pVars->mainDataStream.offset;
585 if ((offset + temp) < BUFSIZE)
587 pv_memcpy((pVars->mainDataStream.pBuffer + offset), ptr, temp*sizeof(uint8));
588 pVars->mainDataStream.offset
[all...]
/frameworks/av/media/libstagefright/mp4/
H A DTrackFragment.cpp244 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
245 if (offset + 12 > size) {
249 if (parser->readU32(offset) != 0) {
253 uint32_t sampleSize = parser->readU32(offset + 4);
254 uint32_t sampleCount = parser->readU32(offset + 8);
256 if (sampleSize == 0 && offset + 12 + sampleCount * 4 != size) {
260 parser->copyBuffer(&mSampleSizes, offset, size);
268 FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) {
269 if (offset + 12 > size) {
273 if (parser->readU32(offset) !
243 parseSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
267 parseCompactSampleSizes( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
296 parseSampleToChunk( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
321 parseChunkOffsets( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
342 parseChunkOffsets64( FragmentedMP4Parser *parser, uint32_t type, size_t offset, uint64_t size) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAAMRAssembler.cpp152 size_t offset = 1; local
155 if (offset >= buffer->size()) {
164 uint8_t toc = buffer->data()[offset++];
196 if (offset + frameSize - 1 > buffer->size()) {
207 buffer->data() + offset, frameSize - 1);
209 offset += frameSize - 1;
H A DAAVCAssembler.cpp285 size_t offset = 1; local
295 memcpy(unit->data() + offset, buffer->data() + 2, buffer->size() - 2);
296 offset += buffer->size() - 2;
322 size_t offset = 0; local
325 memcpy(accessUnit->data() + offset, "\x00\x00\x00\x01", 4);
326 offset += 4;
329 memcpy(accessUnit->data() + offset, nal->data(), nal->size());
330 offset += nal->size();
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp215 size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) {
222 sp<DataSource> dataSource = new FileSource(dup(fd), offset, length);
214 addOutOfBandTextSource( size_t trackIndex, int fd, off64_t offset, off64_t length, const char *mimeType) argument
/frameworks/av/media/libstagefright/timedtext/test/
H A DTimedTextSRTSource_test.cpp65 virtual ssize_t readAt(off64_t offset, void *data, size_t size) { argument
66 if (offset >= mSize) return 0;
68 ssize_t avail = mSize - offset;
72 memcpy(data, mData + offset, avail);
/frameworks/av/media/libstagefright/wifi-display/
H A DParsedMessage.cpp91 size_t offset = 0; local
92 while (offset < size) {
93 size_t lineEndOffset = offset;
104 AString line(&data[offset], lineEndOffset - offset);
106 if (offset == 0) {
110 offset = lineEndOffset + 2;
115 if (lineEndOffset == offset) {
116 offset += 2;
131 offset
176 size_t offset = 0; local
[all...]
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp55 int offset = mOffset; local
56 uint16_t result = (uint16_t)mBuffer[offset] | ((uint16_t)mBuffer[offset + 1] << 8);
62 int offset = mOffset; local
63 uint32_t result = (uint32_t)mBuffer[offset] | ((uint32_t)mBuffer[offset + 1] << 8) |
64 ((uint32_t)mBuffer[offset + 2] << 16) | ((uint32_t)mBuffer[offset + 3] << 24);
70 int offset = mOffset; local
71 uint64_t result = (uint64_t)mBuffer[offset] | ((uint64_
[all...]
H A DMtpPacket.cpp94 uint16_t MtpPacket::getUInt16(int offset) const {
95 return ((uint16_t)mBuffer[offset + 1] << 8) | (uint16_t)mBuffer[offset];
98 uint32_t MtpPacket::getUInt32(int offset) const {
99 return ((uint32_t)mBuffer[offset + 3] << 24) | ((uint32_t)mBuffer[offset + 2] << 16) |
100 ((uint32_t)mBuffer[offset + 1] << 8) | (uint32_t)mBuffer[offset];
103 void MtpPacket::putUInt16(int offset, uint16_t value) { argument
104 mBuffer[offset
108 putUInt32(int offset, uint32_t value) argument
148 int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t); local
[all...]
/frameworks/av/services/camera/libcameraservice/camera2/
H A DCallbackProcessor.cpp270 ssize_t offset; local
273 mCallbackHeap->mBuffers[heapIdx]->getMemory(&offset,
275 uint8_t *data = (uint8_t*)heap->getBase() + offset;
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp157 size_t offset = (vinfo.xoffset + vinfo.yoffset*vinfo.xres) * bytespp; local
161 mapsize = offset + size;
164 base = (void const *)((char const *)mapbase + offset);
/frameworks/base/cmds/screenshot/
H A Dscreenshot.c25 unsigned int bytespp,offset; local
77 offset = vinfo.xoffset * bytespp + vinfo.xres * vinfo.yoffset * bytespp;
78 fseek(fb_in, offset, SEEK_SET);
/frameworks/base/core/java/android/speech/tts/
H A DFileSynthesisCallback.java161 public int audioAvailable(byte[] buffer, int offset, int length) { argument
163 Log.d(TAG, "FileSynthesisRequest.audioAvailable(" + buffer + "," + offset
176 mFile.write(buffer, offset, length);
H A DPlaybackSynthesisCallback.java166 public int audioAvailable(byte[] buffer, int offset, int length) { argument
169 + offset + "," + length + ")");
186 System.arraycopy(buffer, offset, bufferCopy, 0, length);
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java97 public int[] following(int offset) { argument
102 if (offset >= textLegth) {
105 int start = offset;
123 public int[] preceding(int offset) { argument
128 if (offset <= 0) {
131 int end = offset;
187 public int[] following(int offset) { argument
192 if (offset >= mText.length()) {
195 int start = offset;
213 public int[] preceding(int offset) { argument
268 following(int offset) argument
295 preceding(int offset) argument
[all...]

Completed in 3617 milliseconds

1234567891011>>