22 Commits

Author SHA1 Message Date
Cameron Gutman
732ea8a3ac Optimize the reinitialization of the buffer descriptor in the receive threads 2013-11-24 17:29:12 -05:00
Cameron Gutman
c8b94217cf Set the datagram destination manually for ping packets rather than connecting the datagram socket explicitly. This prevents the ICMP port unreachable message from being propagated to the receive thread which causes an IOException. 2013-11-23 17:07:33 -05:00
Cameron Gutman
022866288d Add more logging for exceptions. 2013-11-23 14:06:51 -05:00
Cameron Gutman
125bcb370f Limit the size of queues. Switch to a blacklist instead of a whitelist for hardware decoding. Currently, Nvidia, TI, and Google H264 codecs are on the blacklist. Reenable large heap since we're allocating more objects now. 2013-11-23 02:44:10 -05:00
Cameron Gutman
4d5849f448 Add UI indications of the connection status and failure 2013-11-23 01:03:37 -05:00
Cameron Gutman
6bb215eddf Remove pooling code due to higher concurrency latency that resulted in a net loss of performance. 2013-11-21 16:40:27 -05:00
Cameron Gutman
1d7460e8b3 Revert "WIP optimization of object allocation and pools. There's currently a double free on the AvByteBufferDescriptor that I'm trying to track down."
This reverts commit 6600329580aace81321220d2e4000099ad27f4f7.
2013-11-21 16:25:10 -05:00
Cameron Gutman
7951c0fa13 WIP optimization of object allocation and pools. There's currently a double free on the AvByteBufferDescriptor that I'm trying to track down. 2013-11-21 12:24:45 -05:00
Cameron Gutman
16d629f5cf Remove jlibrtp (finally). CPU decoding support (works great on Tegra 4, not so well on Tegra 3) 2013-11-20 00:00:00 -05:00
Cameron Gutman
aa4e07ea2f Free audio packets back to the packet pool after decoding. 2013-11-12 02:19:58 -05:00
Cameron Gutman
83ad55e436 Fix some ANRs and force-close errors when connection failures occur. 2013-11-11 17:21:50 -05:00
Cameron Gutman
524cab4115 Drop audio frames if the backlog becomes too large. Trim buffer pools when memory runs low. Optimize AVC decoding a bit more. 2013-11-10 15:25:00 -05:00
Cameron Gutman
ac1380bd4c Fix force-close if the stream is aborted before RTP is connected. Fix address already in use exception on RTCP socket. 2013-11-10 05:49:00 -05:00
Cameron Gutman
c631649867 Fix order of initialization of streams. 2013-11-10 02:53:19 -05:00
Cameron Gutman
0a445b9add Properly terminate threads when the game activity exits. 2013-11-10 01:30:55 -05:00
Cameron Gutman
ab61af0cb7 Release decoded data back to the buffer pool 2013-11-10 03:58:48 -05:00
Cameron Gutman
34e87ca899 Rename AvBufferX -> AvByteBufferX and create AvShortBufferX 2013-11-10 03:42:29 -05:00
Cameron Gutman
62a9040cb8 Add a Opus decoder JNI library. Write an audio depacketizer. Audio works! 2013-11-10 03:27:21 -05:00
Cameron Gutman
d3b9387c37 Refactor AV code 2013-11-09 19:20:49 -05:00
Cameron Gutman
3aad899a07 Fix video stream reception. Remove debugging info. 2013-09-22 03:22:58 -04:00
Cameron Gutman
aa4376f3d7 Do proper activity transitions. Send controller input to the streaming PC. 2013-09-21 20:40:38 -04:00
Cameron Gutman
fcdc23eeb7 Add implementation of http negotiation, handshake, control, and input packets 2013-09-21 18:51:48 -04:00