summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/wifi-display
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-4.2.2_r1' of ↵Steve Kondik2013-02-1218-333/+874
|\ | | | | | | | | | | https://android.googlesource.com/platform/frameworks/av into 1.1 Android 4.2.2 release 1
| * Merge "[wfd] Support a low(er) power state by triggering PAUSE/RESUME." into ↵Andreas Huber2012-11-296-30/+223
| |\ | | | | | | | | | jb-mr1.1-dev
| | * [wfd] Support a low(er) power state by triggering PAUSE/RESUME.Andreas Huber2012-11-296-30/+223
| | | | | | | | | | | | | | | Change-Id: Ibe42bfa73816bbfeb7e652d435254d0171b89727 related-to-bug: 7638150
| * | Enable retransmission of UDP packets in case we want to use itAndreas Huber2012-11-291-1/+1
| |/ | | | | | | | | | | | | in our upcoming wfd _sink_ implementation. Change-Id: I4509c30d5a7b992bc841b73d63db902bbcf8f76a related-to-bug: 7638155
| * Reduce the frequency of IDR frames and add intra-fresh mode support for WiFi ↵James Dong2012-11-281-1/+18
| | | | | | | | | | | | | | | | | | | | display The time interval between periodic neighboring IDR frames is increased from 1 second to 15 seconds. o related-to-bug: 7524791 Change-Id: Ic32f37448f952f329549eda5e73637ee3b02f046
| * Various improvements of wifi display codeAndreas Huber2012-11-1316-302/+633
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - manually prepend SPS/PPS if encoder doesn't support it - latency improvements - support for "our" method of optional RTP retransmission - improvements to the wfd commandline tool for testing - make it easier to turn on/off suspension of the video pipeline on idle - fixes an issue where an error during encryption would cause a SEGV - add HDCP descriptor if necessary Squashed commit of the following: commit 1115be0ebb3b885b4f1b7dba56761ca013d0ec4a Author: Andreas Huber <andih@google.com> Date: Fri Nov 9 11:32:23 2012 -0800 Better shutdown of wfd -l sessions. Change-Id: Id898a14ae21efd3b065b00a729830063d39195a7 commit 0e7d106dfe4eb6e2640b0b66c65deaba265f7ff0 Author: Andreas Huber <andih@google.com> Date: Thu Nov 8 16:38:55 2012 -0800 No more sending delay, create rtp packets upfront. Change-Id: I809a225f664fdb485c7d9a49a27886601a6a26b2 commit d399e8571b77353d59afb57508dfd2a82c1ef93a Author: Andreas Huber <andih@google.com> Date: Thu Nov 8 14:19:43 2012 -0800 Restore AudioSource buffer size, factor out TimeSeries, make suspending video optional. Change-Id: Ifdfe4d447b901e714abf52856b4641d1d55a5d41 commit f8b649f0b8f917d59f4b8a2e8e6d7db61a684a78 Author: Andreas Huber <andih@google.com> Date: Thu Nov 8 09:34:06 2012 -0800 Pull 480 frames at a time from AudioSource/AudioRecord Change-Id: I1e215abd329faec3da026631122c0f4c800c0ac4 commit 1bc13452eb35eebbba00f5da93fa86535be5db59 Author: Andreas Huber <andih@google.com> Date: Thu Nov 8 08:50:30 2012 -0800 fixed bitrate traffic simulation Change-Id: Ic5efb7cbb0b5d3b4917bc77b8ba73d447249e695 commit 016cdff18e74bdc631a5679e97192645ed095aa2 Author: Andreas Huber <andih@google.com> Date: Wed Nov 7 14:00:03 2012 -0800 resurrected "our" style of retransmission. Change-Id: I34d757aba67428437cb39b8293a9651750ad20d9 commit 384cf1a3c8fb4ec410bdf8fa5722c298e6028f3e Author: Andreas Huber <andih@google.com> Date: Tue Nov 6 09:38:55 2012 -0800 Changes to make wfd work on manta. Change-Id: I7a4e00cf16581fe2146edd1b359af195774090e4 commit 9628f24b22b35f28630d99dda3614babf51bc07e Author: Andreas Huber <andih@google.com> Date: Wed Nov 7 09:15:44 2012 -0800 Patch up rtp timestamps to more accurately measure network jitter. Change-Id: I9502a4615575f97f98a215a13131a89a6ae93c6d commit 7c891a1a24f08bbd50f55be13f7d05f43e807eb8 Author: Andreas Huber <andih@google.com> Date: Tue Nov 6 09:37:24 2012 -0800 Additions to the "wfd" tool to create a local wfd source. Change-Id: I99558653a70fdc703f9d13990b3ce1c4d3ae227a Change-Id: Ia94c63fc390f597014531073485f0cfc53b3418a
* | [3/3] libstagefright/videoeditor: Allow custom DOMX source instead of Google ↵Hashcode2013-01-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DOMX default Part 3 of 3 patches: To allow omap4 devices to use custom "domx" source via a new BoardConfig.mk item: TI_CUSTOM_DOMX_PATH := device/<manufacturer>/<device-name>/domx This setting provides for 3 changes during the build: 1. In hardware/ti/omap4xxx this settings stops standard Google domx source from being built and changes the domx reference for tiutils. 2. In frameworks/base it changes the default openmax references for frameworks/base/media/jni/mediaeditor/Android.mk to the new location 3. In frameworks/av changes the openmax references in 5 places, and adds new includes in ACodec.cpp, CameraSource.cpp and OMXCodec.cpp This is a combination of cherry-picks from omapzoom (with a more descriptive BoardConfig setting name): http://www.omapzoom.org/?p=platform/frameworks/av.git;a=commit;h=8044105ca117c2e99b35ad9f341d630fc5a9d2e0 http://www.omapzoom.org/?p=platform/frameworks/av.git;a=commit;h=4adf712d1f3f2050fe0010652bbba7ecb8468870 http://www.omapzoom.org/?p=platform/frameworks/av.git;a=commit;h=fa37231ca59872ac491461ca3c14e019834848e5 Change-Id: I53dbf120d515eaf5ec82688dcea4c670c173ed01 Signed-off-by: Hashcode <hashcode0f@gmail.com>
* | WifiDisplay: Add an HDCP toggleRicardo Cerqueira2012-12-201-1/+4
|/ | | | | | | | Some WFD dongles have frequent (or permanent) failures while negotiating HDCP with the device, so add a toggle to allow skipping HDCP entirely Change-Id: I999158df84d4a7489c40ecdf07ebcf107d071d40
* Make video encoders' bitrate mode (constant, variable, ...) configurableAndreas Huber2012-11-011-0/+3
| | | | | | | | through the desired output format. Configure the video encoder to use constant bitrate mode for WFD. Change-Id: Id7bd619598153c13448a9c5acd69d80f8a01f333 related-to-bug: 7459597
* Various tweaks to wfdAndreas Huber2012-10-3110-893/+1514
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | related-to-bug: 7426218 Squashed commit of the following: commit 1553f1a1c66af998674168f7f7a3be23fcb0c794 Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 15:51:27 2012 -0700 Add LPCM, AVC and AVC HRD descriptors as necessary. Change-Id: Ibc836fced0fe37e8a25574c2295e886765b9ea6f commit 4e74db61d2d31ebe239acbdec8f110f88016a4ea Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 15:50:52 2012 -0700 added copyright headers to Sender.{cpp,h} Change-Id: If615ccb8767e32bd83ed1f0f669acc39a72489f6 commit 7144bf8ae68c5cdb8faa6e219547aabbd750f04e Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 15:50:25 2012 -0700 Reenable suspension of the RepeaterSource Change-Id: I765338fcde89c65e4b69be45a5949eba6bcdcf6f commit 812164bcfa0699821d7d8eefcc0dff96b2e2cd08 Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 14:03:50 2012 -0700 Add 2 stuffing bytes to the PES headers for audio tracks. Change-Id: I8b9c634f6a565ab7fa7ecdb610f7d8557e0b139b commit a084a741a63015d47c92d99fcd8b980fe615dc7d Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 13:19:38 2012 -0700 Fix PCM audio packetization in WFD. Change-Id: I99a435f9fe6b4397f24d6c22afae5ae2505ffc14 commit c5cb9369585f701f34bce41534940d5f9b59248f Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 13:19:12 2012 -0700 Support extraction of PCM audio from transport streams. Change-Id: I28a0516756ebcb5587325b6588df013ac871ffb9 commit b0a0512300ae037d6b39c2d04952d34b5fc12b2d Author: Andreas Huber <andih@google.com> Date: Tue Oct 30 08:54:13 2012 -0700 disable suspend of the RepeaterSource Change-Id: Ibf42a98185b0567f817ae582a82e6580f95d3d40 commit 4330e8b7668dc92a6d882b5622c0697cf292d04c Author: Andreas Huber <andih@google.com> Date: Mon Oct 29 14:11:25 2012 -0700 Better handling of datagrams in ANetworkSession reduce unnecessary copy overhead. Change-Id: I2ed8c767274ba07764f03e8d4913041168e5755f commit a44e73c322ba3f2c336f7cc4e1d63d3a74faa75d Author: Andreas Huber <andih@google.com> Date: Mon Oct 29 11:14:47 2012 -0700 Network traffic is now handled on a separate thread. Audio and video are queued to ensure proper A/V interleaving. Scheduled packet sends according to capture timestamps to reduce send-jitter. Change-Id: Ibd6357c1e663086cf87bec0a98f8e54dfdfaa0e5 related-to-bug: 7426218 Change-Id: Ia440129d656c35814abf18df06da50b73d5bb554
* Increase bitrate now that other issues have been resolved.Dave Burke2012-10-261-1/+1
| | | | | Bug: 7426218 Change-Id: I67dfa1e4b85f326f355ad0ec5b6c699e87b45564
* Disable silence suppression (causes issues with dongles).Dave Burke2012-10-261-2/+1
| | | | | Bug: 7426218 Change-Id: Ie1517a8017bae1f9a9b6c224cd3170dfcc5fb941
* WFD use of HDCP is now optional.Andreas Huber2012-10-222-66/+40
| | | | | | | | | if the sink supports it we'll use HDCP (and fail if necessary), if it doesn't we won't. If an HDCP session is established we'll tell our observer that the connection is secure, otherwise we don't. Change-Id: I7cbef384f2cf0a6ac65801c581eea227b9ef4c46 related-to-bug: 7368436
* Switch audio mode based on dongle's capabilitiesAndreas Huber2012-10-092-8/+93
| | | | | | | properly parse rtp port and use it to setup session. Change-Id: Ic7521cb867143278196c3ce4b19a74ecc2703d8e related-to-bug: 7318719
* Optionally emit LPCM audio instead of using AAC in wifi display codeAndreas Huber2012-10-047-27/+200
| | | | | | | | | | | | related-to-bug: 7248248 May decrease power usage at the cost of significantly increasing audio bitrate. Use "adb shell setprop media.wfd.use-pcm-audio true" to turn it on (must be done before connecting). Change-Id: I7ebeadf3209e01522a2644948287b23d7c383c7e
* Merge "Enable hdcp for WiFi display" into jb-mr1-devJames Dong2012-10-031-1/+1
|\
| * Enable hdcp for WiFi displayJames Dong2012-10-031-1/+1
| | | | | | | | | | | | o related-to-bug: 7055369 Change-Id: Ie1ddd1e961f9ff60fe32b57cf7f8de4f4ecf5aa0
* | Drop video bitrate to 2.5mbps.Dave Burke2012-10-031-1/+1
| | | | | | | | | | | | | | | | | | We have too much corruption/loss at higher bitrates. Reviewed quality trade-off with jdong@. We can increase in the future if we have a better packet loss concealment solution. Bug: 7241844 Change-Id: I3b500a9c3a4429e834fb4c5ca04164d4e106fa9e
* | Better power savings with wifi display code.Andreas Huber2012-10-032-6/+35
| | | | | | | | | | | | | | | | No more polling the encoder for work to do, the encoder instead notifies if there's activity. Change-Id: Ia707211b4f5c5a6e6b70d750233d204a2d6bb778 related-to-bug: 7248248
* | Increase polling frequency again temporarily to fix A/V issuesAndreas Huber2012-10-032-14/+24
|/ | | | | | | | Fixes a bug in the silence detection and increases the timeout after which we enter "silent mode" to 10 secs. Change-Id: I802b058f054becd5c377186664437f7b3970193f related-to-bug: 7248248
* Enable silence detection and don't driver the audio encoderAndreas Huber2012-10-022-12/+77
| | | | | | | | or send any audio out over the network if we've seen at least one second of silence. Change-Id: Ic2bca4ce7d55bd246283dc669f5f5cb6106d88ea related-to-bug: 7248248
* Now back to 30fps, suspend updates if surface flinger didn't send usAndreas Huber2012-10-026-30/+106
| | | | | | | any new frames for one second or longer. Change-Id: I1c2ec349b0a4b7c4eb9dcdde483362ec87dd69fa related-to-bug: 7248248
* More power savings: No need to keep a history of outgoing packetsAndreas Huber2012-10-022-2/+9
| | | | | | | if we're not enabling retransmission anyway. Change-Id: I361120607974a2fab758c28b5033716213aef88e related-to-bug: 7248248
* Increase converter polling interval.Andreas Huber2012-10-021-1/+1
| | | | | Change-Id: I455005086a63c70883a71e189753a117b195f22f related-to-bug: 7248248
* Take advantage of the hardware encoder's ability to prepend SPS/PPSAndreas Huber2012-10-025-18/+12
| | | | | | | to IDR frames instead of doing it manually. Change-Id: I994cfbd6539013406dd610393ba1f0b9a0dbf4d5 related-to-bug: 7245308
* Use incremental updates sent by surface flingerAndreas Huber2012-10-013-7/+5
| | | | | | | instead of running at a fixed framerate. Change-Id: Ia3f36aa449e2e952bf3263ffbb709a9b79b09c26 related-to-bug: 7266398
* Merge "ALooper::GetNowUs() now relies on systemTime instead of ↵Andreas Huber2012-10-012-5/+13
|\ | | | | | | gettimeofday." into jb-mr1-dev
| * ALooper::GetNowUs() now relies on systemTime instead of gettimeofday.Andreas Huber2012-10-012-5/+13
| | | | | | | | | | Change-Id: Ia31eb0940b02581327a8bf51af6df135f9ab6de3 related-to-bug: 7266324
* | Inform DisplayManager that we're running over a secure channel (HDCP)Andreas Huber2012-10-011-1/+6
|/ | | | | | | if that's the case. Change-Id: I5f16cad04a6937a3fb65600a971866a77e0ae9fc related-to-bug: 7265406
* Perform an orderly shutdown if possible, force disconnect if necessaryAndreas Huber2012-10-013-7/+71
| | | | | | | | wait for up to 2 secs for the dongle to send us a "TEARDOWN", after that forcibly shutdown the connection. Change-Id: Ie049857cd468b7af6986d6305f725c54571b2276 related-to-bug: 7258622
* Make sure we still handle shutdown-related message even if we'reAndreas Huber2012-10-011-20/+7
| | | | | | | in error-state. Change-Id: Ie12dd1a63306b4020b9de9eae007f6d768f02df6 related-to-bug: 7262673
* Merge "Even cleaner shutdown." into jb-mr1-devDave Burke2012-09-305-25/+38
|\
| * Even cleaner shutdown.Andreas Huber2012-09-285-25/+38
| | | | | | | | | | Change-Id: I5a76f83db3a5e43f55eb4e04269d890c2015bae7 related-to-bug: 7247918
* | Fix shutdown if HDCP was never instantiated.Andreas Huber2012-09-281-3/+5
|/ | | | | Change-Id: Icdf6785880180f417c5432dff54c7e0fb12ef84d related-to-bug: 7247918
* Tell the encoder to emit SPS/PPS before IDR frames in wifi display code.Andreas Huber2012-09-282-1/+12
| | | | | Change-Id: Ic40e09b66784dd2e370d30b688d50561a47ab85a related-to-bug: 7245308
* Various improvements to a cleaner shutdown of the wifi display connection.Andreas Huber2012-09-2810-172/+285
| | | | | Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239 related-to-bug: 7247918
* wfd_presentation_url should not include the port number according to wfd specsAndreas Huber2012-09-271-3/+2
| | | | | Change-Id: I9c0e0174f6ab4cb24c6eafcaae853e432b3dffb9 related-to-bug: 7247490
* Merge "Cleaner Wifi Display shutdown process, avoid crashing HDCP on exit." ↵Andreas Huber2012-09-274-54/+89
|\ | | | | | | into jb-mr1-dev
| * Cleaner Wifi Display shutdown process, avoid crashing HDCP on exit.Andreas Huber2012-09-274-54/+89
| | | | | | | | | | Change-Id: Ie54ee3edd672ec629360b4ecc5df2f85ecbaa45f related-to-bug: 7247584
* | Merge "Prepend SPS/PPS manually before encryption in HDCP mode. This is" ↵Andreas Huber2012-09-274-10/+57
|\ \ | |/ | | | | into jb-mr1-dev
| * Prepend SPS/PPS manually before encryption in HDCP mode. This isAndreas Huber2012-09-274-10/+57
| | | | | | | | | | | | | | | | a temporary change that will go away once the encoder can take care of this. Change-Id: Id65218f8a250d8c8fe3e8987b522065b5f5d7dca related-to-bug: 7245308
* | Tune WFD audio bitrate (did some listening tests).Dave Burke2012-09-271-1/+1
|/ | | | | | Bug: 7241844 Change-Id: I5243f7a771871e650c6c2f380e0e81e7671c7bac
* Tune iframe interval to 1sec.Dave Burke2012-09-261-1/+1
| | | | | | Bug: 7241844 Change-Id: Iae0d73ecc680f6fa69d82ee2e8fac18ebece7782
* 720p24 i-frames every 2 secs.Andreas Huber2012-09-263-4/+6
| | | | | | related-to-bug: 7239971 Change-Id: I4cbf7e9b878b180b0683656e9e8c0a6bb18e06dc
* Make sure we only release the HDCP module once shutdown has completed.Andreas Huber2012-09-264-14/+49
| | | | | Change-Id: I4b614afe2b55ac53b4aa63311e5bea8fd6c4462e related-to-bug: 7223555
* Merge "Fix shutdown and eliminate those annoying "failed to post..." logs." ↵Andreas Huber2012-09-261-1/+4
|\ | | | | | | into jb-mr1-dev
| * Fix shutdown and eliminate those annoying "failed to post..." logs.Andreas Huber2012-09-261-1/+4
| | | | | | | | | | Change-Id: I963e0712f59070f83a26946c494fdeb3558aa0e3 related-to-bug: 7230886
* | Logic to include HDCP specific PES extra header data was backwards.Andreas Huber2012-09-261-2/+2
|/ | | | | Change-Id: I85ab02f0c3ab945093b27210da1e36a31c022da5 related-to-bug: 7237850
* Better transport stream timestamp handling.Andreas Huber2012-09-254-111/+210
| | | | | | | | Properly emit PCR and PMT/PAT updates every 0.1 secs. Don't stream RTCP unless requested by the dongle. related-to-bug: 7232540 Change-Id: Ie9a6949a074d86ab022adfab5d2811294ba746aa
* Add some more logging, reduce startup delay to 1 sec.Andreas Huber2012-09-252-2/+6
| | | | Change-Id: Ic24a3d9e3e645288411efb46f7004d89e7a0a4b7