History log of /frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3e328782f1e1061d08ea0c45b855cc418a2d9ea6 09-May-2016 Lajos Molnar <lajos@google.com> stagefright: untangle metadata-mode handling

- specify requested metadata mode from producers to OMX
- (pass requested metadata in IOMX::storeMetadataInBuffers)
- use correct logic for native handle source
- use native handle source for encoded meta buffers

Bug: 22775369
Change-Id: I58b03acd3e9a5367d5010d7f87b7af5cae23362c
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
78bd91b15ee8ea5aa2ab5a8cad7e892cb2d01c1b 26-Feb-2016 Lajos Molnar <lajos@google.com> stagefright: set pcm-encoding for raw audio tracks

Bug: 27172163
Change-Id: I4db7ace4e8cbf01939dedefbb1c54730e393530f
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
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/PlaybackSession.cpp
3b0da19c78f6a61ed343a07f2448b94faafe4c02 18-Apr-2015 Lajos Molnar <lajos@google.com> stagefright: make more warnings errors

Change-Id: I9b1ad60fbfb866dbf9c00843e06553c3eb25c113
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
5205977929c8a63d3bba026c6bd7b4cc1e236627 12-Mar-2014 Dan Stoza <stoza@google.com> Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: I1a824d09ce582ee54753683d30cdc23813c13b6b
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
1b86fe063badb5f28c467ade39be0f4008688947 29-Jan-2014 Andreas Huber <andih@google.com> FINAL ATTEMPT: HTTP services are now provided from JAVA and made available to media code

Change-Id: I9f74a86e70422187c9cf0ca1318a29019700192d
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
ec3acca4a75fc4adc076b56751124f507b419622 03-Sep-2013 Chong Zhang <chz@google.com> wifi-display: do not use HDCP's encryptNative method if its unsupported

Bug: 10609422
Change-Id: I005f1d04a4191b1503b5f3e895a98b8d6560c402
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
a05822a368dfc8c220b413c3d23dcc1af58b4b5f 19-Jul-2013 Andreas Huber <andih@google.com> Minor tweaks to DirectRenderer and Converter

Converter now supports automatic prepending of SPS/PPS to IDR frames (h264)
as well as using the encoder in "surface-input" mode.
The new features are all opt-in and should not affect existing clients.

Change-Id: I543cf1d31ba068c1a01ab4e6814ac8d817b63faa
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
9fef8d453b15a91a2b748faac2bfaff713bcf1e1 12-Jun-2013 Andreas Huber <andih@google.com> Converter now takes the desired _output_ format instead of the

input format, allowing control over the type of encoding.

Change-Id: Iaaa1a825f447ea130e373bbd8e5dc96f2762db18
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
5340cef8c137e7002ff196f2b88b508675bd5b24 04-Apr-2013 Andreas Huber <andih@google.com> Fix adaptive frame rate handling to be non-adaptive unless specified through

adb shell setprop media.wfd.video-framerate adaptive

Change-Id: I452576b62ad465680232b40464977e126616df18
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
eaf5381f38bf6c3ecb5fe32a8351c26a447549f5 26-Mar-2013 Andreas Huber <andih@google.com> Adapt frame rate instead of keeping that constant and tweaking bitrate

Change-Id: I889abbbe1237e1a8fdd7135cdc91a2e9728ff39b
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
a0216af1a45b4c657a5801b766ec34a82fac1b3e 05-Feb-2013 Andreas Huber <andih@google.com> Merge "Revive the code to support TCP interleaved transport"
2fa05230219f72118388f3a350b1239db1299647 30-Jan-2013 James Dong <jdong@google.com> Remove a few unused header includes from PlaybackSession.cpp

Change-Id: Id3147e2f2d5d75ccc172e67802639cd43ed68870
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
8d16bbc5a354d302abfd912b8d88d9c7feb3948f 03-Oct-2012 Andreas Huber <andih@google.com> Increase polling frequency again temporarily to fix A/V issues

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
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
887070dbe6b6258ba04f988fd90c3ac856d2e5bf 02-Oct-2012 Andreas Huber <andih@google.com> More power savings: No need to keep a history of outgoing packets

if we're not enabling retransmission anyway.

Change-Id: I361120607974a2fab758c28b5033716213aef88e
related-to-bug: 7248248
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
c6920dfdca378a168a2168f4a64d21af4d37d539 02-Oct-2012 Andreas Huber <andih@google.com> Take advantage of the hardware encoder's ability to prepend SPS/PPS

to IDR frames instead of doing it manually.

Change-Id: I994cfbd6539013406dd610393ba1f0b9a0dbf4d5
related-to-bug: 7245308
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
af5dd7753e62353411cf0daf3b513c38818e9662 02-Oct-2012 Andreas Huber <andih@google.com> ALooper::GetNowUs() now relies on systemTime instead of gettimeofday.

Change-Id: Ia31eb0940b02581327a8bf51af6df135f9ab6de3
related-to-bug: 7266324
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
6360758ce2d171169d2a21e30266547ee4ac0fec 01-Oct-2012 Andreas Huber <andih@google.com> Make sure we still handle shutdown-related message even if we're

in error-state.

Change-Id: Ie12dd1a63306b4020b9de9eae007f6d768f02df6
related-to-bug: 7262673
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
77245813007cf903b4b73f5d0cd20313fbf0e510 29-Sep-2012 Andreas Huber <andih@google.com> Even cleaner shutdown.

Change-Id: I5a76f83db3a5e43f55eb4e04269d890c2015bae7
related-to-bug: 7247918
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
3a0ef0dc71f3776d115f30d87f1d8867daefea88 28-Sep-2012 Andreas Huber <andih@google.com> Tell the encoder to emit SPS/PPS before IDR frames in wifi display code.

Change-Id: Ic40e09b66784dd2e370d30b688d50561a47ab85a
related-to-bug: 7245308
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
e399acc9d9f3b7af72106c4209e4bb40de37aa6a 27-Sep-2012 Andreas Huber <andih@google.com> Prepend SPS/PPS manually before encryption in HDCP mode. This is

a temporary change that will go away once the encoder can take care
of this.

Change-Id: Id65218f8a250d8c8fe3e8987b522065b5f5d7dca
related-to-bug: 7245308
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
019aabab44e396d9a68c8126c9e0745162a4603a 26-Sep-2012 Andreas Huber <andih@google.com> Logic to include HDCP specific PES extra header data was backwards.

Change-Id: I85ab02f0c3ab945093b27210da1e36a31c022da5
related-to-bug: 7237850
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
92f655fe351a5f2eb7d36123d2b687d6e7e3e913 24-Sep-2012 Andreas Huber <andih@google.com> Add some more logging, reduce startup delay to 1 sec.

Change-Id: Ic24a3d9e3e645288411efb46f7004d89e7a0a4b7
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.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/PlaybackSession.cpp
dca352880e210e0ca0ff39de074540d3640ecfab 13-Sep-2012 Andreas Huber <andih@google.com> Better video bandwidth utilization by not lying about the frame rate.

log network bandwidth used (for data traffic).

Change-Id: I043018624b3f02d94fa9c0cb9d15a6b2f2bd2eab
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
5a832f87b680ead3606c4448a0a82c0e556d1b93 12-Sep-2012 Andreas Huber <andih@google.com> Use proper number of video buffers to be acquired simultaneously from

SurfaceMediaSource, this should match the number of encoder input buffers.

Change-Id: Ibeb102337fd23698c5321c63dd3cb00b93e632b0
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
e1957358f11031a554c57d4fb46988dd6044acc1 12-Sep-2012 Andreas Huber <andih@google.com> Various improvements to the wifi display implementation.

Using a MediaPuller now, audio and video on their separate threads.
No more flushing the RTP stream on audio tracks, since it wastes too much
of a full size UDP packet.

Change-Id: I53346b4aea739c3142da13bd179428503a3c98b0
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
1646a0fed94c30a44128b3c379736def4b332033 10-Sep-2012 Andreas Huber <andih@google.com> Enable audio streaming to a wifi display. Remove startup delay hack.

Change-Id: I2e163db1595bb504de3a2e99cace191aa90708ca
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
ef49e2fdb1f776229a4be05aa9952a1107e94f51 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Revert max buffers change.

Attempting to use 31 buffers crashes on Prime.

Bug: 7131413
Change-Id: Ib85aef9b1da01f7243bd781a0efa47de2970412d
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
7977e85f7287f2b0e7a5de94e853e6073736e03b 08-Sep-2012 Andreas Huber <andih@google.com> Make wfd code work with both old and new dongles.

Change-Id: Idc750dc334c47a171791587dd7e7281d565ff566
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
66e72bc85fb762876baff60ef29de729da93cf26 05-Sep-2012 Andreas Huber <andih@google.com> Configure the SurfaceMediaSource to emit the same number of buffers

as the video encoder allocates for its input. Do this before connecting
the bufferqueue through surface flinger.

Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp
082830f92373a1b9e512dbbfb940187ffa1c2c6f 30-Aug-2012 Andreas Huber <andih@google.com> Prepare for transmitting audio through AudioSource.

AudioSource can now be configured to output buffers timestamped based
on looper time (absolute) instead of based on systemTime() relative to
start time.

Change-Id: I8eca42648eb50033ac4aafbe5daac64a98a40690
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
e05a679401c7baeb0f82ce105eb20ae1ec863cdf 30-Aug-2012 Andreas Huber <andih@google.com> Transmit frames at a higher frame rate for smoother updates, increase

video bandwidth to 5 Mbit/sec.

Change-Id: Ieb9051b0f29d5a20004d1b3befdb745bc67769c7
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
774df0dce0116c69b6d17f2e4a4912e06138e575 30-Aug-2012 Andreas Huber <andih@google.com> Optionally log the transport stream transmitted to the sink.

Change-Id: I5d392e7997d6beb09ba6eca70d6899747098d2b3
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.cpp
2dff0f6a7bf06a878ad0890d93dc9c1ef0b5a107 30-Aug-2012 Andreas Huber <andih@google.com> Fix wifi display shutdown deadlock.

Change-Id: I77eed39f39c0de6b427c425248ff7d21c051c074
/frameworks/av/media/libstagefright/wifi-display/source/PlaybackSession.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/PlaybackSession.cpp