Searched defs:offset (Results 226 - 250 of 575) sorted by relevance

1234567891011>>

/frameworks/av/media/libmedia/
H A Dmediarecorder.cpp293 status_t MediaRecorder::setOutputFile(int fd, int64_t offset, int64_t length) argument
295 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
320 status_t ret = mMediaRecorder->setOutputFile(fd, offset, length);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp124 int64_t offset,
126 GET_PLAYER_TYPE_IMPL(client, fd, offset, length);
184 int64_t offset,
188 sp<DataSource> source = new FileSource(dup(fd), offset, length);
198 lseek(fd, offset, SEEK_SET);
200 lseek(fd, offset, SEEK_SET);
317 int64_t offset,
331 locator.offset = offset;
122 getPlayerType(const sp<IMediaPlayer>& client, int fd, int64_t offset, int64_t length) argument
182 scoreFactory(const sp<IMediaPlayer>& , int fd, int64_t offset, int64_t length, float ) argument
315 scoreFactory(const sp<IMediaPlayer>& , int fd, int64_t offset, int64_t length, float curScore) argument
H A DMediaRecorderClient.cpp168 status_t MediaRecorderClient::setOutputFile(int fd, int64_t offset, int64_t length) argument
170 ALOGV("setOutputFile(%d, %lld, %lld)", fd, offset, length);
176 return mRecorder->setOutputFile(fd, offset, length);
H A DMidiFile.cpp65 mFileLocator.offset = 0;
131 mFileLocator.offset = 0;
149 status_t MidiFile::setDataSource(int fd, int64_t offset, int64_t length) argument
161 mFileLocator.offset = offset;
406 mFileLocator.offset = 0;
H A DStagefrightPlayer.cpp65 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument
66 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
67 return mPlayer->setDataSource(dup(fd), offset, length);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerCCDecoder.cpp54 size_t offset = 0; local
57 while (offset < ccBuf->size()) {
60 CCData *cc = (CCData *) (ccBuf->data() + offset);
64 offset += sizeof(CCData);
109 offset += sizeof(CCData);
/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 DAMRExtractor.cpp101 off64_t offset, bool isWide, size_t *frameSize) {
103 if (source->readAt(offset, &header, 1) < 1) {
136 off64_t offset = mIsWide ? 9 : 6; local
142 while (offset < streamSize) {
143 if (getFrameSizeByOffset(source, offset, mIsWide, &frameSize) != OK) {
149 mOffsetTable[mOffsetTableLength] = offset - (mIsWide ? 9: 6);
153 offset += frameSize;
100 getFrameSizeByOffset(const sp<DataSource> &source, off64_t offset, bool isWide, size_t *frameSize) argument
H A DDataSource.cpp51 bool DataSource::getUInt16(off64_t offset, uint16_t *x) { argument
55 if (readAt(offset, byte, 2) != 2) {
64 bool DataSource::getUInt24(off64_t offset, uint32_t *x) { argument
68 if (readAt(offset, byte, 3) != 3) {
77 bool DataSource::getUInt32(off64_t offset, uint32_t *x) { argument
81 if (readAt(offset, &tmp, 4) != 4) {
90 bool DataSource::getUInt64(off64_t offset, uint64_t *x) { argument
94 if (readAt(offset, &tmp, 8) != 8) {
/frameworks/av/media/libstagefright/codecs/avc/common/src/
H A Ddpb.cpp268 int offset = 0; local
296 offset = ((video->PicWidthInSamplesL + 32) << 4) + 16; // offset to the origin
297 offsetc = (offset >> 2) + 4;
304 video->currPic->Sl = video->currFS->base_dpb + offset;
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
H A Dfindhalfpel.cpp159 /* to be optimized later based on byte-offset load */
163 dst -= 4; /* offset */
278 dst -= 24; // offset
329 dst -= 24; // offset
529 int offset = 1 - (384 * 7); local
556 c1 += offset;
592 c1 += offset;
H A Dresidual.cpp31 int offset; local
45 offset = video->PicWidthInSamplesL - 16;
70 pDst += offset;
71 pSrc += offset;
79 offset >>= 1;
103 pDst += offset;
104 pSrc += offset;
136 pDst += offset;
137 pSrc += offset;
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dblock_idct.cpp232 int32 offset; local
235 offset = (int32)(y_pos << 4) * width + (x_pos << 4);
237 c_comp = currVop->yChan + offset;
238 cu_comp = currVop->uChan + (offset >> 2) + (x_pos << 2);
239 cv_comp = currVop->vChan + (offset >> 2) + (x_pos << 2);
531 /* preset the offset, such that we can take advantage pre-offset addressing mode */
629 int offset = width; local
727 comp += offset;
H A Dcombined_decode.cpp555 int32 offset = (int32)(y_pos << 4) * width + (x_pos << 4); local
666 c_comp = video->currVop->yChan + offset;
707 BlockIDCT(video->currVop->uChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 256, mblock->block[4], width >> 1, ncoeffs[4],
731 BlockIDCT(video->currVop->vChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 264, mblock->block[5], width >> 1, ncoeffs[5],
785 BlockIDCT(video->currVop->uChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 256, mblock->block[4], width >> 1, ncoeffs[4],
809 BlockIDCT(video->currVop->vChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 264, mblock->block[5], width >> 1, ncoeffs[5],
H A Ddatapart_decode.cpp624 int32 offset; local
715 offset = (int32)(y_pos << 4) * width + (x_pos << 4);
716 c_comp = video->currVop->yChan + offset;
755 BlockIDCT(video->currVop->uChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 256, mblock->block[4], width >> 1, ncoeffs[4],
775 BlockIDCT(video->currVop->vChan + (offset >> 2) + (x_pos << 2), mblock->pred_block + 264, mblock->block[5], width >> 1, ncoeffs[5],
H A Dmb_motion_comp.cpp142 int32 offset; local
182 /* offset to (x,y) position in current luminance MB */
185 offset = (int32)ypos * width + xpos;
192 imv = (offset >> 6) - (xpos >> 6) + (xpos >> 3);
253 c_comp = video->currVop->yChan + offset;
453 /* x position in prediction data offset by motion vector */
458 /* y position in prediction data offset by motion vector */
463 cu_comp = video->currVop->uChan + (offset >> 2) + (xpos >> 2);
464 cv_comp = video->currVop->vChan + (offset >> 2) + (xpos >> 2);
559 int32 offset; local
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dbitstream_io.cpp422 Int bitused, bitleft, offset, fraction; local
430 offset = fraction;
437 if (!offset) /* bitstream1 is byte-aligned */
442 offset += fraction;
446 if (bitstream1->byteCount + bitstream2->byteCount + offset > bitstream1->bufferSize)
448 if (PV_SUCCESS != BitstreamUseOverrunBuffer(bitstream1, bitstream2->byteCount + offset))
450 bitstream1->byteCount += (bitstream2->byteCount + offset);
H A Dcombined_encode.cpp45 Int offset = 0; local
139 getMotionCompensatedMB(video, ind_x, ind_y, offset);
159 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
207 offset += 16;
210 offset += (lx << 4) - width;
277 Int offset = video->offset; /* get current MB location */ local
404 getMotionCompensatedMB(video, ind_x, ind_y, offset);
427 status = (*CodeMB)(video, &fastDCTfunction, (offset << 5) + QP, ncoefblck);
490 video->offset
[all...]
H A Dfastcodemb.cpp33 /* QP Combined offset from the origin to the current */
80 Int offset = QP >> 5; /* QP is combined offset and QP */ local
81 Int offsetc = (offset >> 2) + (ind_x << 2); /* offset for chrom */
129 rec = currVop->yChan + offset;
130 input = inputFrame->yChan + offset;
131 if (lx != width) input -= (ind_y << 9); /* non-padded offset */
262 /* QP Combined offset from the origin to the current */
311 Int offset local
[all...]
H A Dme_utils.cpp23 #define VOP_OFFSET ((lx<<4)+16) /* for offset to image area */
39 Int offset = (lx >> 2) - 4; local
54 pint += offset;
61 pint += offset;
68 offset = lx - 16;
87 p += (offset - temp);
116 Int offset = lx - 17; local
137 p1 += offset;
138 p2 += offset;
139 p3 += offset;
172 Int offset = lx - 9; local
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAString.cpp67 AString::AString(const AString &from, size_t offset, size_t n) argument
71 setTo(from, offset, n);
107 void AString::setTo(const AString &from, size_t offset, size_t n) { argument
111 setTo(from.mData + offset, n);
195 void AString::append(const AString &from, size_t offset, size_t n) { argument
196 append(from.c_str() + offset, n);
H A DParsedMessage.cpp92 size_t offset = 0; local
94 while (offset < size) {
95 size_t lineEndOffset = offset;
106 AString line(&data[offset], lineEndOffset - offset);
108 if (offset == 0) {
112 offset = lineEndOffset + 2;
117 if (lineEndOffset == offset) {
120 offset += 2;
135 offset
185 size_t offset = 0; local
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp335 size_t offset = 2 + (AU_headers_length + 7) / 8; local
338 ABitReader bits(buffer->data() + offset, buffer->size() - offset);
342 offset += (mAuxiliaryDataSizeLength + auxSize + 7) / 8;
349 if (buffer->size() < offset + header.mSize) {
354 memcpy(accessUnit->data(), buffer->data() + offset, header.mSize);
356 offset += header.mSize;
362 if (offset != buffer->size()) {
363 ALOGW("potentially malformed packet (offset %d, size %d)",
364 offset, buffe
[all...]
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextSRTSource.cpp86 off64_t offset = 0; local
92 status_t err = getNextSubtitleInfo(&offset, &startTimeUs, &info);
126 off64_t *offset, int64_t *startTimeUs, TextInfo *info) {
132 if ((err = readNextLine(offset, &data)) != OK) {
139 if ((err = readNextLine(offset, &data)) != OK) {
156 info->offset = *offset;
159 if ((err = readNextLine(offset, &data)) != OK) {
173 info->textLen = *offset - info->offset;
125 getNextSubtitleInfo( off64_t *offset, int64_t *startTimeUs, TextInfo *info) argument
177 readNextLine(off64_t *offset, AString *data) argument
[all...]
/frameworks/av/media/libstagefright/wifi-display/
H A DVideoFormats.cpp387 size_t offset = 0; local
393 offset += 6; // skip native and preferred-display-mode-supported
394 CHECK_LE(offset + 58, size);
395 while (offset < size) {
396 parseH264Codec(spec + offset);
397 offset += 60; // skip H.264-codec + ", "

Completed in 193 milliseconds

1234567891011>>