1. 程式人生 > >直播一對一原始碼主播美顏SDK程式碼分享

直播一對一原始碼主播美顏SDK程式碼分享

這是一篇關於直播一對一原始碼主播美顏SDK程式碼分析,僅供碼農參考。
/**

  • Created by cxf on 2017/9/1.
  • 直播一對一原始碼主播直播間美顏,濾鏡等效果
    */

case BeautySettingPannel.BEAUTYPARAM_EXPOSURE:
if (mLivePusher != null) {
mLivePusher.setExposureCompensation(params.mExposure);
}
break;
case BeautySettingPannel.BEAUTYPARAM_BEAUTY:
if (mLivePusher != null) {
mLivePusher.setBeautyFilter(params.mBeautyStyle, params.mBeautyLevel, params.mWhiteLevel, params.mRuddyLevel);
}
break;
case BeautySettingPannel.BEAUTYPARAM_WHITE:
if (mLivePusher != null) {
mLivePusher.setBeautyFilter(params.mBeautyStyle, params.mBeautyLevel, params.mWhiteLevel, params.mRuddyLevel);
}
break;
case BeautySettingPannel.BEAUTYPARAM_BIG_EYE:
if (mLivePusher != null) {
mLivePusher.setEyeScaleLevel(params.mBigEyeLevel);
}
break;
case BeautySettingPannel.BEAUTYPARAM_FACE_LIFT:
if (mLivePusher != null) {
mLivePusher.setFaceSlimLevel(params.mFaceSlimLevel);
}
break;
case BeautySettingPannel.BEAUTYPARAM_FILTER:
if (mLivePusher != null) {
mLivePusher.setFilter(params.mFilterBmp);
}
break;
case BeautySettingPannel.BEAUTYPARAM_GREEN:
if (mLivePusher != null) {
mLivePusher.setGreenScreenFile(params.mGreenFile);
}
break;
直播一對一原始碼間的美顏、濾鏡程式碼講解。