History log of /frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
be71aa29a3c86d2e01cd17839d2a72ab09a1bce5 28-Apr-2015 Svet Ganov <svetoslavganov@google.com> Respect the record audio app op - media

Change-Id: I3a97977b6e9a09355e2008f780d22d480fb7308b
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ee4e1b1a63758941460ae79a064249d3a5189443 17-Apr-2015 Lajos Molnar <lajos@google.com> stagefright: warnings be gone, some are now errors, use clang

Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
3f27436a9346f043f52265da1e6a74cde2bffd4d 05-Mar-2015 Lajos Molnar <lajos@google.com> stagefright: don't use ALooperRoster mutex for reply handling

Change replyID-s from uint32_t to an object
Move reply handling into the loopers (to reuse a common mutex)

Bug: 19607784
Change-Id: Iaa035b846c424c5687ed17ce1079b325e86c54be
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
1d15ab58bf8239069ef343de6cb21aabf3ef7d78 05-Mar-2015 Lajos Molnar <lajos@google.com> media: switch to new AMessage handling

Bug: 19607784
Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
a1e8944a21e5833b7aadc451776f11797f5f9273 04-Feb-2015 Elliott Hughes <enh@google.com> Move AString's StringPrintf out of the way.

We should come back and replace AString with std::string and switch to the
"real" StringPrintf family, but this fixes the ODR violation that was
preventing us from booting.

Bug: 19265750
Change-Id: I798eb9ca5dd634e44625af5e583439ef9f0cdc35
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
7c0a284cbc227e35213d3c606edd29c05225f3a7 28-Sep-2014 Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> Fix linkage when building with clang, Intel CC or gcc -O0

This code fails to link when using clang, Intel CC, or gcc -O0 because of the
CHECK_GT statement in WifiDisplaySource::scheduleKeepAlive (explanation
at https://gcc.gnu.org/wiki/VerboseDiagnostics#missing_static_const_definition,
doesn't show up with gcc when optimizations are enabled because the
entire CHECK_GT statement is optimized away).

This fixes https://code.google.com/p/android/issues/detail?id=58221

Change-Id: I43d3629819a01971846c31e9f755d6e0567fb838
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
d411b4ca2945cd8974a3a78199fce94646950128 11-Apr-2014 Andreas Huber <andih@google.com> warnings be gone.

(cherry picked from commit 84333e0475bc911adc16417f4ca327c975cf6c36)

Modified by Mark Salyzyn <salyzyn@google.com> to keep merge conflicts
or errors downstream to a minimum.

Change-Id: Ic3b272f9cbf3155001aabd2f79728f1bc31de613
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
6ea551fa13b69e5ce359a7dba7485d857a005304 02-Oct-2013 Andreas Huber <andih@google.com> Remove obsolete miracast sink code and friends.

Change-Id: I8bbb22fb0cfe2d73881d9f05bf8112ae86d8040b
related-to-bug: 11047222
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
87ecf19404586672008e98babc225e094292ceb5 06-Jun-2013 Chong Zhang <chz@google.com> wifi-display: pass session info to wifi display settings

Bug: 9371882

Change-Id: I9e4b8c2154b03ce8ff3e14c465a5224bb6e8db9a
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
8060060217ff16cd67c8f6a15c649f44c343acf0 18-Jul-2013 Andreas Huber <andih@google.com> ANetworkSession and ParsedMessage are now part of stagefright foundation.

Also fixes some bugs in ParseMessage and adds "WebSocket" mode to
ANetworkSession, something that's opt-in and should not affect existing clients
of the API.

Change-Id: I86d5748e0d818231d85d3590d86c2b41d4f8b1f1
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
1ad3eb9441eb509c792c61aa0181b0e74dbe9984 31-May-2013 Chong Zhang <chz@google.com> wifi-display: fix resolution list and keepalive interval

- add all resolutions lower than 1280x720p30

- schedule next keepalive when sending M16

bug 9116665

Change-Id: I7b3fea2101d3d882c0af5c153af5c502b8ce98f6
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
bd25dacce1187c827dde3fb72036c044c8106719 30-May-2013 Chong Zhang <chz@google.com> wifi-display: fixes for PAUSE/PLAY state

PAUSE could be initiated by either source (via trigger method)
or sink, in latter case we have to allow PAUSE from PLAYING state.
Similarly PLAY should be allowed from PAUSED state.

Bug: 8922515

Change-Id: I475534aa4ffa6dc6844f59c5868d8f88291019ae
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
308bcaa44e578279e61be32b572fdb0b11b1e4c7 04-May-2013 Chong Zhang <chz@google.com> wifi-display: add support for metadata mode on encoder output

pass buffer_handle_t from encoder output to HDCP encryptor input

Bug: 8968123

Change-Id: Iea8007ce568641e213fd2e3cf6947a6f7a95746c
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
d64993741048110ead714a2c1c49907cfe38c065 15-May-2013 Chong Zhang <chz@google.com> am be06e9fc: am 6ed6a2e6: Merge "wifi-display: misc fixes for M3 response parsing" into jb-mr2-dev

* commit 'be06e9fcdee1b02d29681c73c42a23a530f25d13':
wifi-display: misc fixes for M3 response parsing
aef5c98cd3f67e0209e1fa28489078e9f40d6f46 09-May-2013 Chong Zhang <chz@google.com> wifi-display: misc fixes for M3 response parsing

- fix wfd_video_format parsing w/ multiple H264-Codec
- fix handling of CRLF at end of M3 response
- fix missing wfd_client_rtp_ports

Bug: 8871667
Bug: 8875749

Change-Id: Idb0b5605313bba6ff067bcd765512bbed42e5202
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
c86ef45279185b474bd6af0a7ae407f8ab577f13 26-Apr-2013 Andreas Huber <andih@google.com> Revert "Remove all traces of wifi display sink implementation and supporting code."

This reverts commit 3a9682a86ead84d6f60d3f3aa01b2b4d34af983d.
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
3a9682a86ead84d6f60d3f3aa01b2b4d34af983d 23-Apr-2013 Andreas Huber <andih@google.com> Remove all traces of wifi display sink implementation and supporting code.

Change-Id: I64b681b7e3df1ef0dd80c0d261cacae293d5e684
related-to-bug: 8698812
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ff9297ac908aa01e44fda4ab9ca7a4bb514c00fd 28-Mar-2013 Andreas Huber <andih@google.com> Fix SHUTDOWN after SETUP and before PLAY in wifi display.

Change-Id: Ieb8ce1ac3130254839975a3677162b64156735bc
related-to-bug: 8499893
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
cd77d4a1d38b7609a03f6826a1ff5fa7c98aa34f 26-Mar-2013 Andreas Huber <andih@google.com> Identify network servers and clients with a OS version related string

and put the logic to create that string in one location instead of many...

Change-Id: I1f729f2e7376cd3b45eea0e48f7bd10084b41b39
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
2aea9552aeba92bbaf9e56c666049ea2d14057b5 25-Mar-2013 Andreas Huber <andih@google.com> In "special" mode we now establish a UDP RTCP channel in addition to the

TCP RTP channel and provide feedback on the latency of arriving packets from
the sink back to the source. This information is then used to throttle
video bitrate.

Change-Id: Ic589a3cb65e4893a3ff67de947da6063d32a1c6e
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
0b530f1050150bb751ae642d5a9dce34141d9475 18-Mar-2013 Andreas Huber <andih@google.com> Allow for streaming of media files (without recompression)

Change-Id: I1de356cc37506ba986822d12a1a59e7b64069e02
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
126568c7aeeb5570789e70a310477f44dbdbd885 12-Mar-2013 Andreas Huber <andih@google.com> Attempt to recover from network stalls by dropping frames on the source side.

Change-Id: I5f9eb4f5acb624a9e5bc0087801fb5a4a9ade35c
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
d5e56231a598b180a1d898bb7dc61b75580e59a4 12-Mar-2013 Andreas Huber <andih@google.com> Squashed commit of the following:

commit f4edf442741886cdbe071e2d15f6e6247269f7c5
Author: Andreas Huber <andih@google.com>
Date: Tue Mar 12 09:09:18 2013 -0700

Pass additional flags to the sink, use TCP by default in wolfiecast mode.

Change-Id: I41e11a2375d4199656e45c4f149d8441d0016092

commit 6302602ed280a38287f507159abfb40a1da38c5a
Author: Andreas Huber <andih@google.com>
Date: Tue Mar 12 08:51:58 2013 -0700

tweaks

Change-Id: Ie29e422d7258be522f4bb1f6c5afcf74c937e547

commit a38a860e4979ba563cadbaafa21b084439449d26
Author: Andreas Huber <andih@google.com>
Date: Mon Mar 11 16:57:43 2013 -0700

Report average lateness all the way from NuPlayerRenderer...

Change-Id: I2e7700703ae656515e44b9c25610d26c75778111

commit a7d49b11675ea88be4029dd8451d1649db94571d
Author: Andreas Huber <andih@google.com>
Date: Mon Mar 11 14:54:19 2013 -0700

Make TimeSyncer smarter, enable TunnelRenderer

Change-Id: I27377a60cd8feb01589da456967fddd34532c20e

commit 0f214c8ef68179f7b61512c37040939554013151
Author: Andreas Huber <andih@google.com>
Date: Thu Mar 7 15:57:56 2013 -0800

convert source timestamps to sink timestamps, report lateness.

Change-Id: I051a60fbbceca2f7b508ae3dac6e01e402bae39e

commit 04a4f8e16bad09157b5615a5fa45310438955832
Author: Andreas Huber <andih@google.com>
Date: Thu Mar 7 09:00:28 2013 -0800

Sync time between sink and source.

Change-Id: Ie8b4d75c957aa48310e7c81d1279761b9f821efe

commit aebe20e6184e3636a99082f8ece08e708015cb8d
Author: Andreas Huber <andih@google.com>
Date: Wed Mar 6 09:03:12 2013 -0800

play with back pressure

Change-Id: I51eb69257e6a79e76f5f9c75ff99d8adbd083947

Change-Id: Ifdf57228667fed7fc71c5090a2c3f7cea1037c5c
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
5abf87f9af48149972eeb851ecaea679911da040 07-Mar-2013 Andreas Huber <andih@google.com> Disable our fancy logic to respect both sink and source's native formats

since it isn't actually supported by anything in the field.

Change-Id: I9cd038d7631105de26303312ca87c472d67034d4
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
a556c4822fc205db0d27834ba5b637c351d73ffa 05-Mar-2013 Andreas Huber <andih@google.com> Squashed commit of the following:

commit e5919b1f57ea61fa1d380dfdb4e3e832ce73d79d
Author: Andreas Huber <andih@google.com>
Date: Wed Feb 27 16:38:48 2013 -0800

Configure TCP datagram sockets to be TCP_NODELAY.

Change-Id: Ia724a81e6e27dccd00ac84603e712d69ca77a0cd

commit 1b52b393183db8a6dc000a7c31baac544ccfc50c
Author: Andreas Huber <andih@google.com>
Date: Wed Feb 27 14:26:01 2013 -0800

Send IDR frame requests on packet loss.

Change-Id: I53b7fb85cbd6923491113b93ec3e2175726d654a

commit 68d76b4b3a0181b30abc57cd2915273210530a6d
Author: Andreas Huber <andih@google.com>
Date: Tue Feb 26 15:12:34 2013 -0800

Revive TunnelRenderer

Change-Id: I8c5a9d982793b1c5b841c828227b354f1dab618c

commit 3df28a8e9d8bcdc1430016bb088d097eca653b56
Author: Andreas Huber <andih@google.com>
Date: Tue Feb 26 13:53:14 2013 -0800

Disable suspension of video updates.

Change-Id: I7e3a16b8d7dd7a55d9f962a2236388931f664106

commit 2ec7a79de019a26ec415016c1478afd762f069cd
Author: Andreas Huber <andih@google.com>
Date: Tue Feb 26 08:54:40 2013 -0800

Adds an SNTP client to wfd.

Change-Id: Icd7d6104e951e1443e4c1b81ccf6b3731d79d3ec

commit c81c3bb5725bb4079a4d7fb02151ad0bb540632f
Author: Andreas Huber <andih@google.com>
Date: Mon Feb 25 10:00:58 2013 -0800

Squashed commit of the following:

commit b83a4ec96659ef6f6b7c2090fdd866abe3ab78ba
Author: Andreas Huber <andih@google.com>
Date: Mon Feb 25 09:28:11 2013 -0800

Some reorganization of the rtp code, renamed StreamHub -> MediaSender

Change-Id: I8cf67444960e60426bf74880af1acce41e8b2fef

commit 7769cbd739f2a67c58e0c6a7b1a21a12210c7c4d
Author: Andreas Huber <andih@google.com>
Date: Fri Feb 22 16:12:18 2013 -0800

Choose a smaller MTU to avoid fragmented IPv4 packets, fix AVC assembler.

Change-Id: I274b3cc1483c4e9f4d146dbf9f3d9f7557ef7ef9

commit 1f687ee80a88b56d614c2cf408ff729114ff86a0
Author: Andreas Huber <andih@google.com>
Date: Fri Feb 22 11:38:31 2013 -0800

better reporting.

Change-Id: I67f0bb51f106ea77f5cc75938b053c8e8e8f688e

commit 7950c1cd59213eb5f281fcde44a772ecffae473d
Author: Andreas Huber <andih@google.com>
Date: Fri Feb 22 09:07:41 2013 -0800

stuff

Change-Id: Ib99416366d3eec6e6ad69b4d791a8a9408410f3b

commit 33c09045b0f86fcaa4619cbd679b47a074f71231
Author: Andreas Huber <andih@google.com>
Date: Thu Feb 21 15:54:01 2013 -0800

Render frames according to their timestamps.

Change-Id: I8143a95cffe775799d6a4bb093558bd7abb1f063

commit d8b6daae2160bf1c016d7c6251256b46bb89db42
Author: Andreas Huber <andih@google.com>
Date: Thu Feb 21 15:01:27 2013 -0800

Better packet-lost logic.

Change-Id: I611eee5a42bd089638cf45b0e16f628ff2a955ab

commit 782c6b15717e2d062d96665a089d06c0577733d0
Author: Andreas Huber <andih@google.com>
Date: Wed Feb 20 15:06:47 2013 -0800

Add a dedicated looper for the MediaReceiver

Change-Id: I3b79cad367fb69c9a160a8d009af8c5f5142b98e

commit 4c7b8b10861674b773270103bcabd1a99486a691
Author: Andreas Huber <andih@google.com>
Date: Wed Feb 20 14:30:28 2013 -0800

Tweaks to RTPSender and RTPReceiver

Change-Id: Ib535552f289a26cfead6df8c63e4c63d3987d4e9

commit 39226b28177a816cda5c67b321745d396b18277d
Author: Andreas Huber <andih@google.com>
Date: Tue Feb 19 08:48:25 2013 -0800

Playing around with non muxed delivery

Change-Id: I845375f6938d04bc30502840c2ceb7688dc9b237

commit c16d21de75d8ecdbcd9abce14934afe484970061
Author: Andreas Huber <andih@google.com>
Date: Wed Feb 13 14:43:35 2013 -0800

A more solid base for RTP communication.

Change-Id: I52033eeb0feba0ff029d61553a821c82f2fa1c3f

Change-Id: I57e3bcfc1c59a012b15aaaa42ed81f09c34c26bb

Change-Id: I4b09db4a44d0eeded7a1658f6dc6c97d4b8be720
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
7cc0c29d6a7b76520ec588437ab51d5b8eac9ebc 01-Feb-2013 Andreas Huber <andih@google.com> Revive the code to support TCP interleaved transport

Also support non-interleaved transport now, but the sink gets to decide
what mode it wants to run in, _not_ the source.

Change-Id: I3b6057f86871084e4decf930bb4a7a2d7517b0f2
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
a6a88d9c445e261972c2433254e0a996336e78a4 30-Jan-2013 Andreas Huber <andih@google.com> Plumbing to reflect minor changes in the HDCP module API that allow for

support of _decryption_ modules in addition to what we already supported.

Change-Id: Ic37b87dc170ba8def3817991d25df798f21e950b
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
94a483bf2bd699275673d9cd57cb125d48572f30 29-Jan-2013 Andreas Huber <andih@google.com> Squashed commit of the following:

commit f2c38e5cf8cee3b597c744c9d6a9c0969ac8599a
Author: Andreas Huber <andih@google.com>
Date: Mon Jan 28 16:33:07 2013 -0800

Proper support for video format selection/negotiation.

Change-Id: I7db86cef939d63b8064be1c74de9ad78e85d45d9

commit 488023b7bad086692ffe942114fa3cc0e59a16c0
Author: Andreas Huber <andih@google.com>
Date: Mon Jan 28 11:21:23 2013 -0800

Sink now notifies clients once it is disconnected.

Change-Id: I2f0a458ef1ec30dda1272ad5a013fee4ee70edc9

commit 783932e40dd904aa531c263ad51280d9ca814dcb
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 18 15:03:40 2012 -0800

Alternative DirectRenderer implementation.

Change-Id: I307beb913d7a61cb938bcb02696cc2e82d2b8b07

commit 1935cc9a87824aea71fc8ebe2162f62ec634ce5a
Author: Andreas Huber <andih@google.com>
Date: Tue Dec 18 10:24:27 2012 -0800

Experimenting with wifi sink timing.

Change-Id: I059bae9762cf11777666988a8b4ab2012b5807be

commit a859ee1eadd6a1d6a080667917e8b102c3770d61
Author: Andreas Huber <andih@google.com>
Date: Thu Nov 15 11:16:30 2012 -0800

wfd sink update.

Change-Id: I026dfc580be92aa40dbbe7c1bc061fadf3b08be8

Change-Id: I191d3d7015869ca99254d813d074328fb5b2f479
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
8ba01021b573889802e67e029225a96f0dfa471a 18-Dec-2012 Andy McFadden <fadden@android.com> Rename ISurfaceTexture and SurfaceTexture

The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.

Bug 7736700

Change-Id: I64520a55f8c09fe6215382ea361c539a9940cba5
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
5131d127a042ee88f903370be88845dc8c9f8578 16-Nov-2012 Andreas Huber <andih@google.com> [wfd] Support a low(er) power state by triggering PAUSE/RESUME.

Change-Id: Ibe42bfa73816bbfeb7e652d435254d0171b89727
related-to-bug: 7638150
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
0224bf170a3904576bba81593eaab113c5d3a4e7 12-Nov-2012 Andreas Huber <andih@google.com> Various improvements of wifi display code

- 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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
90a92053219ae50ddf4bb54e3d54db2d309e2b8d 30-Oct-2012 Andreas Huber <andih@google.com> Various tweaks to wfd

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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
0328ec08dc1e90caa2a9e0c4e107d8ddaa74af20 22-Oct-2012 Andreas Huber <andih@google.com> WFD use of HDCP is now optional.

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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
d243c04534d1b74bd66625c5c96a9b918d8838bf 10-Oct-2012 Andreas Huber <andih@google.com> Switch audio mode based on dongle's capabilities

properly parse rtp port and use it to setup session.

Change-Id: Ic7521cb867143278196c3ce4b19a74ecc2703d8e
related-to-bug: 7318719
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
e7bd24af08ef0722fb124a550662bcec48c56f86 04-Oct-2012 Andreas Huber <andih@google.com> Optionally emit LPCM audio instead of using AAC in wifi display code

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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
4a8b9a2363b7b7b4f98022e6d9aae8b8aa8e35e5 02-Oct-2012 Andreas Huber <andih@google.com> Now back to 30fps, suspend updates if surface flinger didn't send us

any new frames for one second or longer.

Change-Id: I1c2ec349b0a4b7c4eb9dcdde483362ec87dd69fa
related-to-bug: 7248248
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ee178668818eb4f43ff40735405f8fc42372620f 02-Oct-2012 Andreas Huber <andih@google.com> Use incremental updates sent by surface flinger

instead of running at a fixed framerate.

Change-Id: Ia3f36aa449e2e952bf3263ffbb709a9b79b09c26
related-to-bug: 7266398
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
0cb47712a4fc0e01ad8680ee6ac3a5d72eafe0ba 01-Oct-2012 Andreas Huber <andih@google.com> Inform DisplayManager that we're running over a secure channel (HDCP)

if that's the case.

Change-Id: I5f16cad04a6937a3fb65600a971866a77e0ae9fc
related-to-bug: 7265406
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ad0d97c7cf620e96a0b088dd9461645a3f8900b7 01-Oct-2012 Andreas Huber <andih@google.com> Perform an orderly shutdown if possible, force disconnect if necessary

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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
bbe96f0f05a1f1a1b3cfec0d124cb0d63c1ebf2a 29-Sep-2012 Andreas Huber <andih@google.com> Fix shutdown if HDCP was never instantiated.

Change-Id: Icdf6785880180f417c5432dff54c7e0fb12ef84d
related-to-bug: 7247918
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
96fc6cc65ca93009a759a3a874b82a35771b9714 28-Sep-2012 Andreas Huber <andih@google.com> Various improvements to a cleaner shutdown of the wifi display connection.

Change-Id: Id029a89939e53c2bd1d20e572d3975ec2795c239
related-to-bug: 7247918
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
de799a74064a363d26f4c1bbc5a59d1b7127f49f 27-Sep-2012 Andreas Huber <andih@google.com> wfd_presentation_url should not include the port number according to wfd specs

Change-Id: I9c0e0174f6ab4cb24c6eafcaae853e432b3dffb9
related-to-bug: 7247490
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ef7d3793fa9bbfb25253626ede9a020ee9280a17 27-Sep-2012 Andreas Huber <andih@google.com> Cleaner Wifi Display shutdown process, avoid crashing HDCP on exit.

Change-Id: Ie54ee3edd672ec629360b4ecc5df2f85ecbaa45f
related-to-bug: 7247584
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
72ff5903df5f409ea83f74c363a52f0745ced8b8 26-Sep-2012 Andreas Huber <andih@google.com> 720p24 i-frames every 2 secs.

related-to-bug: 7239971

Change-Id: I4cbf7e9b878b180b0683656e9e8c0a6bb18e06dc
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
eb11600a248cfe5b95ddd3e5aaae02bd2ab65276 26-Sep-2012 Andreas Huber <andih@google.com> Make sure we only release the HDCP module once shutdown has completed.

Change-Id: I4b614afe2b55ac53b4aa63311e5bea8fd6c4462e
related-to-bug: 7223555
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
df4ddebe61ac84c7773da1f774d13e4d4bbe9f72 26-Sep-2012 Andreas Huber <andih@google.com> Fix shutdown and eliminate those annoying "failed to post..." logs.

Change-Id: I963e0712f59070f83a26946c494fdeb3558aa0e3
related-to-bug: 7230886
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
28e17ed7e2fbb254fb99481b74db85e427c905ee 25-Sep-2012 Andreas Huber <andih@google.com> Better transport stream timestamp handling.

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
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
ea4bbfdcad9478ea19257fb19a32de68a2dfd958 22-Sep-2012 Andreas Huber <andih@google.com> Attempt an orderly shutdown of the wifi display connection if possible.

Shutdown the session if the encoder signals an error.

related-to-bug:7207481

Change-Id: Id78000a336f8bb8904e7d2102f8f81a4139cdd61
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
207e18540fefbaf530a4fdf506d266f34ddec84f 21-Sep-2012 Andreas Huber <andih@google.com> Remove legacy code and APIs in wifi display related code.

Change-Id: Ia010e7a00534f9356b3247369d0ffd65591d91aa
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
efd9c63dc846dd3dea2c979fe2a9d6770e73f9ac 20-Sep-2012 Andreas Huber <andih@google.com> Code to support RTP retransmission according to rfc4585, rfc4588

Change-Id: Idfb3c0935f28e4cbc2141f0903f0d3c4e95818a6
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
b8c7bd418f0ee5b88923b0e0817e3a4acc53cf8d 18-Sep-2012 Andreas Huber <andih@google.com> Instantiate HDCP module, add PES_private_data for encrypted streams.

Change-Id: I970f561a56a1d489a392c3480dec13f4ed7b43bd
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
c92bed3a73c06e90217f8f199ca0b517aa7595d2 18-Sep-2012 Andreas Huber <andih@google.com> Now we only support a single client connection

and it cannot be initiated from the local interface address for security
reasons.
Also, there's at most one playback session active at any time, and when
it dies we shutdown the client connection altogether and signal an error
to the listener.

related-to-bug: 7139784
Change-Id: Ia8d02bc994ce9986936947ddda1f2a3dddbf5714
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
bd08e2f93bafd02abf2c25d740e9fb8bce455a99 13-Sep-2012 Andreas Huber <andih@google.com> Support for RTP/RTCP traffic over TCP sockets in wifi display code.

This is opt-in through

adb shell setprop media.wfd.enable-tcp true

Change-Id: I49ab22a8c8d62690065631e781a7f0057e5ce557
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
496238cc7551d414067dcbbb4fe3bd801f205f95 14-Sep-2012 Andreas Huber <andih@google.com> Support IDR requests in wifi display, MediaCodec and ACodec.

Change-Id: I596cf8dd61b63465437f78413186fad2be287244
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
a438123bd96c7faf145683876702387efe5628d9 13-Sep-2012 Andreas Huber <andih@google.com> Various improvements to cleanly shutdown a wfd session.

Change-Id: I86f0a27d7e8eb96200153bab847a862f21a19d13
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
72f6aea5afba3ff8ab7e8eab49552d65ee3bb97b 08-Sep-2012 Andreas Huber <andih@google.com> Less verbose logging, lots of references.

Change-Id: Idcb76848883b113e956d7e6266da882771a053b8
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
0b73d4730202fcad53aefc4314a06e7b95f442f0 05-Sep-2012 Andreas Huber <andih@google.com> Expose an IRemoteDisplay to trigger wifi display connections setup and feedback.

Change-Id: I7602cda0e38073c9f0e63fa4de238ca0d4b4ce8e
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
b6777017a68ed473d61cc9d6e77c34fd5cd301cc 31-Aug-2012 Andreas Huber <andih@google.com> Implement the source->sink(!) keep alive the wfd specs mandate...

Change-Id: I388d9911ebd243aa9c13a13ec3683e76898470a6
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
bcf09f8c995221e75c7cd328f25c7cc6d2b5f7c9 30-Aug-2012 Andreas Huber <andih@google.com> Only run the wifi display RTSP server on demand, and only on the wifi direct

interface.

Change-Id: I7d3c44cb79cd40e73499f2d7ccf35c69b628e6d7
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
d7bee3a9d2ad76d073d91f0ee36d5ac5f9df480c 29-Aug-2012 Andreas Huber <andih@google.com> Initial checkin of support for acting as a wifi display source

Change-Id: I08f17efa0c7d007e17408feb7d4fbef0a19f531a
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp