Searched defs:buffer (Results 326 - 350 of 765) sorted by relevance

<<11121314151617181920>>

/frameworks/av/media/libmediaplayer2/nuplayer2/
H A DNuPlayer2DecoderPassThrough.cpp37 // TODO optimize buffer size for power consumption
38 // The offload read buffer size is 32 KB but 24 KB uses less power.
147 ALOGD("return aggregated buffer and save err(=%d) for later", err);
171 // Create a larger buffer for combining smaller buffers from the extractor.
181 // Will the smaller buffer fit?
184 // Should we save this small buffer for the next big buffer?
185 // If the first small buffer did not have a timestamp then save
186 // any buffer that does have a timestamp until the next big buffer
287 sp<ABuffer> buffer; local
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp64 char buffer[SIZE]; local
67 snprintf(buffer, 255, " pid(%d)\n", mPid);
68 result.append(buffer);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DHTTPLiveSource.cpp35 // default buffer prepare/ready/underflow marks
260 sp<ABuffer> buffer; local
261 while (mLiveSession->dequeueAccessUnit(fetchType, &buffer) == OK) {
265 notify->setBuffer("buffer", buffer);
268 CHECK(buffer->meta()->findInt64("baseUs", &baseUs));
269 CHECK(buffer->meta()->findInt64("timeUs", &timeUs));
430 // notification without buffer triggers MEDIA_INFO_METADATA_UPDATE
H A DNuPlayerDecoderPassThrough.cpp38 // TODO optimize buffer size for power consumption
39 // The offload read buffer size is 32 KB but 24 KB uses less power.
148 ALOGD("return aggregated buffer and save err(=%d) for later", err);
172 // Create a larger buffer for combining smaller buffers from the extractor.
182 // Will the smaller buffer fit?
185 // Should we save this small buffer for the next big buffer?
186 // If the first small buffer did not have a timestamp then save
187 // any buffer that does have a timestamp until the next big buffer
288 sp<ABuffer> buffer; local
[all...]
H A DStreamingSource.cpp103 char buffer[188]; local
105 ssize_t n = mStreamListener->read(buffer, sizeof(buffer), &extra);
133 if (buffer[0] == 0x00) {
140 uint8_t type = buffer[1];
144 memcpy(&mediaTimeUs, &buffer[2], sizeof(mediaTimeUs));
155 status_t err = mTSParser->feedTSPacket(buffer, sizeof(buffer));
186 // We're going to buffer at least 2 secs worth data on all tracks before
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp235 * 11 bits of buffer fullness. 0x7FF for VBR.
297 MediaBufferBase *buffer; local
298 err = mSource->read(&buffer);
305 buffer->release();
306 buffer = NULL;
310 mEstimatedSizeBytes += kAdtsHeaderLength + buffer->range_length();
312 buffer->release();
313 buffer = NULL;
319 if (buffer->meta_data().findInt32(kKeyIsCodecConfig, &isCodecSpecific) && isCodecSpecific) {
320 ALOGV("Drop codec specific info buffer");
[all...]
H A DAudioPlayer.cpp98 // updated format, if there isn't, we'll stash away the valid buffer
321 // amount of residual data in the hardware buffer which we must
343 // Make sure to release any buffer we hold onto so that the
352 ALOGV("AudioPlayer releasing input buffer.");
426 void *buffer, size_t size, void *cookie,
432 return me->fillBuffer(buffer, size);
451 AudioTrack::Buffer *buffer = (AudioTrack::Buffer *)info; local
452 size_t numBytesWritten = fillBuffer(buffer->raw, buffer->size);
453 buffer
424 AudioSinkCallback( MediaPlayerBase::AudioSink * , void *buffer, size_t size, void *cookie, MediaPlayerBase::AudioSink::cb_event_t event) argument
[all...]
H A DCameraSourceTimeLapse.cpp171 void CameraSourceTimeLapse::signalBufferReturned(MediaBufferBase* buffer) { argument
174 if (mQuickStop && (buffer == mLastReadBufferCopy)) {
175 buffer->setObserver(NULL);
176 buffer->release();
178 return CameraSource::signalBufferReturned(buffer);
207 MediaBufferBase **buffer, const ReadOptions *options) {
210 mLastReadStatus = CameraSource::read(buffer, options);
213 // Make a copy of the buffer in that case.
215 if (mQuickStop && *buffer) {
216 fillLastReadBufferCopy(**buffer);
206 read( MediaBufferBase **buffer, const ReadOptions *options) argument
329 processBufferQueueFrame(BufferItem& buffer) argument
[all...]
H A DJPEGSource.cpp121 MediaBufferBase *buffer; local
122 mGroup->acquire_buffer(&buffer);
124 ssize_t n = mSource->readAt(mOffset, buffer->data(), mSize - mOffset);
127 buffer->release();
128 buffer = NULL;
133 buffer->set_range(0, n);
137 *out = buffer;
H A DSimpleDecodingSource.cpp203 MediaBufferBase **buffer, const ReadOptions *options) {
204 *buffer = NULL;
212 status_t res = doRead(me, buffer, options);
224 Mutexed<ProtectedState>::Locked &me, MediaBufferBase **buffer, const ReadOptions *options) {
247 // the codec produces at least one output buffer. Also, the codec
248 // should produce an output buffer in at most 1 seconds. Retry a
251 // allow some time to get input buffer after flush
264 ALOGW("[%s] could not get input buffer #%zu",
314 ALOGW("'%s' received %zu input bytes for buffer of size %zu",
334 ALOGI("[%s] failed to queue input buffer #
202 read( MediaBufferBase **buffer, const ReadOptions *options) argument
223 doRead( Mutexed<ProtectedState>::Locked &me, MediaBufferBase **buffer, const ReadOptions *options) argument
[all...]
/frameworks/av/media/libstagefright/bqhelper/
H A DConversion.cpp159 * \brief Wrap an opaque buffer inside a `hidl_vec<uint8_t>`.
161 * \param[in] l The pointer to the beginning of the opaque buffer.
162 * \param[in] size The size of the buffer.
163 * \return A `hidl_vec<uint8_t>` that points to the buffer.
173 * \brief Create a `hidl_vec<uint8_t>` that is a copy of an opaque buffer.
175 * \param[in] l The pointer to the beginning of the opaque buffer.
176 * \param[in] size The size of the buffer.
177 * \return A `hidl_vec<uint8_t>` that is a copy of the input buffer.
273 * void*& buffer, size_t& size,
278 * void*& buffer, size_
373 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
416 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
461 void* buffer = static_cast<void*>(baseBuffer.get()); local
523 void* buffer = static_cast<void*>(baseBuffer.get()); local
595 flatten(HGraphicBufferProducer::FenceTimeSnapshot const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
634 unflatten( HGraphicBufferProducer::FenceTimeSnapshot* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
731 unflatten(HGraphicBufferProducer::FrameEventsDelta* t, std::vector<native_handle_t*>* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
800 flatten(HGraphicBufferProducer::FrameEventsDelta const& t, void*& buffer, size_t& size, int*& fds, size_t numFds) argument
892 unflatten( HGraphicBufferProducer::FrameEventHistoryDelta* t, std::vector<std::vector<native_handle_t*> >* nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
933 flatten( HGraphicBufferProducer::FrameEventHistoryDelta const& t, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
987 void* buffer = static_cast<void*>(baseBuffer.get()); local
1033 void* buffer = static_cast<void*>(baseBuffer.get()); local
1072 unflatten(Region* t, void const*& buffer, size_t& size) argument
1111 flatten(Region const& t, void*& buffer, size_t& size) argument
1147 void* buffer = static_cast<void*>(baseBuffer.get()); local
1177 void* buffer = static_cast<void*>(baseBuffer.get()); local
1252 flatten(HGraphicBufferProducer::QueueBufferInput const& t, native_handle_t** nh, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument
1303 unflatten( HGraphicBufferProducer::QueueBufferInput* t, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument
1373 void* buffer = static_cast<void*>(baseBuffer.get()); local
1419 void* buffer = static_cast<void*>(baseBuffer.get()); local
[all...]
/frameworks/av/media/libstagefright/codecs/flac/enc/
H A DSoftFlacEncoder.cpp76 if (!mSignalledError) { // no use allocating input buffer if we had an error above
79 ALOGE("SoftFlacEncoder::SoftFlacEncoder(name=%s) error allocating internal input buffer", name);
100 ALOGE("initCheck() failed due to error allocating internal input buffer");
332 ALOGE("Input buffer size must be at most %d bytes",
366 ALOGV("saw EOS on buffer of size %u", inHeader->nFilledLen);
371 ALOGE("input buffer too large (%d).", inHeader->nFilledLen);
409 ALOGV(" dequeueing buffer on output port after writing data");
423 ALOGV(" dequeueing residual buffer on output port after writing data");
445 const FLAC__byte buffer[],
459 memcpy(mHeader + mHeaderOffset, buffer, byte
444 onEncodedFlacAvailable( const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame) argument
557 flacEncoderWriteCallback( const FLAC__StreamEncoder * , const FLAC__byte buffer[], size_t bytes, unsigned samples, unsigned current_frame, void *client_data) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dbitstream.cpp41 /* Purpose : Read more bitstream data into buffer & the 24-byte cache. */
43 /* that the buffer is the frame-based buffer provided by */
119 /* Purpose : Initialize the bitstream buffer for frame-based decoding. */
124 void BitstreamReset(BitstreamDecVideo *stream, uint8 *buffer, int32 buffer_size) argument
126 /* set up frame-based bitstream buffer */
129 stream->bitstreamBuffer = buffer;
143 /* set up linear bitstream buffer */
307 /* Purpose : Read bits (nbits <=16) from bitstream buffer. */
350 /* Purpose : Flush nbits bits from bitstream buffer
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp268 * the last buffer, and thus should include the remaining
269 * bytes in the buffer.
376 bool Mp3Reader::getFrame(void *buffer, uint32_t *size) { argument
383 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, 4);
388 uint32_t header = U32_AT((const uint8_t *)buffer);
408 ssize_t n = sourceReadAt(mFp, mCurrentPos, buffer, frame_size);
/frameworks/av/media/libstagefright/flac/dec/
H A DFLACDecoder.cpp33 FLAC__byte buffer[], size_t *bytes) {
43 memcpy(buffer, mBuffer + mBufferPos, actual);
51 const FLAC__Frame *frame, const FLAC__int32 * const buffer[])
59 // FLAC decoder doesn't free or realloc buffer until next frame or finish
61 memmove(mWriteBuffer, buffer, sizeof(const FLAC__int32 * const) * getChannels());
280 FLAC__byte buffer[],
283 return ((FLACDecoder *) client_data)->readCallback(buffer, bytes); };
288 const FLAC__int32 * const buffer[],
290 return ((FLACDecoder *) client_data)->writeCallback(frame, buffer); };
474 ALOGW("decodeOneFrame: output buffer hold
32 readCallback( FLAC__byte buffer[], size_t *bytes) argument
50 writeCallback( const FLAC__Frame *frame, const FLAC__int32 * const buffer[]) argument
[all...]
/frameworks/av/media/libstagefright/foundation/
H A DAString.cpp386 char *buffer; local
387 vasprintf(&buffer, format, ap);
391 AString result(buffer);
393 free(buffer);
394 buffer = NULL;
/frameworks/av/media/libstagefright/omx/
H A DSoftOMXComponent.cpp185 OMX_BUFFERHEADERTYPE **buffer,
194 return me->useBuffer(buffer, portIndex, appPrivate, size, ptr);
200 OMX_BUFFERHEADERTYPE **buffer,
208 return me->allocateBuffer(buffer, portIndex, appPrivate, size);
215 OMX_BUFFERHEADERTYPE *buffer) {
220 return me->freeBuffer(portIndex, buffer);
226 OMX_BUFFERHEADERTYPE *buffer) {
231 return me->emptyThisBuffer(buffer);
237 OMX_BUFFERHEADERTYPE *buffer) {
242 return me->fillThisBuffer(buffer);
183 UseBufferWrapper( OMX_HANDLETYPE component, OMX_BUFFERHEADERTYPE **buffer, OMX_U32 portIndex, OMX_PTR appPrivate, OMX_U32 size, OMX_U8 *ptr) argument
198 AllocateBufferWrapper( OMX_HANDLETYPE component, OMX_BUFFERHEADERTYPE **buffer, OMX_U32 portIndex, OMX_PTR appPrivate, OMX_U32 size) argument
212 FreeBufferWrapper( OMX_HANDLETYPE component, OMX_U32 portIndex, OMX_BUFFERHEADERTYPE *buffer) argument
224 EmptyThisBufferWrapper( OMX_HANDLETYPE component, OMX_BUFFERHEADERTYPE *buffer) argument
235 FillThisBufferWrapper( OMX_HANDLETYPE component, OMX_BUFFERHEADERTYPE *buffer) argument
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DAMPEG4ElementaryAssembler.cpp229 sp<ABuffer> buffer = *queue->begin(); local
233 mNextExpectedSeqNo = (uint32_t)buffer->int32Data();
234 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) {
241 CHECK(buffer->meta()->findInt32("rtp-time", (int32_t *)&rtpTime));
249 mPackets.push_back(buffer);
251 // hexdump(buffer->data(), buffer->size());
252 if (buffer->size() < 2) {
256 unsigned AU_headers_length = U16_AT(buffer->data()); // in bits
258 if (buffer
[all...]
/frameworks/av/media/mtp/
H A DMtpUtils.cpp91 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { argument
95 snprintf(buffer, bufferLength, "%04d%02d%02dT%02d%02d%02d",
/frameworks/av/services/audioflinger/
H A DFastMixer.cpp200 if (sinkFrameSize > mixerFrameSize) { // need a sink buffer
285 // but may have a different buffer provider or volume provider
403 // allow mixing partial buffer
442 // prepare the buffer used to write to sink
443 void *buffer = mSinkBuffer != NULL ? mSinkBuffer : mMixerBuffer; local
445 memcpy_by_audio_format(buffer, mFormat.mFormat, mMixerBuffer, mMixerBufferFormat,
451 (void) teeSink->write(buffer, frameCount);
457 ssize_t framesWritten = mOutputSink->write(buffer, frameCount);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioProfile.h287 char buffer[SIZE]; local
289 snprintf(buffer, SIZE, "%*s- Profiles:\n", spaces, "");
290 write(fd, buffer, strlen(buffer));
292 snprintf(buffer, SIZE, "%*sProfile %zu:", spaces + 4, "", i);
293 write(fd, buffer, strlen(buffer));
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioInputDescriptor.cpp282 char buffer[SIZE]; local
285 snprintf(buffer, SIZE, " ID: %d\n", getId());
286 result.append(buffer);
287 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate);
288 result.append(buffer);
289 snprintf(buffer, SIZE, " Format: %d\n", mFormat);
290 result.append(buffer);
291 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask);
292 result.append(buffer);
293 snprintf(buffer, SIZ
365 char buffer[SIZE]; local
[all...]
H A DAudioPolicyMix.cpp58 char buffer[SIZE]; local
61 snprintf(buffer, SIZE, "%*sAudio Policy Mix %d:\n", spaces, "", index+1);
62 result.append(buffer);
68 snprintf(buffer, SIZE, "%*s- mix type: %s\n", spaces, "", mixTypeLiteral.c_str());
69 result.append(buffer);
72 snprintf(buffer, SIZE, "%*s- Route Flags: %s\n", spaces, "", routeFlagLiteral.c_str());
73 result.append(buffer);
76 snprintf(buffer, SIZE, "%*s- device type: %s\n", spaces, "", deviceLiteral.c_str());
77 result.append(buffer);
78 snprintf(buffer, SIZ
[all...]
H A DAudioSession.cpp141 char buffer[SIZE]; local
144 snprintf(buffer, SIZE, "%*sAudio session %d:\n", spaces, "", index+1);
145 result.append(buffer);
146 snprintf(buffer, SIZE, "%*s- session: %2d\n", spaces, "", mRecordClientInfo.session);
147 result.append(buffer);
148 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mRecordClientInfo.uid);
149 result.append(buffer);
150 snprintf(buffer, SIZE, "%*s- input source: %d\n", spaces, "", mRecordClientInfo.source);
151 result.append(buffer);
152 snprintf(buffer, SIZ
284 char buffer[SIZE]; local
[all...]
H A DDeviceDescriptor.cpp209 char buffer[SIZE]; local
211 snprintf(buffer, SIZE, "%*s- %s devices:\n", spaces, "", tag.string());
212 write(fd, buffer, strlen(buffer));
276 char buffer[SIZE]; local
279 snprintf(buffer, SIZE, "%*sDevice %d:\n", spaces, "", index+1);
280 result.append(buffer);
282 snprintf(buffer, SIZE, "%*s- id: %2d\n", spaces, "", mId);
283 result.append(buffer);
286 snprintf(buffer, SIZ
[all...]

Completed in 212 milliseconds

<<11121314151617181920>>