Skip to content

Commit 4233b80

Browse files
author
zhaoyongqiang
committed
update videoFrameDelegate method
1 parent ff3ab37 commit 4233b80

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

iOS/APIExample/APIExample/Examples/Advanced/ThirdBeautify/ByteBeautify/BytedEffectVC.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ - (BOOL)onCaptureVideoFrame:(AgoraOutputVideoFrame *)videoFrame {
9494
return YES;
9595
}
9696

97-
- (AgoraVideoFormat)getVideoPixelFormatPreference{
98-
return AgoraVideoFormatCVPixelBGRA;
97+
- (AgoraVideoFormat)getVideoFormatPreference {
98+
return AgoraVideoFormatCVPixelNV12;
9999
}
100+
100101
- (AgoraVideoFrameProcessMode)getVideoFrameProcessMode{
101102
return AgoraVideoFrameProcessModeReadWrite;
102103
}

iOS/APIExample/APIExample/Examples/Advanced/ThirdBeautify/ByteBeautify/Manager/BEFrameProcessor.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ - (instancetype)initWithContext:(EAGLContext *)context resourceDelegate:(id<BERe
5858
_effectOn = YES;
5959
_shouldResetComposer = YES;
6060
_pixelBufferAccelerate = YES;
61-
_processorResult = BETexture;
61+
_processorResult = BECVPixelBuffer;
6262
_faceInfo = NULL;
6363
_handInfo = NULL;
6464
_skeletonInfo = NULL;

iOS/APIExample/APIExample/Examples/Advanced/ThirdBeautify/FUBeautify/FUBeautifyVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ - (BOOL)onCaptureVideoFrame:(AgoraOutputVideoFrame *)videoFrame {
8888
return YES;
8989
}
9090

91-
- (AgoraVideoFormat)getVideoPixelFormatPreference{
91+
- (AgoraVideoFormat)getVideoFormatPreference{
9292
return AgoraVideoFormatRGBA;
9393
}
9494
- (AgoraVideoFrameProcessMode)getVideoFrameProcessMode{

iOS/APIExample/APIExample/Examples/Advanced/ThirdBeautify/SenseBeautify/SenseBeautifyVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ - (BOOL)onCaptureVideoFrame:(AgoraOutputVideoFrame *)videoFrame {
104104
return YES;
105105
}
106106

107-
- (AgoraVideoFormat)getVideoPixelFormatPreference{
107+
- (AgoraVideoFormat)getVideoFormatPreference{
108108
return AgoraVideoFormatCVPixelNV12;
109109
}
110110
- (AgoraVideoFrameProcessMode)getVideoFrameProcessMode{

0 commit comments

Comments
 (0)