/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 55 void setNotificationMessage(const sp<AMessage> &msg) { argument 56 mNotify = msg; 61 sp<AMessage> msg = mNotify->dup(); local 63 msg->setInt32("type", omx_msg.type); 64 msg->setPointer("node", omx_msg.node); 69 msg->setInt32("event", omx_msg.u.event_data.event); 70 msg->setInt32("data1", omx_msg.u.event_data.data1); 71 msg->setInt32("data2", omx_msg.u.event_data.data2); 77 msg->setPointer("buffer", omx_msg.u.buffer_data.buffer); 83 msg 367 setNotificationMessage(const sp<AMessage> &msg) argument 371 initiateSetup(const sp<AMessage> &msg) argument 377 initiateAllocateComponent(const sp<AMessage> &msg) argument 383 initiateConfigureComponent(const sp<AMessage> &msg) argument 403 sp<AMessage> msg = new AMessage(kWhatShutdown, id()); local 850 configureCodec( const char *mime, const sp<AMessage> &msg) argument 1477 setupVideoEncoder(const char *mime, const sp<AMessage> &msg) argument 1639 getBitrateMode(const sp<AMessage> &msg) argument 1648 setupMPEG4EncoderParameters(const sp<AMessage> &msg) argument 1729 setupH263EncoderParameters(const sp<AMessage> &msg) argument 1805 setupAVCEncoderParameters(const sp<AMessage> &msg) argument 2057 deferMessage(const sp<AMessage> &msg) argument 2385 onMessageReceived(const sp<AMessage> &msg) argument 2411 onOMXMessage(const sp<AMessage> &msg) argument 2573 onInputBufferFilled(const sp<AMessage> &msg) argument 2868 onOutputBufferDrained(const sp<AMessage> &msg) argument 2955 onMessageReceived(const sp<AMessage> &msg) argument 3006 onSetup( const sp<AMessage> &msg) argument 3014 onAllocateComponent(const sp<AMessage> &msg) argument 3157 onMessageReceived(const sp<AMessage> &msg) argument 3204 onConfigureComponent( const sp<AMessage> &msg) argument 3287 onMessageReceived(const sp<AMessage> &msg) argument 3332 onMessageReceived(const sp<AMessage> &msg) argument 3426 onMessageReceived(const sp<AMessage> &msg) argument 3554 onMessageReceived( const sp<AMessage> &msg) argument 3655 onMessageReceived(const sp<AMessage> &msg) argument 3738 onInputBufferFilled( const sp<AMessage> &msg) argument 3745 onOutputBufferDrained( const sp<AMessage> &msg) argument 3758 onMessageReceived(const sp<AMessage> &msg) argument 3820 onMessageReceived(const sp<AMessage> &msg) argument 3876 sp<AMessage> msg = new AMessage(kWhatOMXMessage, mCodec->id()); local 3898 onOutputBufferDrained(const sp<AMessage> &msg) argument 3904 onInputBufferFilled(const sp<AMessage> &msg) argument [all...] |
H A D | AwesomePlayer.cpp | 588 void AwesomePlayer::notifyListener_l(int msg, int ext1, int ext2) { argument 593 listener->sendEvent(msg, ext1, ext2);
|
H A D | FragmentedMP4Extractor.cpp | 158 sp<AMessage> msg = mParser->getFormat(index == mAudioTrackIndex, true /* synchronous */); local 160 if (msg == NULL) { 166 convertMessageToMetaData(msg, meta);
|
H A D | MPEG2TSWriter.cpp | 62 virtual void onMessageReceived(const sp<AMessage> &msg); 367 void MPEG2TSWriter::SourceInfo::onMessageReceived(const sp<AMessage> &msg) { argument 368 switch (msg->what()) { 417 msg->post(); 603 void MPEG2TSWriter::onMessageReceived(const sp<AMessage> &msg) { argument 604 switch (msg->what()) { 608 CHECK(msg->findInt32("source-index", &sourceIndex)); 611 CHECK(msg->findInt32("what", &what)); 629 CHECK(msg->findBuffer("buffer", &buffer)); 632 if (msg [all...] |
H A D | MediaCodec.cpp | 79 const sp<AMessage> &msg, sp<AMessage> *response) { 80 status_t err = msg->postAndAwaitResponse(response); 121 sp<AMessage> msg = new AMessage(kWhatInit, id()); local 122 msg->setString("name", name); 123 msg->setInt32("nameIsType", nameIsType); 126 msg->setInt32("encoder", encoder); 130 return PostAndAwaitResponse(msg, &response); 138 sp<AMessage> msg = new AMessage(kWhatConfigure, id()); local 140 msg->setMessage("format", format); 141 msg 78 PostAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument 158 sp<AMessage> msg = new AMessage(kWhatStart, id()); local 165 sp<AMessage> msg = new AMessage(kWhatStop, id()); local 172 sp<AMessage> msg = new AMessage(kWhatRelease, id()); local 189 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 216 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 235 sp<AMessage> msg = new AMessage(kWhatDequeueInputBuffer, id()); local 256 sp<AMessage> msg = new AMessage(kWhatDequeueOutputBuffer, id()); local 275 sp<AMessage> msg = new AMessage(kWhatReleaseOutputBuffer, id()); local 284 sp<AMessage> msg = new AMessage(kWhatReleaseOutputBuffer, id()); local 292 sp<AMessage> msg = new AMessage(kWhatGetOutputFormat, id()); local 306 sp<AMessage> msg = new AMessage(kWhatGetBuffers, id()); local 315 sp<AMessage> msg = new AMessage(kWhatGetBuffers, id()); local 324 sp<AMessage> msg = new AMessage(kWhatFlush, id()); local 337 sp<AMessage> msg = new AMessage(kWhatRequestActivityNotification, id()); local 447 onMessageReceived(const sp<AMessage> &msg) argument 1216 sp<AMessage> msg = new AMessage(kWhatQueueInputBuffer, id()); local 1262 sp<AMessage> msg = info->mNotify; local 1276 updateBuffers( int32_t portIndex, const sp<AMessage> &msg) argument 1303 onQueueInputBuffer(const sp<AMessage> &msg) argument 1417 onReleaseOutputBuffer(const sp<AMessage> &msg) argument [all...] |
H A D | NuCachedSource2.cpp | 260 void NuCachedSource2::onMessageReceived(const sp<AMessage> &msg) { argument 261 switch (msg->what()) { 270 onRead(msg); 404 void NuCachedSource2::onRead(const sp<AMessage> &msg) { argument 408 CHECK(msg->findInt64("offset", &offset)); 411 CHECK(msg->findPointer("data", &data)); 414 CHECK(msg->findSize("size", &size)); 419 msg->post(50000); 483 sp<AMessage> msg = new AMessage(kWhatRead, mReflector->id()); local 484 msg [all...] |
H A D | OMXCodec.cpp | 106 virtual void onMessage(const omx_message &msg) { argument 111 codec->on_message(msg); 2072 void OMXCodec::on_message(const omx_message &msg) { argument 2078 if (msg.type == omx_message::EVENT) { 2084 switch (msg.type) { 2088 msg.u.event_data.event, msg.u.event_data.data1, 2089 msg.u.event_data.data2); 2096 IOMX::buffer_id buffer = msg.u.extended_buffer_data.buffer; 2141 IOMX::buffer_id buffer = msg [all...] |
H A D | Utils.cpp | 73 sp<AMessage> msg = new AMessage; local 74 msg->setString("mime", mime); 78 msg->setInt64("durationUs", durationUs); 86 msg->setInt32("width", width); 87 msg->setInt32("height", height); 93 msg->setInt32("channel-count", numChannels); 94 msg->setInt32("sample-rate", sampleRate); 98 msg->setInt32("channel-mask", channelMask); 103 msg->setInt32("encoder-delay", delay); 107 msg 353 convertMessageToMetaData(const sp<AMessage> &msg, sp<MetaData> &meta) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ABuffer.cpp | 64 void ABuffer::setFarewellMessage(const sp<AMessage> msg) { argument 65 mFarewell = msg;
|
H A D | AHierarchicalStateMachine.cpp | 50 void AHierarchicalStateMachine::onMessageReceived(const sp<AMessage> &msg) { argument 54 while (cur != NULL && !cur->onMessageReceived(msg)) { 67 msg->debugString().c_str());
|
H A D | ALooper.cpp | 157 void ALooper::post(const sp<AMessage> &msg, int64_t delayUs) { argument 174 event.mMessage = msg;
|
H A D | ALooperRoster.cpp | 75 const sp<AMessage> &msg, int64_t delayUs) { 77 return postMessage_l(msg, delayUs); 81 const sp<AMessage> &msg, int64_t delayUs) { 82 ssize_t index = mHandlers.indexOfKey(msg->target()); 96 msg->target()); 102 looper->post(msg, delayUs); 107 void ALooperRoster::deliverMessage(const sp<AMessage> &msg) { argument 113 ssize_t index = mHandlers.indexOfKey(msg->target()); 126 msg->target()); 133 handler->onMessageReceived(msg); 74 postMessage( const sp<AMessage> &msg, int64_t delayUs) argument 80 postMessage_l( const sp<AMessage> &msg, int64_t delayUs) argument 155 postAndAwaitResponse( const sp<AMessage> &msg, sp<AMessage> *response) argument [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 77 sp<AMessage> msg = new AMessage(kWhatConnect, id()); local 78 msg->setString("url", url); 81 msg->setPointer( 86 msg->post(); 102 sp<AMessage> msg = new AMessage(kWhatSeek, id()); local 103 msg->setInt64("timeUs", timeUs); 104 msg->post(); 111 void LiveSession::onMessageReceived(const sp<AMessage> &msg) { argument 112 switch (msg->what()) { 114 onConnect(msg); 156 onConnect(const sp<AMessage> &msg) argument 913 sp<AMessage> msg = new AMessage(kWhatMonitorQueue, id()); local 918 onSeek(const sp<AMessage> &msg) argument [all...] |
/frameworks/av/media/libstagefright/mp4/ |
H A D | FragmentedMP4Parser.cpp | 233 sp<AMessage> msg = new AMessage(kWhatStart, id()); local 234 msg->setObject("source", new FileSource(filename)); 235 msg->post(); 240 sp<AMessage> msg = new AMessage(kWhatStart, id()); local 241 msg->setObject("source", source); 242 msg->post(); 247 sp<AMessage> msg = new AMessage(kWhatStart, id()); local 248 msg->setObject("source", new DataSourceSource(source)); 249 msg->post(); 257 sp<AMessage> msg local 288 sp<AMessage> msg = new AMessage(kWhatSeekTo, id()); local 346 sp<AMessage> msg = new AMessage(kWhatDequeueAccessUnit, id()); local 396 onMessageReceived(const sp<AMessage> &msg) argument 1019 sp<AMessage> msg = new AMessage(kWhatReadMore, id()); local [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMX.cpp | 61 void post(const omx_message &msg); 78 void dispatch(const omx_message &msg); 109 void OMX::CallbackDispatcher::post(const omx_message &msg) { argument 112 mQueue.push_back(msg); 116 void OMX::CallbackDispatcher::dispatch(const omx_message &msg) { argument 121 mOwner->onMessage(msg); 126 omx_message msg; local 138 msg = *mQueue.begin(); 142 dispatch(msg); 396 omx_message msg; local 412 omx_message msg; local 426 omx_message msg; local [all...] |
H A D | OMXNodeInstance.cpp | 659 void OMXNodeInstance::onMessage(const omx_message &msg) { argument 660 if (msg.type == omx_message::FILL_BUFFER_DONE) { 663 msg.u.extended_buffer_data.buffer); 671 mObserver->onMessage(msg);
|
H A D | SimpleSoftOMXComponent.cpp | 61 sp<AMessage> msg = new AMessage(kWhatSendCommand, mHandler->id()); local 62 msg->setInt32("cmd", cmd); 63 msg->setInt32("param", param); 64 msg->post(); 310 sp<AMessage> msg = new AMessage(kWhatEmptyThisBuffer, mHandler->id()); 311 msg->setPointer("header", buffer); 312 msg->post(); 319 sp<AMessage> msg = new AMessage(kWhatFillThisBuffer, mHandler->id()); 320 msg->setPointer("header", buffer); 321 msg [all...] |
/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 65 void Harness::onMessage(const omx_message &msg) { argument 67 mMessageQueue.push_back(msg); 72 IOMX::node_id node, omx_message *msg, int64_t timeoutUs) { 74 node, NULL, NULL, msg, timeoutUs); 79 const omx_message &msg, 82 switch (msg.type) { 87 if ((*inputBuffers)[i].mID == msg.u.buffer_data.buffer) { 101 if ((*outputBuffers)[i].mID == msg.u.buffer_data.buffer) { 122 omx_message *msg, int64_t timeoutUs) { 135 *msg 71 dequeueMessageForNode( IOMX::node_id node, omx_message *msg, int64_t timeoutUs) argument 78 handleBufferMessage( const omx_message &msg, Vector<Buffer> *inputBuffers, Vector<Buffer> *outputBuffers) argument 118 dequeueMessageForNodeIgnoringBuffers( IOMX::node_id node, Vector<Buffer> *inputBuffers, Vector<Buffer> *outputBuffers, omx_message *msg, int64_t timeoutUs) argument 300 omx_message msg; local [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAMRAssembler.cpp | 213 sp<AMessage> msg = mNotifyMsg->dup(); local 214 msg->setBuffer("access-unit", accessUnit); 215 msg->post(); 229 sp<AMessage> msg = mNotifyMsg->dup(); local 230 msg->setInt32("eos", true); 231 msg->post();
|
H A D | AAVCAssembler.cpp | 347 sp<AMessage> msg = mNotifyMsg->dup(); local 348 msg->setBuffer("access-unit", accessUnit); 349 msg->post(); 371 sp<AMessage> msg = mNotifyMsg->dup(); local 372 msg->setInt32("eos", true); 373 msg->post();
|
H A D | AH263Assembler.cpp | 170 sp<AMessage> msg = mNotifyMsg->dup(); local 171 msg->setBuffer("access-unit", accessUnit); 172 msg->post(); 183 sp<AMessage> msg = mNotifyMsg->dup(); local 184 msg->setInt32("eos", true); 185 msg->post();
|
H A D | AMPEG2TSAssembler.cpp | 96 sp<AMessage> msg = mNotifyMsg->dup(); local 97 msg->setBuffer("access-unit", buffer); 98 msg->post(); 112 sp<AMessage> msg = mNotifyMsg->dup(); local 113 msg->setInt32("eos", true); 114 msg->post();
|
H A D | AMPEG4AudioAssembler.cpp | 553 sp<AMessage> msg = mNotifyMsg->dup(); local 554 msg->setBuffer("access-unit", accessUnit); 555 msg->post(); 566 sp<AMessage> msg = mNotifyMsg->dup(); local 567 msg->setInt32("eos", true); 568 msg->post();
|
H A D | AMPEG4ElementaryAssembler.cpp | 394 sp<AMessage> msg = mNotifyMsg->dup(); local 395 msg->setBuffer("access-unit", accessUnit); 396 msg->post(); 418 sp<AMessage> msg = mNotifyMsg->dup(); local 419 msg->setInt32("eos", true); 420 msg->post();
|
H A D | ARTPConnection.cpp | 85 sp<AMessage> msg = new AMessage(kWhatAddStream, id()); local 86 msg->setInt32("rtp-socket", rtpSocket); 87 msg->setInt32("rtcp-socket", rtcpSocket); 88 msg->setObject("session-desc", sessionDesc); 89 msg->setSize("index", index); 90 msg->setMessage("notify", notify); 91 msg->setInt32("injected", injected); 92 msg->post(); 96 sp<AMessage> msg = new AMessage(kWhatRemoveStream, id()); local 97 msg 147 onMessageReceived(const sp<AMessage> &msg) argument 181 onAddStream(const sp<AMessage> &msg) argument 212 onRemoveStream(const sp<AMessage> &msg) argument 235 sp<AMessage> msg = new AMessage(kWhatPollStreams, id()); local 641 sp<AMessage> msg = new AMessage(kWhatInjectPacket, id()); local 647 onInjectPacket(const sp<AMessage> &msg) argument [all...] |