android wifi display屏幕分辨率修改

来源:互联网 发布:如何手机投诉淘宝卖家 编辑:程序博客网 时间:2024/06/08 05:25
/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的设置如下:

高通的修改如下:


0 0