Searched refs:mediaBuffer (Results 1 – 9 of 9) sorted by relevance
168 MediaBuffer* mediaBuffer = new MediaBuffer(buffer); in writeSampleData() local170 mediaBuffer->add_ref(); // Released in MediaAdapter::signalBufferReturned(). in writeSampleData()171 mediaBuffer->set_range(buffer->offset(), buffer->size()); in writeSampleData()173 sp<MetaData> sampleMetaData = mediaBuffer->meta_data(); in writeSampleData()184 return currentTrack->pushBuffer(mediaBuffer); in writeSampleData()
278 MediaBuffer *mediaBuffer = NULL; in extractVideoFrame() local280 err = source->read(&mediaBuffer, &options); in extractVideoFrame()288 mediaBuffer->meta_data()->findInt64(kKeyTargetTime, &targetTimeUs); in extractVideoFrame()293 if (mediaBuffer->range_length() > codecBuffer->capacity()) { in extractVideoFrame()295 mediaBuffer->range_length(), codecBuffer->capacity()); in extractVideoFrame()298 codecBuffer->setRange(0, mediaBuffer->range_length()); in extractVideoFrame()300 CHECK(mediaBuffer->meta_data()->findInt64(kKeyTime, &ptsUs)); in extractVideoFrame()302 (const uint8_t*)mediaBuffer->data() + mediaBuffer->range_offset(), in extractVideoFrame()303 mediaBuffer->range_length()); in extractVideoFrame()312 mediaBuffer->release(); in extractVideoFrame()
68 void MediaCodecBuffer::setMediaBufferBase(MediaBufferBase *mediaBuffer) { in setMediaBufferBase() argument72 mMediaBufferBase = mediaBuffer; in setMediaBufferBase()
95 void ABuffer::setMediaBufferBase(MediaBufferBase *mediaBuffer) { in setMediaBufferBase() argument99 mMediaBufferBase = mediaBuffer; in setMediaBufferBase()
55 void setMediaBufferBase(MediaBufferBase *mediaBuffer);
53 void setMediaBufferBase(MediaBufferBase *mediaBuffer);
628 MediaBuffer *mediaBuffer = in feedEncoderInputBuffers() local630 if (mediaBuffer != NULL) { in feedEncoderInputBuffers()632 mediaBuffer); in feedEncoderInputBuffers()
206 MediaBuffer *mediaBuffer = new MediaBuffer(buffer); in read() local207 sp<MetaData> bufmeta = mediaBuffer->meta_data(); in read()254 *out = mediaBuffer; in read()