/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 49 ALOGE("AudioSystem could not query the input buffer size for sampleRate %u, format %#x, " 54 // We double the size of input buffer for ping pong use of record buffer. 108 // it is looping on buffer empty condition in obtainBuffer(). 595 ALOGE("Could not get buffer pointer"); 712 Proxy::Buffer buffer; local 735 buffer.mFrameCount = 0; 736 buffer.mRaw = NULL; 737 buffer.mNonContig = 0; 756 buffer 780 Proxy::Buffer buffer; local 799 read(void* buffer, size_t userSize, bool blocking) argument [all...] |
H A D | AudioTrack.cpp | 95 // Ensure that buffer depth covers at least audio hardware latency 242 // it is looping on buffer full condition in obtainBuffer(). 600 // clear buffer position and loop count. 755 // TODO: Should we also check if the buffer size is compatible? 818 // Check if the buffer size is compatible. 1166 // use case 1: shared buffer 1180 // The client's AudioTrack buffer is divided into n parts for purpose of wakeup by server, where 1215 ALOGE("Invalid buffer alignment: address %p, channel count %u", 1221 // When initializing a shared buffer AudioTrack via constructors, 1223 // But when initializing a shared buffer AudioTrac 1480 Proxy::Buffer buffer; local 1557 Proxy::Buffer buffer; local 1579 write(const void* buffer, size_t userSize, bool blocking) argument 1635 allocateTimedBuffer(size_t size, sp<IMemory>* buffer) argument 1671 queueTimedBuffer(const sp<IMemory>& buffer, int64_t pts) argument 2391 char buffer[SIZE]; local [all...] |
H A D | AudioTrackShared.cpp | 84 status_t ClientProxy::obtainBuffer(Buffer* buffer, const struct timespec *requested, argument 87 LOG_ALWAYS_FATAL_IF(buffer == NULL || buffer->mFrameCount == 0); 184 if (part1 > buffer->mFrameCount) { 185 part1 = buffer->mFrameCount; 187 buffer->mFrameCount = part1; 188 buffer->mRaw = part1 > 0 ? 190 buffer->mNonContig = avail - part1; 277 buffer->mFrameCount = 0; 278 buffer 296 releaseBuffer(Buffer* buffer) argument 600 obtainBuffer(Buffer* buffer, bool ackFlush) argument 709 releaseBuffer(Buffer* buffer) argument 935 obtainBuffer(Buffer* buffer, bool ackFlush __unused) argument [all...] |
H A D | CharacterEncodingDetector.cpp | 221 char* buffer = new char[targetLength]; local 223 if (!buffer) 225 char* target = buffer; 238 while (--target > buffer && *target == ' ') { 242 char *start = buffer; 249 delete[] buffer;
|
H A D | IAudioFlinger.cpp | 932 sp<IMemory> buffer; local 934 buffer = interface_cast<IMemory>(data.readStrongBinder()); 942 if ((haveSharedBuffer && (buffer == 0)) || 943 ((buffer != 0) && (buffer->pointer() == NULL))) { 949 channelMask, &frameCount, &flags, buffer, output, tid,
|
H A D | IAudioTrack.cpp | 118 virtual status_t allocateTimedBuffer(size_t size, sp<IMemory>* buffer) { argument 127 *buffer = interface_cast<IMemory>(reply.readStrongBinder()); 128 if (*buffer != 0 && (*buffer)->pointer() == NULL) { 129 (*buffer).clear(); 136 virtual status_t queueTimedBuffer(const sp<IMemory>& buffer, argument 140 data.writeStrongBinder(IInterface::asBinder(buffer)); 240 sp<IMemory> buffer; local 241 status_t status = allocateTimedBuffer(data.readInt64(), &buffer); 244 reply->writeStrongBinder(IInterface::asBinder(buffer)); 250 sp<IMemory> buffer = interface_cast<IMemory>( local [all...] |
H A D | IMediaHTTPConnection.cpp | 90 virtual ssize_t readAt(off64_t offset, void *buffer, size_t size) { argument 128 memcpy(buffer, mMemory->pointer(), len);
|
H A D | IOMX.cpp | 248 buffer_id *buffer, OMX_U32 allottedSize) { 259 *buffer = 0; 264 *buffer = (buffer_id)reply.readInt32(); 272 const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) { 282 *buffer = 0; 287 *buffer = (buffer_id)reply.readInt32(); 294 const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) { 300 data.writeInt32((int32_t)buffer); 458 buffer_id *buffer, void **buffer_data) { 468 *buffer 246 useBuffer( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize) argument 270 useGraphicBuffer( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id *buffer) argument 292 updateGraphicBufferInMeta( node_id node, OMX_U32 port_index, const sp<GraphicBuffer> &graphicBuffer, buffer_id buffer) argument 456 allocateBuffer( node_id node, OMX_U32 port_index, size_t size, buffer_id *buffer, void **buffer_data) argument 479 allocateBufferWithBackup( node_id node, OMX_U32 port_index, const sp<IMemory> ¶ms, buffer_id *buffer, OMX_U32 allottedSize) argument 502 freeBuffer( node_id node, OMX_U32 port_index, buffer_id buffer) argument 514 fillBuffer(node_id node, buffer_id buffer, int fenceFd) argument 528 emptyBuffer( node_id node, buffer_id buffer, OMX_U32 range_offset, OMX_U32 range_length, OMX_U32 flags, OMX_TICKS timestamp, int fenceFd) argument 790 buffer_id buffer; local 810 buffer_id buffer; local 830 buffer_id buffer = (buffer_id)data.readInt32(); local 968 buffer_id buffer; local 992 buffer_id buffer; local 1011 buffer_id buffer = (buffer_id)data.readInt32(); local 1022 buffer_id buffer = (buffer_id)data.readInt32(); local 1035 buffer_id buffer = (buffer_id)data.readInt32(); local [all...] |
H A D | MemoryLeakTrackUtil.cpp | 79 char buffer[SIZE]; local 99 snprintf(buffer, SIZE, " Allocation count %i\n", count); 100 result.append(buffer); 101 snprintf(buffer, SIZE, " Total memory %i\n", totalMemory); 102 result.append(buffer); 154 snprintf(buffer, SIZE, "size %8i, dup %4i, ", e->size, e->dups); 155 result.append(buffer); 160 snprintf(buffer, SIZE, "0x%08x", e->backtrace[ct]); 161 result.append(buffer);
|
H A D | MidiIoWrapper.cpp | 27 static int readAt(void *handle, void *buffer, int pos, int size) { argument 28 return ((android::MidiIoWrapper*)handle)->readAt(buffer, pos, size); 67 int MidiIoWrapper::readAt(void *buffer, int offset, int size) { argument 68 ALOGV("readAt(%p, %d, %d)", buffer, offset, size); 71 return mDataSource->readAt(offset, buffer, size); 77 return read(mFd, buffer, size);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 389 char buffer[SIZE]; local 393 snprintf(buffer, 255, " stream type(%d), left - right volume(%f, %f)\n", 395 result.append(buffer); 396 snprintf(buffer, 255, " msec per frame(%f), latency (%d)\n", 398 result.append(buffer); 399 snprintf(buffer, 255, " aux effect id(%d), send level (%f)\n", 401 result.append(buffer); 413 char buffer[SIZE]; local 416 snprintf(buffer, 255, " pid(%d), connId(%d), status(%d), looping(%s)\n", 418 result.append(buffer); 437 char buffer[SIZE]; local 1855 write(const void* buffer, size_t size, bool blocking) argument 1976 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; local [all...] |
H A D | MetadataRetrieverClient.cpp | 63 char buffer[SIZE]; local 66 snprintf(buffer, 255, " pid(%d)\n", mPid); 67 result.append(buffer);
|
H A D | StagefrightRecorder.cpp | 916 // cause out-of-memory due to large input buffer size. And audio recording 1868 char buffer[SIZE]; local 1873 snprintf(buffer, SIZE, " No file writer\n"); 1874 result.append(buffer); 1876 snprintf(buffer, SIZE, " Recorder: %p\n", this); 1877 snprintf(buffer, SIZE, " Output file (fd %d):\n", mOutputFd); 1878 result.append(buffer); 1879 snprintf(buffer, SIZE, " File format: %d\n", mOutputFormat); 1880 result.append(buffer); 1881 snprintf(buffer, SIZ [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 400 // is sniffed to be widevine. We don't want to buffer for file source 932 sp<ABuffer> buffer; local 933 status_t dequeueStatus = packets->dequeueAccessUnit(&buffer); 937 notify->setBuffer("buffer", buffer); 992 // try to read a buffer as we may not have been able to the last time 1008 // start pulling in more buffers if we only have one (or no) buffer left 1355 // data is already provided in the buffer 1523 sp<ABuffer> buffer = mediaBufferToABuffer( local 1525 track->mPackets->queueAccessUnit(buffer); [all...] |
H A D | HTTPLiveSource.cpp | 214 sp<ABuffer> buffer; local 215 while (mLiveSession->dequeueAccessUnit(fetchType, &buffer) == OK) { 219 notify->setBuffer("buffer", buffer); 222 CHECK(buffer->meta()->findInt64("baseUs", &baseUs)); 223 CHECK(buffer->meta()->findInt64("timeUs", &timeUs)); 383 // notification without buffer triggers MEDIA_INFO_METADATA_UPDATE
|
H A D | NuPlayer.cpp | 838 // video may change deep buffer mode of audio. 1570 const sp<ABuffer> &buffer = inputBufs[i]; local 1571 MediaBuffer *mbuf = new MediaBuffer(buffer->data(), buffer->size()); 2103 ALOGI("buffer low, pausing..."); 2121 ALOGI("buffer ready, resuming..."); 2150 sp<ABuffer> buffer; local 2151 CHECK(msg->findBuffer("buffer", &buffer)); 2153 sendSubtitleData(buffer, 2159 sp<ABuffer> buffer; local 2176 sp<ABuffer> buffer; local 2232 sp<ABuffer> buffer; local 2258 sendSubtitleData(const sp<ABuffer> &buffer, int32_t baseIndex) argument 2276 sendTimedMetaData(const sp<ABuffer> &buffer) argument 2289 sendTimedTextData(const sp<ABuffer> &buffer) argument [all...] |
H A D | NuPlayerDecoder.cpp | 457 msg->setSize("buffer-ix", bufferIx); 460 // if EOS, need to queue EOS buffer 494 sp<ABuffer> buffer; local 495 mCodec->getInputBuffer(index, &buffer); 497 if (buffer == NULL) { 511 mInputBuffers.editItemAt(index) = buffer; 523 msg->setSize("buffer-ix", index); 525 sp<ABuffer> buffer = mCSDsToSubmit.itemAt(0); local 527 msg->setBuffer("buffer", buffer); 558 sp<ABuffer> buffer; local 774 sp<ABuffer> buffer; local 901 sp<ABuffer> buffer = mOutputBuffers[bufferIx]; local 1032 sp<ABuffer> buffer; local [all...] |
H A D | NuPlayerDecoderPassThrough.cpp | 37 // TODO optimize buffer size for power consumption 38 // The offload read buffer size is 32 KB but 24 KB uses less power. 153 ALOGD("return aggregated buffer and save err(=%d) for later", err); 177 // Create a larger buffer for combining smaller buffers from the extractor. 187 // Will the smaller buffer fit? 190 // Should we save this small buffer for the next big buffer? 191 // If the first small buffer did not have a timestamp then save 192 // any buffer that does have a timestamp until the next big buffer 288 sp<ABuffer> buffer; local [all...] |
H A D | NuPlayerRenderer.cpp | 50 #Use deep buffer for PCM data with video (it is generally enabled for audio-only) 136 const sp<ABuffer> &buffer, 141 msg->setBuffer("buffer", buffer); 659 void *buffer, 668 return me->fillAudioBuffer(buffer, size); 690 size_t NuPlayer::Renderer::fillAudioBuffer(void *buffer, size_t size) { argument 725 memcpy((char *)buffer + sizeCopied, 807 // has received INFO_FORMAT_CHANGED as the first buffer since 861 // ignore 0-sized buffer whic 134 queueBuffer( bool audio, const sp<ABuffer> &buffer, const sp<AMessage> ¬ifyConsumed) argument 657 AudioSinkCallback( MediaPlayerBase::AudioSink * , void *buffer, size_t size, void *cookie, MediaPlayerBase::AudioSink::cb_event_t event) argument 1180 sp<ABuffer> buffer; local [all...] |
H A D | StreamingSource.cpp | 88 char buffer[188]; local 90 ssize_t n = mStreamListener->read(buffer, sizeof(buffer), &extra); 118 if (buffer[0] == 0x00) { 125 uint8_t type = buffer[1]; 129 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs)); 140 status_t err = mTSParser->feedTSPacket(buffer, sizeof(buffer)); 171 // We're going to buffer at least 2 secs worth data on all tracks before
|
/frameworks/av/media/libnbaio/ |
H A D | AudioBufferProviderSource.cpp | 49 ssize_t AudioBufferProviderSource::read(void *buffer, argument 71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); 79 // return a short count rather than continuing with next buffer. 141 // don't get next buffer until we really need it
|
H A D | AudioStreamInSource.cpp | 67 ssize_t AudioStreamInSource::read(void *buffer, size_t count, int64_t readPTS __unused) argument 72 ssize_t bytesRead = mStream->read(mStream, buffer, count * mFrameSize);
|
H A D | AudioStreamOutSink.cpp | 53 ssize_t AudioStreamOutSink::write(const void *buffer, size_t count) argument 59 ssize_t ret = mStream->write(mStream, buffer, count * mFrameSize);
|
H A D | LibsndfileSink.cpp | 37 ssize_t LibsndfileSink::write(const void *buffer, size_t count) argument 45 sf_count_t actual = sf_writef_short(mSndfile, (short *) buffer, (sf_count_t) count);
|
H A D | LibsndfileSource.cpp | 46 ssize_t LibsndfileSource::read(void *buffer, size_t count) argument 54 sf_count_t actual = sf_readf_short(mSndfile, (short *) buffer, (sf_count_t) count);
|