Commit Graph

3163 Commits

Author SHA1 Message Date
Cameron Gutman eb15599c01 Only increment the ring index if data was successfully queued 2014-03-17 14:20:43 -04:00
Cameron Gutman cfd788bec0 Use the minimum stream buffer size and the sample size when choosing a buffer size 2014-03-17 14:20:12 -04:00
Cameron Gutman 8c9d0d171c Use ring buffers for audio and video handling to remove the last large allocations that were happening very frequently 2014-03-17 13:38:49 -04:00
Cameron Gutman 5284db761c Fix leftover warning 2014-03-17 12:39:17 -04:00
Cameron Gutman 07b5e9224c Don't explicitly specify a pixel format for the rendering surface. The system will choose the most optimal format if we leave it at the default. 2014-03-17 12:34:47 -04:00
Cameron Gutman f31736ee2d Set the volume buttons to control the music stream while streaming 2014-03-17 03:55:51 -04:00
Cameron Gutman 47a3a959e5 Update common 2014-03-16 18:28:51 -04:00
Cameron Gutman c2a679e5ef File mode modified on libs 2014-03-16 18:23:03 -04:00
Cameron Gutman a39f4c5eab Use a single decoded audio buffer for direct submit audio renderers 2014-03-16 18:13:42 -04:00
Cameron Gutman 71b4980553 Rebuild JNI Opus decoder 2014-03-16 17:24:43 -04:00
Cameron Gutman 0b360f8f1d Calculate a proper value for the sample buffer (48000 Hz * 2 bytes per sample * 2.5 ms) 2014-03-16 17:16:51 -04:00
Cameron Gutman 52823df62f Don't use large heap anymore for improved performance 2014-03-15 13:17:22 -04:00
Cameron Gutman 39472bdc7b Update common for reduced memory usage 2014-03-14 22:26:25 -04:00
Cameron Gutman 49ae5a6d0c Add icons by XDA member MalaBouM 2014-03-14 22:15:26 -04:00
Cameron Gutman 239dffcbdf Slightly reduce memory/GC pressure by using a smaller per-packet buffer of 1050 bytes instead of 1500 bytes 2014-03-13 21:53:52 -04:00
Cameron Gutman 3af3df0544 Reduce GC pressure significantly by using a single 100 byte buffer for all audio data instead of allocating 1500 bytes for each audio packet received 2014-03-13 21:53:10 -04:00
Cameron Gutman 1c426417f3 Increment version 2014-03-13 01:38:48 -04:00
Cameron Gutman 2cd41b5141 Update common 2014-03-13 01:38:29 -04:00
Cameron Gutman 7e30d043eb Fix handling packet loss in the second of a split frame 2014-03-13 01:31:47 -04:00
Cameron Gutman 4cbaee6806 Change the transient message when loss is experienced to clarify the actions the user should take 2014-03-03 19:41:23 -05:00
Cameron Gutman 8297ca7e85 Change LimeLog.info() back to calling Logger.info() internally so info messages are displayed by default 2014-03-03 19:40:02 -05:00
Cameron Gutman 74d9afd685 Update common 2014-02-27 17:19:26 -05:00
Cameron Gutman da1c350067 Tweak warning thresholds after reducing the amount of frame invalidations requested 2014-02-27 02:07:53 -05:00
Cameron Gutman c8c7512600 Hack around an issue where data gets added after the frame is thrown away 2014-02-27 01:31:07 -05:00
Aaron Neyer 9b6e12497e Make info log fine so it doesnt go to stdout 2014-02-26 20:53:11 -05:00
Cameron Gutman e13241eebf Use LimeLog for logging 2014-02-26 17:20:10 -05:00
Cameron Gutman 700ec361b0 Update common 2014-02-26 17:19:49 -05:00
Cameron Gutman 50e7deeb32 Merge branch 'master' into logs
Conflicts:
	src/com/limelight/nvstream/av/audio/AudioDepacketizer.java
	src/com/limelight/nvstream/av/video/VideoDepacketizer.java
	src/com/limelight/nvstream/control/ControlStream.java
2014-02-26 16:22:04 -05:00
Cameron Gutman 7e3acd0213 Merge pull request #4 from irtimmer/config_javadoc
Config tuples meanings
2014-02-26 12:14:13 -05:00
Cameron Gutman e60420cb2c Update depacketizer to do reference frame invalidation more like the official streamer. This should reduce the frequency of IDR requests by waiting for network stabilization before requesting the IDR frames. We still request IDR frames because reference frame invalidation still doesn't work well. 2014-02-26 12:12:06 -05:00
Iwan Timmer c733be5611 Add Javadoc about config tuples 2014-02-26 16:17:25 +01:00
Cameron Gutman c7f26a179d Add the frame skipping code back for certain decoders (Qualcomm) that are slow when rendering all frames and stall the whole decoder pipeline 2014-02-26 01:56:05 -05:00
Cameron Gutman 4b2552ed64 Set MediaCodec flags on the input buffer based on the DU flags 2014-02-26 01:01:54 -05:00
Cameron Gutman 4fbe93e62d Set flags on the decode units that indicate what type of data the frame contains 2014-02-26 01:00:17 -05:00
Cameron Gutman bc2ca0b386 Increase resilience to packet loss. IDR frames are no longer requested if error correction data was lost. A maximum of one IDR frame is requested per corrupt frame. Error correction data is used to recover from the loss of a single-packet frame. 2014-02-24 12:54:03 -05:00
Cameron Gutman ddc70e39c9 Only use direct submit on decoders that have (effectively) infinite input buffers 2014-02-19 22:18:26 -05:00
Cameron Gutman 61c0de6ca1 Update common jar 2014-02-19 21:01:09 -05:00
Cameron Gutman b0c4d47962 Report direct submit support for the MediaCodec decoder renderer 2014-02-19 21:00:39 -05:00
Cameron Gutman ccc3eeebe8 Remove the depacketizer thread again... 2014-02-19 20:59:31 -05:00
Cameron Gutman 63ee6ef79a Add support for direct submission of buffers to the renderers without a separate thread 2014-02-19 20:36:53 -05:00
Cameron Gutman cf3ac50d22 Increase the propensity for generating a loss warning 2014-02-19 20:36:12 -05:00
Cameron Gutman 6fc848ef56 Block for 100 ms instead of 100 us waiting for a frame. This reduces the CPU time wasted by useless iterations of the rendering loop. 2014-02-19 19:49:57 -05:00
Cameron Gutman c537af2273 Render the latest frame available at the time 2014-02-19 19:40:35 -05:00
Cameron Gutman 839540dc74 UI updates to make options more clear. Add scroll view to UI. 2014-02-19 19:22:54 -05:00
Cameron Gutman 22ecdd9cf8 Don't skip frames when rendering 2014-02-19 19:22:00 -05:00
Cameron Gutman cdf634dc41 Display messages if we detect that the device is having issues streaming 2014-02-19 19:03:51 -05:00
Cameron Gutman 21116f90a7 Remove unused imports 2014-02-17 19:22:49 -05:00
Cameron Gutman bf1c7dd675 Update common jar 2014-02-17 19:22:23 -05:00
Cameron Gutman 29dd0e172c Fix the new config tuples to work with our current control stream code 2014-02-17 19:18:34 -05:00
Cameron Gutman 2d5083179c Revert "Remove depacketizer thread"
This reverts commit a2a4463c0b684fa54212fe497ac2a8931ebd8821.
2014-02-17 16:14:03 -05:00