Searched defs:numBytes (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_get_main_data_size.cpp121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, local
125 numBytes >>= (20 - info->version_x);
132 pVars->predicted_frame_size = numBytes;
135 numBytes -= 17;
139 numBytes -= 32;
144 numBytes >>= 1;
145 pVars->predicted_frame_size = numBytes;
149 numBytes -= 9;
153 numBytes -= 17;
159 numBytes
[all...]
H A Dpvmp3_seek_synch.cpp179 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[version][(temp<<16)>>28] << 20, local
182 numBytes >>= (20 - version);
186 numBytes >>= 1;
190 numBytes++;
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength)
196 pExt->CurrentFrameLength = numBytes + 3;
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength)
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3);
/frameworks/av/media/libstagefright/
H A DHTTPBase.cpp62 size_t numBytes, int64_t delayUs) {
67 entry.mNumBytes = numBytes;
69 mTotalTransferBytes += numBytes;
61 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument
H A DVBRISeeker.cpp106 uint32_t numBytes; local
108 case 1: numBytes = buffer[i]; break;
109 case 2: numBytes = U16_AT(buffer + 2 * i); break;
110 case 3: numBytes = U24_AT(buffer + 3 * i); break;
114 numBytes = U32_AT(buffer + 4 * i); break;
118 numBytes *= scale;
120 seeker->mSegments.push(numBytes);
122 ALOGV("entry #%d: %d offset 0x%08lx", i, numBytes, offset);
123 offset += numBytes;
H A DWAVExtractor.cpp441 ssize_t numBytes = n; local
443 while (numBytes-- > 0) {
/frameworks/rs/
H A DrsStream.cpp30 void IStream::loadByteArray(void *dest, size_t numBytes) { argument
31 memcpy(dest, mData + mPos, numBytes);
32 mPos += numBytes;
64 void OStream::addByteArray(const void *src, size_t numBytes) { argument
66 while (mPos + numBytes >= mLength) {
69 memcpy(mData + mPos, src, numBytes);
70 mPos += numBytes;
/frameworks/support/renderscript/v8/rs_support/
H A DrsStream.cpp30 void IStream::loadByteArray(void *dest, size_t numBytes) { argument
31 memcpy(dest, mData + mPos, numBytes);
32 mPos += numBytes;
64 void OStream::addByteArray(const void *src, size_t numBytes) { argument
66 while (mPos + numBytes >= mLength) {
69 memcpy(mData + mPos, src, numBytes);
70 mPos += numBytes;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c126 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes) { argument
132 numBytesRead = read(fileDesc, pBuffer, numBytes);
135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.h40 size_t numBytes; member in struct:FwdLockConv_ConvertData_Output
73 * @param[in] numBytes The number of bytes to read.
78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
85 * @param[in] numBytes The number of bytes to write.
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
178 * @param[in] numBytes The number of bytes to convert.
194 size_t numBytes,
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp168 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
169 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset);
167 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DIDrmManagerService.cpp779 ssize_t numBytes, off64_t offset) {
789 data.writeInt32(numBytes);
1501 const int numBytes = data.readInt32(); local
1502 char* buffer = new char[numBytes];
1506 ssize_t result = pread(uniqueId, &handle, buffer, numBytes, offset);
777 pread( int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp162 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) {
163 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset);
161 pread( sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManagerClientImpl.cpp326 void* buffer, ssize_t numBytes, off64_t offset) {
328 if ((NULL != decryptHandle.get()) && (NULL != buffer) && (0 < numBytes)) {
330 uniqueId, decryptHandle.get(), buffer, numBytes, offset);
325 pread(int uniqueId, sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/base/core/java/android/speech/srec/
H A DWaveHeader.java31 * <li> numBytes - size of audio data after this header, in bytes.
71 * @param numBytes size of audio data after this header, in bytes.
73 public WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { argument
78 mNumBytes = numBytes;
167 * @param numBytes size of audio data after this header, in bytes.
170 public WaveHeader setNumBytes(int numBytes) { argument
171 mNumBytes = numBytes;
184 int numBytes = readInt(in) - 36;
272 "WaveHeader format=%d numChannels=%d sampleRate=%d bitsPerSample=%d numBytes=%d",
/frameworks/base/core/java/android/speech/tts/
H A DBlockingAudioTrack.java185 long getAudioLengthMs(int numBytes) { argument
186 final int unconsumedFrames = numBytes / mBytesPerFrame;
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.cpp53 int numBytes = numChars * sizeof(char); local
54 size -= numBytes;
55 data += numBytes;
74 int numBytes = numChars * sizeof(char); local
75 size -= numBytes;
76 data += numBytes;
/frameworks/av/drm/drmserver/
H A DDrmManagerService.cpp269 void* buffer, ssize_t numBytes, off64_t offset) {
274 return mDrmManager->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
268 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
H A DDrmManager.cpp566 void* buffer, ssize_t numBytes, off64_t offset) {
572 result = drmEngine->pread(uniqueId, decryptHandle, buffer, numBytes, offset);
565 pread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c296 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes) { argument
304 numBytesRead = read(pSession->fileDesc, pBuffer, numBytes);
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp301 void* buffer, ssize_t numBytes, off64_t offset) {
300 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DDecTestBench.c709 static u32 numBytes = 0; local
710 numBytes += size;
711 DEBUG(("Allocated %d bytes, total %d\n", size, numBytes));
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4AudioAssembler.cpp237 size_t numBytes = (totalNumBits + 7) / 8; local
239 *asc = new ABuffer(numBytes);
246 while (numBytes > 0) {
248 --numBytes;
/frameworks/base/core/jni/
H A Dcom_android_internal_content_NativeLibraryHelper.cpp130 ssize_t numBytes; local
131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) {
132 crc = crc32(crc, crcBuffer, numBytes);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp416 if (convSession->output.fromConvertData.numBytes > 0) {
417 convResult->data = new char[convSession->output.fromConvertData.numBytes];
420 convResult->length = convSession->output.fromConvertData.numBytes;
619 int numBytes) {
625 numBytes > -1) {
628 size = FwdLockFile_read(session->fileDesc, buffer, numBytes);
665 ssize_t numBytes,
671 ssize_t numBytes,
681 (numBytes > -1) &&
688 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
616 onRead(int uniqueId, DecryptHandle* decryptHandle, void* buffer, int numBytes) argument
662 onPread(int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) argument
[all...]
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditor3gpReader.cpp318 M4OSA_UInt32 numBytes=0; local
332 b=(val & ((0xff)<< (8 * numBytes)))>> (8 * numBytes);
334 numBytes++;
335 } while ((b & 0x80) && numBytes < 4);
350 M4OSA_UInt32 numBytes=0; local
366 numBytes++;
367 } while ((b & 0x80) && numBytes < 4);

Completed in 282 milliseconds

12