/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 124 int fd, off64_t offset, off64_t length, const char* mime) { 127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); 168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument 167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 120 int fd, off64_t offset, off64_t length, const char* mime) { 123 mUniqueId, fd, offset, length, mime); 162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { 163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); 119 openDecryptSession( int fd, off64_t offset, off64_t length, const char* mime) argument 161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
|
/frameworks/av/drm/libmediadrm/ |
H A D | Crypto.cpp | 242 const sp<IMemory> &sharedBuffer, size_t offset, 256 const void *srcPtr = static_cast<uint8_t *>(sharedBuffer->pointer()) + offset; 236 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
/frameworks/av/media/libmedia/ |
H A D | ICrypto.cpp | 102 const sp<IMemory> &sharedBuffer, size_t offset, 134 data.writeInt32(offset); 302 int32_t offset = data.readInt32(); local 349 } else if ((size_t)offset > sharedBuffer->size() - totalSize) { 357 sharedBuffer, offset, 97 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
H A D | IHDCP.cpp | 122 size_t offset, size_t size, uint32_t streamCTR, 127 data.writeInt32(offset); 284 size_t offset = data.readInt32(); local 295 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 D | IMediaMetadataRetriever.cpp | 119 status_t setDataSource(int fd, int64_t offset, int64_t length) argument 124 data.writeInt64(offset); 249 int64_t offset = data.readInt64(); local 251 reply->writeInt32(setDataSource(fd, offset, length));
|
H A D | JetPlayer.cpp | 344 int JetPlayer::loadFromFD(const int fd, const long long offset, const long long length) argument 346 ALOGV("JetPlayer::loadFromFD(): fd=%d offset=%lld length=%lld", fd, offset, length); 350 mIoWrapper = new MidiIoWrapper(fd, offset, length);
|
H A D | mediarecorder.cpp | 269 status_t MediaRecorder::setOutputFile(int fd, int64_t offset, int64_t length) argument 271 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 296 status_t ret = mMediaRecorder->setOutputFile(fd, offset, length);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaRecorderClient.cpp | 164 status_t MediaRecorderClient::setOutputFile(int fd, int64_t offset, int64_t length) argument 166 ALOGV("setOutputFile(%d, %lld, %lld)", fd, (long long)offset, (long long)length); 172 return mRecorder->setOutputFile(fd, offset, length);
|
/frameworks/av/media/libstagefright/ |
H A D | AACExtractor.cpp | 90 // 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 D | AMRExtractor.cpp | 101 off64_t offset, bool isWide, size_t *frameSize) { 103 ssize_t count = source->readAt(offset, &header, 1); 139 off64_t offset = mIsWide ? 9 : 6; local 145 while (offset < streamSize) { 146 status_t status = getFrameSizeByOffset(source, offset, mIsWide, &frameSize); 155 mOffsetTable[mOffsetTableLength] = offset - (mIsWide ? 9: 6); 159 offset += frameSize; 100 getFrameSizeByOffset(const sp<DataSource> &source, off64_t offset, bool isWide, size_t *frameSize) argument
|
H A D | DataSource.cpp | 55 bool DataSource::getUInt16(off64_t offset, uint16_t *x) { argument 59 if (readAt(offset, byte, 2) != 2) { 68 bool DataSource::getUInt24(off64_t offset, uint32_t *x) { argument 72 if (readAt(offset, byte, 3) != 3) { 81 bool DataSource::getUInt32(off64_t offset, uint32_t *x) { argument 85 if (readAt(offset, &tmp, 4) != 4) { 94 bool DataSource::getUInt64(off64_t offset, uint64_t *x) { argument 98 if (readAt(offset, &tmp, 8) != 8) {
|
H A D | MediaExtractor.cpp | 86 virtual ssize_t readAt(off64_t offset, size_t size); 120 ssize_t RemoteDataSource::readAt(off64_t offset, size_t size) { argument 121 ALOGV("readAt(%" PRId64 ", %zu)", offset, size); 122 return mSource->readAt(offset, mMemory->pointer(), size);
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
H A D | dpb.cpp | 268 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 D | findhalfpel.cpp | 145 /* to be optimized later based on byte-offset load */ 149 dst -= 4; /* offset */ 264 dst -= 24; // offset 315 dst -= 24; // offset 514 int offset = 1 - (384 * 7); local 541 c1 += offset; 577 c1 += offset;
|
H A D | residual.cpp | 31 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 D | block_idct.cpp | 232 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 D | combined_decode.cpp | 555 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 D | datapart_decode.cpp | 624 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 D | mb_motion_comp.cpp | 142 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 D | bitstream_io.cpp | 422 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 D | combined_encode.cpp | 45 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 D | fastcodemb.cpp | 33 /* 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 D | me_utils.cpp | 23 #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/codecs/mp3dec/test/ |
H A D | mp3reader.cpp | 194 static ssize_t sourceReadAt(FILE *fp, off64_t offset, void *data, size_t size) { argument 195 int retVal = fseek(fp, offset, SEEK_SET);
|