summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/wifi-display/source
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-03-07 23:56:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-07 23:56:17 +0000
commit2797b47f8a74b902d445cd89755e2349136a8b6b (patch)
tree61cd8a59c557cd84b1bfa986d87167cac5751124 /media/libstagefright/wifi-display/source
parent6472c2af1de21a65dc214751b0ef1d7564c28be1 (diff)
parent5abf87f9af48149972eeb851ecaea679911da040 (diff)
downloadframeworks_av-2797b47f8a74b902d445cd89755e2349136a8b6b.zip
frameworks_av-2797b47f8a74b902d445cd89755e2349136a8b6b.tar.gz
frameworks_av-2797b47f8a74b902d445cd89755e2349136a8b6b.tar.bz2
Merge "Disable our fancy logic to respect both sink and source's native formats" into jb-mr2-dev
Diffstat (limited to 'media/libstagefright/wifi-display/source')
-rw-r--r--media/libstagefright/wifi-display/source/WifiDisplaySource.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
index 07eb237..b8524f6 100644
--- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
+++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
@@ -59,18 +59,10 @@ WifiDisplaySource::WifiDisplaySource(
mHDCPPort(0),
mHDCPInitializationComplete(false),
mSetupTriggerDeferred(false) {
- mSupportedSourceVideoFormats.enableAll();
+ mSupportedSourceVideoFormats.disableAll();
mSupportedSourceVideoFormats.setNativeResolution(
VideoFormats::RESOLUTION_CEA, 5); // 1280x720 p30
-
- // Disable resolutions above 1080p since the encoder won't be able to
- // handle them.
- mSupportedSourceVideoFormats.setResolutionEnabled(
- VideoFormats::RESOLUTION_VESA, 28, false); // 1920x1200 p30
-
- mSupportedSourceVideoFormats.setResolutionEnabled(
- VideoFormats::RESOLUTION_VESA, 29, false); // 1920x1200 p60
}
WifiDisplaySource::~WifiDisplaySource() {
@@ -607,7 +599,7 @@ status_t WifiDisplaySource::sendM4(int32_t sessionID) {
chosenVideoFormat.setNativeResolution(
mChosenVideoResolutionType, mChosenVideoResolutionIndex);
- body.append(chosenVideoFormat.getFormatSpec());
+ body.append(chosenVideoFormat.getFormatSpec(true /* forM4Message */));
body.append("\r\n");
}