Home
last modified time | relevance | path

Searched refs:mediaBuf (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libstagefright/rtsp/
DARTPWriter.cpp268 MediaBuffer *mediaBuf; in onRead() local
269 status_t err = mSource->read(&mediaBuf); in onRead()
279 if (mediaBuf->range_length() > 0) { in onRead()
280 ALOGV("read buffer of size %zu", mediaBuf->range_length()); in onRead()
283 StripStartcode(mediaBuf); in onRead()
284 sendAVCData(mediaBuf); in onRead()
286 sendH263Data(mediaBuf); in onRead()
288 sendAMRData(mediaBuf); in onRead()
292 mediaBuf->release(); in onRead()
293 mediaBuf = NULL; in onRead()
[all …]
DARTPWriter.h117 void sendAVCData(MediaBuffer *mediaBuf);
118 void sendH263Data(MediaBuffer *mediaBuf);
119 void sendAMRData(MediaBuffer *mediaBuf);
DMyTransmitter.h631 MediaBuffer *mediaBuf = NULL; in onMessageReceived() local
633 CHECK_EQ(mEncoder->read(&mediaBuf), (status_t)OK); in onMessageReceived()
634 if (mediaBuf->range_length() > 0) { in onMessageReceived()
637 mediaBuf->release(); in onMessageReceived()
638 mediaBuf = NULL; in onMessageReceived()
642 CHECK(mediaBuf->meta_data()->findInt64(kKeyTime, &timeUs)); in onMessageReceived()
647 (const uint8_t *)mediaBuf->data() + mediaBuf->range_offset(); in onMessageReceived()
651 CHECK_LE(mediaBuf->range_length() - 4 + 12, buffer->size()); in onMessageReceived()
654 mediaData + 4, mediaBuf->range_length() - 4); in onMessageReceived()
656 buffer->setRange(0, mediaBuf->range_length() - 4 + 12); in onMessageReceived()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp1013 MediaBuffer *mediaBuf = NULL; in onInputBufferFetched() local
1029 mediaBuf = (MediaBuffer*)buffer->getMediaBufferBase(); in onInputBufferFetched()
1030 if (mediaBuf != NULL) { in onInputBufferFetched()
1031 codecBuffer->setRange(0, mediaBuf->size()); in onInputBufferFetched()
1032 memcpy(codecBuffer->data(), mediaBuf->data(), mediaBuf->size()); in onInputBufferFetched()
1034 sp<MetaData> meta_data = mediaBuf->meta_data(); in onInputBufferFetched()
1038 mediaBuf->release(); in onInputBufferFetched()