android wifi display屏幕分辨率修改

/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的设置如下:

高通的修改如下:


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shichaog

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值