Searched refs:frameSize (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/av/media/libstagefright/
H A DAMRExtractor.cpp92 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local
95 frameSize = (frameSize + 7) / 8 + 1;
97 return frameSize;
101 off64_t offset, bool isWide, size_t *frameSize) {
109 *frameSize = getFrameSize(isWide, FT);
110 if (*frameSize == 0) {
138 size_t frameSize, numFrames = 0; local
143 if (getFrameSizeByOffset(source, offset, mIsWide, &frameSize) != OK) {
153 offset += frameSize;
100 getFrameSizeByOffset(const sp<DataSource> &source, off64_t offset, bool isWide, size_t *frameSize) argument
295 size_t frameSize = getFrameSize(mIsWide, FT); local
[all...]
H A DAACExtractor.cpp100 size_t frameSize = 0; local
121 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
125 if (headSize > frameSize) {
132 return frameSize;
171 size_t frameSize = 0; local
176 if ((frameSize = getAdtsFrameLength(source, offset, NULL)) == 0) {
182 offset += frameSize;
301 size_t frameSize, frameSizeWithoutHeader, headerSize; local
302 if ((frameSize = getAdtsFrameLength(mDataSource, mOffset, &headerSize)) == 0) {
312 frameSizeWithoutHeader = frameSize
[all...]
H A DVBRISeeker.cpp48 size_t frameSize; local
50 if (!GetMPEGAudioFrameSize(tmp, &frameSize, &sampleRate)) {
95 seeker->mBasePos = post_id3_pos + frameSize;
H A DAudioSource.cpp308 numLostBytes = mRecord->getInputFramesLost() * mRecord->frameSize();
349 const size_t frameSize = mRecord->frameSize(); local
352 ((1000000LL * (bufferSize / frameSize)) +
362 mNumFramesReceived += bufferSize / frameSize;
H A DAVIExtractor.cpp281 size_t frameSize; local
282 if (!GetMPEGAudioFrameSize(firstHeader, &frameSize)) {
286 size_t subsequentOffset = offset + frameSize;
300 if (!GetMPEGAudioFrameSize(header, &frameSize)) {
304 subsequentOffset += frameSize;
338 size_t frameSize; local
342 header, &frameSize, &sampleRate, NULL, NULL, &numSamples)) {
346 if (mBuffer->size() < frameSize) {
350 MediaBuffer *mbuf = new MediaBuffer(frameSize);
351 memcpy(mbuf->data(), mBuffer->data(), frameSize);
[all...]
H A DAudioPlayer.cpp153 mFrameSize = mAudioSink->frameSize();
185 mFrameSize = mAudioTrack->frameSize();
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp39 size_t frameSize = 0; local
56 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
63 if (headSize > frameSize) {
64 SL_LOGE("AacBqToPcmCbRenderer::getAdtsFrameSize() returns 0 (frameSize %u < headSize %u)",
65 frameSize, headSize);
69 SL_LOGV("AacBqToPcmCbRenderer::getAdtsFrameSize() returns %u", frameSize);
71 return frameSize;
86 size_t frameSize = 0; local
94 if ((frameSize = getAdtsFrameSize((uint8_t *)data, offset, size)) == 0) {
99 offset += frameSize;
[all...]
/frameworks/wilhelm/src/android/util/
H A DAacAdtsExtractor.cpp49 size_t frameSize = 0; local
74 frameSize = (header[0] & 0x3) << 11 | header[1] << 3 | header[2] >> 5;
81 if (headSize > frameSize) {
82 SL_LOGE("AacAdtsExtractor:: getFrameSize() returns 0 (frameSize %u < headSize %u)",
83 frameSize, headSize);
87 //SL_LOGV("AacAdtsExtractor:: getFrameSize() returns %u", frameSize);
89 return frameSize;
135 size_t frameSize; local
136 if ((frameSize = getFrameSize(mDataSource, offset)) == 0) {
137 // Usually frameSize
269 size_t frameSize, frameSizeWithoutHeader; local
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp101 size_t frameSize = Format_frameSize(mFormat); local
102 ALOG_ASSERT(frameSize > 0 && frameSize <= 8);
107 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)];
138 size_t frameSize = Format_frameSize(mFormat); local
139 ALOG_ASSERT(frameSize > 0 && frameSize <= 8);
144 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)];
/frameworks/av/cmds/stagefright/
H A DSineSource.cpp71 size_t frameSize = mNumChannels * sizeof(int16_t); local
72 size_t numFramesPerBuffer = buffer->size() / frameSize;
95 buffer->set_range(0, numFramesPerBuffer * frameSize);
/frameworks/av/media/libstagefright/rtsp/
H A DAAMRAssembler.cpp93 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local
96 frameSize = (frameSize + 7) / 8 + 1;
98 return frameSize;
194 size_t frameSize = getFrameSize(mIsWide, (toc >> 3) & 0x0f); local
196 if (offset + frameSize - 1 > buffer->size()) {
207 buffer->data() + offset, frameSize - 1);
209 offset += frameSize - 1;
210 dstOffset += frameSize - 1;
H A DARTPWriter.cpp736 size_t frameSize = isWide ? kFrameSizeWB[FT] : kFrameSizeNB[FT]; local
739 frameSize = (frameSize + 7) / 8 + 1;
741 return frameSize;
815 size_t frameSize = getFrameSize(isWide, FT); local
818 memcpy(&data[dstOffset], &mediaData[srcOffset], frameSize - 1);
819 srcOffset += frameSize - 1;
820 dstOffset += frameSize - 1;
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DCachedFrameManager.java101 int frameSize = frame.getFormat().getSize();
102 if (frameSize > mStorageCapacity) {
107 int newStorageSize = mStorageSize + frameSize;
110 newStorageSize = mStorageSize + frameSize;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/
H A DSoftAMR.cpp269 size_t frameSize = kFrameSizeWB[FT]; local
272 frameSize = (frameSize + 7) / 8 + 1;
274 return frameSize;
354 size_t frameSize = getFrameSize(mode); local
355 CHECK_GE(inHeader->nFilledLen, frameSize);
386 numBytesRead = frameSize;
/frameworks/av/libvideoeditor/vss/src/
H A DM4VSS3GPP_Clip.c1891 M4OSA_UInt32 frameSize = 0; local
1897 frameSize = 95;
1901 frameSize = 103;
1905 frameSize = 118;
1909 frameSize = 134;
1913 frameSize = 148;
1917 frameSize = 159;
1921 frameSize = 204;
1925 frameSize = 244;
1929 frameSize
1977 M4OSA_UInt32 frameSize = 0; local
[all...]
/frameworks/av/include/private/media/
H A DAudioTrackShared.h94 // NOTE: audio_track_cblk_t::frameSize is not equal to AudioTrack::frameSize() for
95 // 8 bit PCM data: in this case, mCblk->frameSize is based on a sample size of
99 uint8_t frameSize; // would normally be size_t, but 8 bits is plenty member in struct:android::audio_track_cblk_t
/frameworks/av/media/libstagefright/mpeg2ts/
H A DESQueue.cpp366 size_t frameSize = 2 /* numChannels */ * sizeof(int16_t); local
368 size_t payloadSize = numAUs * frameSize * kFramesPerAU;
645 size_t frameSize; local
648 header, &frameSize, &samplingRate, &numChannels,
651 if (size < frameSize) {
657 sp<ABuffer> accessUnit = new ABuffer(frameSize);
658 memcpy(accessUnit->data(), data, frameSize);
661 mBuffer->data() + frameSize,
662 mBuffer->size() - frameSize);
664 mBuffer->setRange(0, mBuffer->size() - frameSize);
[all...]
/frameworks/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp186 aacParams->nFrameLength = mStreamInfo->frameSize;
384 mStreamInfo->frameSize
527 mStreamInfo->frameSize * sizeof(int16_t) * mStreamInfo->numChannels;
565 mNumSamplesOutput += mStreamInfo->frameSize;
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp348 return mTrack->frameCount() * frameSize();
363 ssize_t VideoEditorPlayer::VeAudioOutput::frameSize() const function in class:android::VideoEditorPlayer::VeAudioOutput
366 return mTrack->frameSize();
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h86 virtual ssize_t frameSize() const;
184 virtual ssize_t bufferSize() const { return frameSize() * mFrameCount; }
187 virtual ssize_t frameSize() const { return ssize_t(mChannelCount * ((mFormat == AUDIO_FORMAT_PCM_16_BIT)?sizeof(int16_t):sizeof(u_int8_t))); } function in class:android::MediaPlayerService::AudioCache
/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp197 int frameSize = nbChannels * bytesPerSample; local
198 size_t frameCount = buffSizeInBytes / frameSize;
395 ssize_t recorderBuffSize = lpRecorder->frameCount()*lpRecorder->frameSize();
/frameworks/av/include/media/
H A DAudioRecord.h67 size_t size; // total size in bytes == frameCount * frameSize
188 size_t frameSize() const;
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp260 size_t AudioRecord::frameSize() const function in class:android::AudioRecord
566 audioBuffer->size = framesReq*cblk->frameSize;
625 audioBuffer.frameCount = userSize/frameSize();
727 audioBuffer.frameCount = readSize/frameSize();
H A DAudioTrack.cpp357 size_t AudioTrack::frameSize() const function in class:android::AudioTrack
1045 audioBuffer->size = framesReq * cblk->frameSize;
1102 size_t frameSz = frameSize();
1305 // NOTE: mCblk->frameSize is not equal to AudioTrack::frameSize() for
1306 // 8 bit PCM data: in this case, mCblk->frameSize is based on a sample size of
1308 audioBuffer.frameCount = writtenSize/mCblk->frameSize;
1376 memset(mCblk->buffers, 0, frames * mCblk->frameSize);
1612 return (int8_t *)buffers + (offset - userBase) * frameSize;
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerRenderer.cpp240 numFramesAvailableToWrite * mAudioSink->frameSize();
298 size_t copiedFrames = copy / mAudioSink->frameSize();

Completed in 282 milliseconds

12