android wifi display屏幕分辨率修改
2016-11-11 23:00
1416 查看
/frameworks/av/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp
52 WifiDisplaySource::WifiDisplaySource( 53 const String16 &opPackageName, 54 const sp<ANetworkSession> &netSession, 55 const sp<IRemoteDisplayClient> &client, 56 const char *path) 57 : mOpPackageName(opPackageName), 58 mState(INITIALIZED), 59 mNetSession(netSession), 60 mClient(client), 61 mSessionID(0), 62 mStopReplyID(NULL), 63 mChosenRTPPort(-1), 64 mUsingPCMAudio(false), 65 mClientSessionID(0), 66 mReaperPending(false), 67 mNextCSeq(1), 68 mUsingHDCP(false), 69 mIsHDCP2_0(false), 70 mHDCPPort(0), 71 mHDCPInitializationComplete(false), 72 mSetupTriggerDeferred(false), 73 mPlaybackSessionEstablished(false) { 74 if (path != NULL) { 75 mMediaPath.setTo(path); 76 } 77 78 mSupportedSourceVideoFormats.disableAll(); 79 80 mSupportedSourceVideoFormats.setNativeResolution( 81 VideoFormats::RESOLUTION_CEA, 5); // 1280x720 p30 82 83 // Enable all resolutions up to 1280x720p30 84 mSupportedSourceVideoFormats.enableResolutionUpto( 85 VideoFormats::RESOLUTION_CEA, 5, 86 VideoFormats::PROFILE_CHP, // Constrained High Profile 87 VideoFormats::LEVEL_32); // Level 3.2 88 }
enum ProfileType { PROFILE_CBP = 0, PROFILE_CHP, kNumProfileTypes, }; enum LevelType { LEVEL_31 = 0, LEVEL_32, LEVEL_40, LEVEL_41, LEVEL_42, kNumLevelTypes, }; enum ResolutionType { RESOLUTION_CEA, RESOLUTION_VESA, RESOLUTION_HH, kNumResolutionTypes, }; 美国消费电子协会(CEA),据CEA的更新定义,超高清电视、显示器和投影机必须至少拥有800万有效像素,分辨率达到3,840 x 2,160,能够播放超高清视频,拥有至少一个能够支持至少3840x2160分辨率的HDMI输入,最低色调深度为8比特,能够解码HDCP 2.2 DRM。
有一张表是关于分辨率表的内容
frameworks/av/media/libstagefright/wifi-display/VideoFormats.cpp
还有一个关于display的分辨率,它们都在device tree里修改,
三星64位7420的设置如下:
高通的修改如下:
相关文章推荐
- android 修改底层wifi 文件信息
- Android WifiDisplay分析二:Wifi display连接过程
- 详解Android通过修改配置文件设置wifi密码
- Android WifiDisplay分析二:Wifi display连接过程
- Android 获取手机Wifi地址和Gprs地址,反射修改Wifi地址
- Android 如何修改wifi连接失败后自动重连次数?
- Android WIFI源码思路(对文章进行一些修改,以适于Android4.0版本)
- Android通过修改配置文件设置wifi密码
- Android WifiDisplay分析一:相关Service的启动(转载)
- 关于修改Android标准WIFI的API
- m8 android wifi 出错 修改 权限
- Android 4.2 Wifi Display之Settings源码分析(二)
- Android安卓一键修改手机信息imei sim serial mac wifi 手机型号等等
- Android WiFi Display or DisplayManager 分析的两篇文章
- Android WIFI热点默认安全性的修改方法
- Android 4.2 WiFi Display 框架
- android 修改wifi设备名
- Android 4.2wifidisplay采集
- Android安卓一键修改手机信息imei sim serial mac wifi 手机型号等等
- Android WifiDisplay分析二:Wifi display连接过程