Searched defs:offset (Results 26 - 50 of 575) sorted by path

1234567891011>>

/frameworks/av/media/img_utils/src/
H A DEndianUtils.cpp48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
50 if((res = mOutput->write(buf, offset, count)) == OK) {
56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument
57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count);
61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \
62 return writeHelper<_type_>(buf, offset, count); \
72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument
74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count);
77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument
79 return writeHelper<uint64_t>(reinterpret_cast<const uint64_t*>(buf), offset, coun
[all...]
H A DFileInput.cpp48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { argument
54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp);
H A DFileOutput.cpp47 status_t FileOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp);
H A DTiffIfd.cpp75 uint32_t TiffIfd::checkAndGetOffset(uint32_t offset) const {
90 if (offset == BAD_OFFSET) {
91 ALOGW("%s: Could not calculate IFD offsets, IFD %u had a bad initial offset.",
98 return offset + ifdSize;
101 status_t TiffIfd::writeData(uint32_t offset, /*out*/EndianOutput* out) const { argument
102 assert((offset % TIFF_WORD_SIZE) == 0);
105 ALOGV("%s: IFD %u written to offset %u", __FUNCTION__, mIfdId, offset );
106 uint32_t valueOffset = checkAndGetOffset(offset);
123 // Writer IFD footer (4 bytes, offset t
296 setStripOffset(uint32_t offset) argument
[all...]
H A DTiffWriter.cpp95 uint32_t offset = FILE_HEADER_SIZE; local
98 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret);
99 offset += ifd->getSize();
143 uint32_t offset = FILE_HEADER_SIZE; local
146 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret);
147 offset += ifd->getSize();
/frameworks/av/media/libmedia/
H A DIHDCP.cpp122 size_t offset, size_t size, uint32_t streamCTR,
127 data.writeInt32(offset);
273 size_t offset = data.readInt32(); local
279 status_t err = encryptNative(graphicBuffer, offset, size,
120 encryptNative( const sp<GraphicBuffer> &graphicBuffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
H A DIMediaHTTPConnection.cpp89 virtual ssize_t readAt(off64_t offset, void *buffer, size_t size) { argument
94 data.writeInt64(offset);
H A DIMediaMetadataRetriever.cpp117 status_t setDataSource(int fd, int64_t offset, int64_t length) argument
122 data.writeInt64(offset);
233 int64_t offset = data.readInt64(); local
235 reply->writeInt32(setDataSource(fd, offset, length));
H A DIMediaPlayer.cpp105 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument
109 data.writeInt64(offset);
387 int64_t offset = data.readInt64(); local
389 reply->writeInt32(setDataSource(fd, offset, length));
H A DIMediaPlayerService.cpp121 virtual status_t decode(int fd, int64_t offset, int64_t length, uint32_t *pSampleRate, argument
128 data.writeInt64(offset);
255 int64_t offset = data.readInt64(); local
262 status_t status = decode(fd, offset, length, &sampleRate, &numChannels, &format,
H A DIMediaRecorder.cpp171 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument
172 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
176 data.writeInt64(offset);
404 int64_t offset = data.readInt64(); local
406 reply->writeInt32(setOutputFile(fd, offset, length));
H A DJetPlayer.cpp337 mEasJetFileLoc->offset = 0;
349 int JetPlayer::loadFromFD(const int fd, const long long offset, const long long length) argument
351 ALOGV("JetPlayer::loadFromFD(): fd=%d offset=%lld length=%lld", fd, offset, length);
357 mEasJetFileLoc->offset = offset;
H A DSoundPool.cpp216 int SoundPool::load(int fd, int64_t offset, int64_t length, int priority __unused) argument
218 ALOGV("load: fd=%d, offset=%" PRId64 ", length=%" PRId64 ", priority=%d",
219 fd, offset, length, priority);
221 sp<Sample> sample = new Sample(++mNextSampleID, fd, offset, length);
461 Sample::Sample(int sampleID, int fd, int64_t offset, int64_t length) argument
466 mOffset = offset;
468 ALOGV("create sampleID=%d, fd=%d, offset=%" PRId64 " length=%" PRId64,
H A Dmediametadataretriever.cpp117 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
119 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
125 if (fd < 0 || offset < 0 || length < 0) {
129 return mRetriever->setDataSource(fd, offset, length);
H A Dmediaplayer.cpp165 status_t MediaPlayer::setDataSource(int fd, int64_t offset, int64_t length) argument
167 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
173 (NO_ERROR != player->setDataSource(fd, offset, length))) {
866 /*static*/ status_t MediaPlayer::decode(int fd, int64_t offset, int64_t length, argument
871 ALOGV("decode(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length);
875 status = service->decode(fd, offset, length, pSampleRate,
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 DHDCP.cpp131 size_t offset, size_t size, uint32_t streamCTR,
144 offset, size, streamCTR, outInputCTR, outData);
129 encryptNative( const sp<GraphicBuffer> &graphicBuffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
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 DMediaPlayerService.cpp746 status_t MediaPlayerService::Client::setDataSource(int fd, int64_t offset, int64_t length) argument
748 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
762 if (offset >= sb.st_size) {
763 ALOGE("offset error");
767 if (offset + length > sb.st_size) {
768 length = sb.st_size - offset;
774 offset,
782 setDataSource_post(p, p->setDataSource(fd, offset, length));
1350 status_t MediaPlayerService::decode(int fd, int64_t offset, int64_ argument
[all...]
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 DMetadataRetrieverClient.cpp138 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument
140 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
154 if (offset >= sb.st_size) {
155 ALOGE("offset (%lld) bigger than file size (%llu)", offset, sb.st_size);
159 if (offset + length > sb.st_size) {
160 length = sb.st_size - offset;
167 offset,
175 status_t status = p->setDataSource(fd, offset, lengt
[all...]
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 DMidiMetadataRetriever.cpp54 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
56 ALOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
62 return mMidiPlayer->setDataSource(fd, offset, length);;
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);
H A DStagefrightRecorder.cpp252 status_t StagefrightRecorder::setOutputFile(int fd, int64_t offset, int64_t length) { argument
253 ALOGV("setOutputFile: %d, %lld, %lld", fd, offset, length);
255 CHECK_EQ(offset, 0ll);
461 use64Bit? "use 64 bit file offset": "use 32 bit file offset");
610 } else if (key == "param-use-64bit-offset") {
1831 snprintf(buffer, SIZE, " File offset length (bits): %d\n", mUse64BitFileOffset? 64: 32);
1857 snprintf(buffer, SIZE, " Start time offset (ms): %d\n", mStartTimeOffsetMs);

Completed in 188 milliseconds

1234567891011>>