Home
last modified time | relevance | path

Searched refs:mediaBuf (Results 1 – 5 of 5) 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 %d", 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.h628 MediaBuffer *mediaBuf = NULL; in onMessageReceived() local
630 CHECK_EQ(mEncoder->read(&mediaBuf), (status_t)OK); in onMessageReceived()
631 if (mediaBuf->range_length() > 0) { in onMessageReceived()
634 mediaBuf->release(); in onMessageReceived()
635 mediaBuf = NULL; in onMessageReceived()
639 CHECK(mediaBuf->meta_data()->findInt64(kKeyTime, &timeUs)); in onMessageReceived()
644 (const uint8_t *)mediaBuf->data() + mediaBuf->range_offset(); in onMessageReceived()
648 CHECK_LE(mediaBuf->range_length() - 4 + 12, buffer->size()); in onMessageReceived()
651 mediaData + 4, mediaBuf->range_length() - 4); in onMessageReceived()
653 buffer->setRange(0, mediaBuf->range_length() - 4 + 12); in onMessageReceived()
[all …]
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_api.c1311 static int32_t drm_readContentFromBuf(T_DRM_Session_Node* s, int32_t offset, uint8_t* mediaBuf, int… in drm_readContentFromBuf() argument
1327 memcpy(mediaBuf, s->rawContent + offset, readBytes); in drm_readContentFromBuf()
1329 memcpy(mediaBuf, s->rawContent + s->contentOffset + offset, readBytes); in drm_readContentFromBuf()
1334 …4ContentFromInputStream(T_DRM_Session_Node* s, int32_t offset, uint8_t* mediaBuf, int32_t mediaBuf… in drm_readB64ContentFromInputStream() argument
1343 memcpy(mediaBuf, s->rawContent + offset, readBytes); in drm_readB64ContentFromInputStream()
1352 …memcpy(mediaBuf, ((T_DRM_DM_Base64_Node *)(s->infoStruct))->b64DecodeData + firstBytes, readBytes); in drm_readB64ContentFromInputStream()
1357 …memcpy(mediaBuf, ((T_DRM_DM_Base64_Node *)(s->infoStruct))->b64DecodeData + firstBytes, readBytes); in drm_readB64ContentFromInputStream()
1429 memcpy(mediaBuf + readBytes, decBuf, decLen); in drm_readB64ContentFromInputStream()
1434 memcpy(mediaBuf + readBytes, decBuf, leftLen); in drm_readB64ContentFromInputStream()
1445 static int32_t drm_readBase64Content(T_DRM_Session_Node* s, int32_t offset, uint8_t* mediaBuf, int3… in drm_readBase64Content() argument
[all …]
/frameworks/base/media/libdrm/mobile1/include/objmng/
Dsvc_drm.h281 int32_t SVC_drm_getContent(int32_t session, int32_t offset, uint8_t* mediaBuf, int32_t mediaBufLen);