Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_get_main_data_size.cpp121 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[info->version_x][info->bitrate_index] << 20, in pvmp3_get_main_data_size() local
125 numBytes >>= (20 - info->version_x); in pvmp3_get_main_data_size()
132 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
135 numBytes -= 17; in pvmp3_get_main_data_size()
139 numBytes -= 32; in pvmp3_get_main_data_size()
144 numBytes >>= 1; in pvmp3_get_main_data_size()
145 pVars->predicted_frame_size = numBytes; in pvmp3_get_main_data_size()
149 numBytes -= 9; in pvmp3_get_main_data_size()
153 numBytes -= 17; in pvmp3_get_main_data_size()
159 numBytes++; in pvmp3_get_main_data_size()
[all …]
Dpvmp3_seek_synch.cpp179 int32 numBytes = fxp_mul32_Q28(mp3_bitrate[version][(temp<<16)>>28] << 20, in pvmp3_frame_synch() local
182 numBytes >>= (20 - version); in pvmp3_frame_synch()
186 numBytes >>= 1; in pvmp3_frame_synch()
190 numBytes++; in pvmp3_frame_synch()
193 if (numBytes > (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
196 pExt->CurrentFrameLength = numBytes + 3; in pvmp3_frame_synch()
199 else if (numBytes == (int32)pVars->inputStream.inputBufferCurrentLength) in pvmp3_frame_synch()
208 int32 offset = pVars->inputStream.usedBits + ((numBytes) << 3); in pvmp3_frame_synch()
/frameworks/base/media/libstagefright/
DVBRISeeker.cpp100 uint32_t numBytes; in CreateFromSource() local
102 case 1: numBytes = buffer[i]; break; in CreateFromSource()
103 case 2: numBytes = U16_AT(buffer + 2 * i); break; in CreateFromSource()
104 case 3: numBytes = U24_AT(buffer + 3 * i); break; in CreateFromSource()
108 numBytes = U32_AT(buffer + 4 * i); break; in CreateFromSource()
112 numBytes *= scale; in CreateFromSource()
114 seeker->mSegments.push(numBytes); in CreateFromSource()
116 LOGV("entry #%d: %d offset 0x%08lx", i, numBytes, offset); in CreateFromSource()
117 offset += numBytes; in CreateFromSource()
DHTTPBase.cpp59 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
64 entry.mNumBytes = numBytes; in addBandwidthMeasurement()
66 mTotalTransferBytes += numBytes; in addBandwidthMeasurement()
/frameworks/base/libs/rs/
DrsStream.cpp30 void IStream::loadByteArray(void *dest, size_t numBytes) { in loadByteArray() argument
31 memcpy(dest, mData + mPos, numBytes); in loadByteArray()
32 mPos += numBytes; in loadByteArray()
64 void OStream::addByteArray(const void *src, size_t numBytes) { in addByteArray() argument
66 while (mPos + numBytes >= mLength) { in addByteArray()
69 memcpy(mData + mPos, src, numBytes); in addByteArray()
70 mPos += numBytes; in addByteArray()
DrsStream.h60 void loadByteArray(void *dest, size_t numBytes);
133 void addByteArray(const void *src, size_t numBytes);
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.h40 size_t numBytes; member
78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
194 size_t numBytes,
DFwdLockConv.c576 pOutput->fromConvertData.numBytes = pSession->dataOffset; in FwdLockConv_WriteHeader()
833 if (pOutput->fromConvertData.numBytes == pSession->outputBufferSize) { in FwdLockConv_WriteEncryptedChar()
850 ((unsigned char *)pOutput->fromConvertData.pBuffer)[pOutput->fromConvertData.numBytes++] = ch; in FwdLockConv_WriteEncryptedChar()
1167 size_t numBytes, in FwdLockConv_ConvertData() argument
1177 pOutput->fromConvertData.numBytes = 0; in FwdLockConv_ConvertData()
1180 for (i = 0; i < numBytes; ++i) { in FwdLockConv_ConvertData()
1277 output.fromConvertData.numBytes > 0) { in FwdLockConv_ConvertOpenFile()
1280 output.fromConvertData.numBytes); in FwdLockConv_ConvertOpenFile()
1281 if (numBytesWritten != (ssize_t)output.fromConvertData.numBytes) { in FwdLockConv_ConvertOpenFile()
/frameworks/base/media/tests/omxjpegdecoder/
Domx_jpeg_decoder.cpp53 int numBytes = numChars * sizeof(char); in getJpegOutput() local
54 size -= numBytes; in getJpegOutput()
55 data += numBytes; in getJpegOutput()
74 int numBytes = numChars * sizeof(char); in storeBitmapToFile() local
75 size -= numBytes; in storeBitmapToFile()
76 data += numBytes; in storeBitmapToFile()
/frameworks/base/core/java/android/speech/srec/
DWaveHeader.java73 …ic WaveHeader(short format, short numChannels, int sampleRate, short bitsPerSample, int numBytes) { in WaveHeader() argument
78 mNumBytes = numBytes; in WaveHeader()
170 public WaveHeader setNumBytes(int numBytes) { in setNumBytes() argument
171 mNumBytes = numBytes; in setNumBytes()
184 int numBytes = readInt(in) - 36; in read() local
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaLteUiccRecords.java118 int numBytes; in onRecordLoaded() local
119 for (numBytes = 0; numBytes < spnData.length; numBytes++) { in onRecordLoaded()
120 if ((spnData[numBytes] & 0xFF) == 0xFF) break; in onRecordLoaded()
123 if (numBytes == 0) { in onRecordLoaded()
131 spn = new String(spnData, 0, numBytes, "ISO-8859-1"); in onRecordLoaded()
136 spn = GsmAlphabet.gsm7BitPackedToString(spnData, 0, (numBytes*8)/7); in onRecordLoaded()
139 spn = new String(spnData, 0, numBytes, "utf-16"); in onRecordLoaded()
/frameworks/base/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp379 if (convSession->output.fromConvertData.numBytes > 0) {
380 convResult->data = new char[convSession->output.fromConvertData.numBytes];
383 convResult->length = convSession->output.fromConvertData.numBytes;
582 int numBytes) { argument
588 numBytes > -1) {
591 size = FwdLockFile_read(session->fileDesc, buffer, numBytes);
628 ssize_t numBytes, argument
634 ssize_t numBytes,
644 (numBytes > -1) &&
651 bytesRead = onRead(uniqueId, decryptHandle, buffer, numBytes);
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c126 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes) { in FwdLockGlue_GetRandomNumber() argument
132 numBytesRead = read(fileDesc, pBuffer, numBytes); in FwdLockGlue_GetRandomNumber()
135 return numBytesRead >= 0 && (size_t)numBytesRead == numBytes; in FwdLockGlue_GetRandomNumber()
DFwdLockGlue.h32 int FwdLockGlue_GetRandomNumber(void *pBuffer, size_t numBytes);
/frameworks/base/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h449 int numBytes);
490 ssize_t numBytes,
496 ssize_t numBytes,
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java133 int numBytes = Math.min(encodedBytes.remaining(), end - start); in write() local
134 encodedBytes.put(bytes, start, numBytes); in write()
135 start += numBytes; in write()
/frameworks/base/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.h58 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes);
/frameworks/base/media/libstagefright/rtsp/
DAMPEG4AudioAssembler.cpp237 size_t numBytes = (totalNumBits + 7) / 8; in parseAudioSpecificConfig() local
239 *asc = new ABuffer(numBytes); in parseAudioSpecificConfig()
246 while (numBytes > 0) { in parseAudioSpecificConfig()
248 --numBytes; in parseAudioSpecificConfig()
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp130 ssize_t numBytes; in isFileDifferent() local
131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { in isFileDifferent()
132 crc = crc32(crc, crcBuffer, numBytes); in isFileDifferent()
/frameworks/base/drm/common/
DDrmEngineBase.cpp153 int uniqueId, DecryptHandle* decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { in pread() argument
154 return onPread(uniqueId, decryptHandle, buffer, numBytes, offset); in pread()
/frameworks/base/drm/libdrmframework/
DDrmManagerClient.cpp151 sp<DecryptHandle> &decryptHandle, void* buffer, ssize_t numBytes, off64_t offset) { in pread() argument
152 return mDrmManagerClientImpl->pread(mUniqueId, decryptHandle, buffer, numBytes, offset); in pread()
DDrmManagerClientImpl.cpp317 void* buffer, ssize_t numBytes, off64_t offset) { in pread() argument
319 if ((NULL != decryptHandle.get()) && (NULL != buffer) && (0 < numBytes)) { in pread()
321 uniqueId, decryptHandle.get(), buffer, numBytes, offset); in pread()
/frameworks/base/drm/libdrmframework/plugins/common/include/
DDrmEngineBase.h99 void* buffer, ssize_t numBytes, off64_t offset);
459 void* buffer, ssize_t numBytes, off64_t offset) = 0;
/frameworks/base/media/libstagefright/include/
DHTTPBase.h60 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
/frameworks/base/media/libstagefright/codecs/on2/h264dec/source/
DDecTestBench.c709 static u32 numBytes = 0; in H264SwDecMalloc() local
710 numBytes += size; in H264SwDecMalloc()
711 DEBUG(("Allocated %d bytes, total %d\n", size, numBytes)); in H264SwDecMalloc()

12