Results 1 issues of 4940654

_kit.cameraPosition = AVCaptureDevicePositionFront; _kit.gpuOutputPixelFormat = kCVPixelFormatType_420YpCbCr8Planar; _kit.capturePixelFormat = kCVPixelFormatType_420YpCbCr8Planar; _kit.videoProcessingCallback = ^(CMSampleBufferRef buf){ // 在此处添加自定义图像处理, 直接修改buf中的图像数据会传递到观众端 // 或复制图像数据之后再做其他处理, 则观众端仍然看到处理前的图像 // NSLog(@"videoProcessingCallback"); //kCVPixelFormatType_32ABGR //kCVPixelFormatType_32RGBA //获取视频缓冲区地址 CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(buf); CVPixelBufferLockBaseAddress(imageBuffer, 0);...