Loading media/libstagefright/wifi-display/MediaSender.cpp +0 −31 Original line number Diff line number Diff line Loading @@ -267,37 +267,6 @@ status_t MediaSender::queueAccessUnit( tsPackets, 33 /* packetType */, RTPSender::PACKETIZATION_TRANSPORT_STREAM); #if 0 { int64_t nowUs = ALooper::GetNowUs(); int64_t timeUs; CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); int64_t delayMs = (nowUs - timeUs) / 1000ll; static const int64_t kMinDelayMs = 0; static const int64_t kMaxDelayMs = 300; const char *kPattern = "########################################"; size_t kPatternSize = strlen(kPattern); int n = (kPatternSize * (delayMs - kMinDelayMs)) / (kMaxDelayMs - kMinDelayMs); if (n < 0) { n = 0; } else if ((size_t)n > kPatternSize) { n = kPatternSize; } ALOGI("[%lld]: (%4lld ms) %s\n", timeUs / 1000, delayMs, kPattern + kPatternSize - n); } #endif } if (err != OK) { Loading media/libstagefright/wifi-display/wfd.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,8 @@ static void usage(const char *me) { " -u uri \tconnect to an rtsp uri\n" " -l ip[:port] \tlisten on the specified port " " -f(ilename) \tstream media " "(create a sink)\n", "(create a sink)\n" " -s(pecial) \trun in 'special' mode\n", me); } Loading Loading @@ -222,8 +223,10 @@ int main(int argc, char **argv) { AString path; bool specialMode = false; int res; while ((res = getopt(argc, argv, "hc:l:u:f:")) >= 0) { while ((res = getopt(argc, argv, "hc:l:u:f:s")) >= 0) { switch (res) { case 'c': { Loading Loading @@ -281,6 +284,12 @@ int main(int argc, char **argv) { break; } case 's': { specialMode = true; break; } case '?': case 'h': default: Loading Loading @@ -357,7 +366,7 @@ int main(int argc, char **argv) { sp<ALooper> looper = new ALooper; sp<WifiDisplaySink> sink = new WifiDisplaySink( 0 /* flags */, specialMode ? WifiDisplaySink::FLAG_SPECIAL_MODE : 0 /* flags */, session, surface->getIGraphicBufferProducer()); Loading Loading
media/libstagefright/wifi-display/MediaSender.cpp +0 −31 Original line number Diff line number Diff line Loading @@ -267,37 +267,6 @@ status_t MediaSender::queueAccessUnit( tsPackets, 33 /* packetType */, RTPSender::PACKETIZATION_TRANSPORT_STREAM); #if 0 { int64_t nowUs = ALooper::GetNowUs(); int64_t timeUs; CHECK(accessUnit->meta()->findInt64("timeUs", &timeUs)); int64_t delayMs = (nowUs - timeUs) / 1000ll; static const int64_t kMinDelayMs = 0; static const int64_t kMaxDelayMs = 300; const char *kPattern = "########################################"; size_t kPatternSize = strlen(kPattern); int n = (kPatternSize * (delayMs - kMinDelayMs)) / (kMaxDelayMs - kMinDelayMs); if (n < 0) { n = 0; } else if ((size_t)n > kPatternSize) { n = kPatternSize; } ALOGI("[%lld]: (%4lld ms) %s\n", timeUs / 1000, delayMs, kPattern + kPatternSize - n); } #endif } if (err != OK) { Loading
media/libstagefright/wifi-display/wfd.cpp +12 −3 Original line number Diff line number Diff line Loading @@ -43,7 +43,8 @@ static void usage(const char *me) { " -u uri \tconnect to an rtsp uri\n" " -l ip[:port] \tlisten on the specified port " " -f(ilename) \tstream media " "(create a sink)\n", "(create a sink)\n" " -s(pecial) \trun in 'special' mode\n", me); } Loading Loading @@ -222,8 +223,10 @@ int main(int argc, char **argv) { AString path; bool specialMode = false; int res; while ((res = getopt(argc, argv, "hc:l:u:f:")) >= 0) { while ((res = getopt(argc, argv, "hc:l:u:f:s")) >= 0) { switch (res) { case 'c': { Loading Loading @@ -281,6 +284,12 @@ int main(int argc, char **argv) { break; } case 's': { specialMode = true; break; } case '?': case 'h': default: Loading Loading @@ -357,7 +366,7 @@ int main(int argc, char **argv) { sp<ALooper> looper = new ALooper; sp<WifiDisplaySink> sink = new WifiDisplaySink( 0 /* flags */, specialMode ? WifiDisplaySink::FLAG_SPECIAL_MODE : 0 /* flags */, session, surface->getIGraphicBufferProducer()); Loading