<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                在渲染方法里面調 `[self.menusView setupDefaultBeautyAndFaceValueWithIsTX:YES];` 例如騰訊直播 ``` #pragma mark - TXVideoCustomProcessDelegate - (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height { ? ? GLuint newTexture = texture; //? ? if (_needScale){ //? ? ? ? newTexture = [self.beautyManager processWithTexture:texture width:width height:height scale:0.75]; //? ? }else{ //? ? ? ? [self.beautyManager processWithTexture:texture width:width height:height]; //? ? } ? ? if (!self.isSetDefaultValue) { ? ? ? ? [self.menusView setupDefaultBeautyAndFaceValueWithIsTX:YES]; ? ? ? ? self.isSetDefaultValue = YES; ? ? } ? ? [self.beautyManager processWithTexture:newTexture width:width height:height]; ? ? return newTexture; } ``` 在這個方法里面設置默認值 ``` - (void)setupDefaultBeautyAndFaceValueWithIsTX:(BOOL)isTX{ ????//設置美型默認數據,按照數組的名稱設置初始值,不要換順序 ????//此處只是說明該位置對應的類型,如果打開注釋,請填寫具體數值 // ???NSArray *originalValuesArr = @[@"0",@"大眼",@"瘦臉", // ???@"嘴型", // ???@"瘦鼻", // ???@"下巴", // ???@"額頭", // ???@"眉毛", // ???@"眼角", // ???@"眼距", // ???@"開眼角", // ???@"削臉", // ???@"長鼻"]; // ???for (int i = 0; i<originalValuesArr.count; i++) { // ???????if (i != 0) { // ???????????NSString *value = originalValuesArr[i]; // ???????????[self handleFaceBeautyWithType:i sliderValue:value.integerValue]; ????// } ?????// ??NSString *faceKey = [NSString stringWithFormat:@"face_%ld",(long)i]; ??????// ?[[NSUserDefaults standardUserDefaults] setInteger:value.integerValue forKey:faceKey]; // // ???} ????//設置美顏參數,范圍是0-9 // ???NSArray *beautyArr = // ????@[@"磨皮數值",@"美白數值",@"紅潤數值"]; ?????NSString *mopi = ?@"7";//磨皮數值 ?????NSString *white = @"7";//美白數值 ?????NSString *hongrun = @"5";//紅潤數值 ????if (isTX) { ????????[self beautyLevel:mopi.intValue whitenessLevel:white.intValue ruddinessLevel:hongrun.intValue brightnessLevel:57]; ????} else { ????????[_beautyManager setBuffing:(mopi.intValue)*100/9]; ??????? [_beautyManager setSkinWhiting:(white.intValue)*100/9];//磨皮參數0到1 ????????[_beautyManager setRuddiness:(hongrun.intValue)*100/9]; } ``` 在MHBeautyView.m里面注釋掉下面的代碼就可以設置美顏的默認值 ``` NSString *beautKey = [NSString stringWithFormat:@"beauty_%ld",(long)i]; NSInteger originalValue = model.originalValue.integerValue; [[NSUserDefaults standardUserDefaults] setInteger:originalValue forKey:beautKey]; ``` 在MHBeautyFaceView.m里面的 configureFaceData方法里面注釋掉下面的代碼就可以設置美型的默認值 ``` NSString *faceKey = [NSString stringWithFormat:@"face_%ld",(long)i]; NSInteger originalValue = model.originalValue.integerValue; [[NSUserDefaults standardUserDefaults] setInteger:originalValue forKey:faceKey]; ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看