new GlRectDrawer());videoCapturerSurfaceTextureHelper = SurfaceTextureHelper.create("VideoCapturerThread", eglBase.getEglBaseContext());```步骤六、设置采集数据回调方法,参考代码如下:```e... (TextureBufferImpl) frame.getBuffer(), /* mirror= */ isCameraFrontFacing, /* rotation= */ -cameraOrientation), ...
PixelFormat 视频帧像素格式 width int 视频帧的宽度,单位为 px height int 视频帧的高度,单位为 px pts long 视频帧的渲染时间戳,单位为 ms texture VeLivePlayerVideoTexture 当 bufferType 为 VeLivePlayerVideoBufferTypeTexture 时的视频数据,承载用于 OpenGL 渲染的纹理数据 buffer ByteBuffer 当 bufferType 为 VeLivePlayerVideoBufferTypeByteBuffer 时的视频数据,承载用于 JNI 层的 Direct Buffer data byte[] 当 buff...
它只能处理 2D 纹理并将结果输出到传入的 2D 纹理 outputTexture 中,如果当前的项目中无法直接拿到 2D 纹理,可以先试用 BEImageUtils 进行格式转换,这个类可以进行 CVPixelBuffer/Texture/Buffer 几种数据的转换,可... 如果自己项目中暂时没有将 CV SDK 处理后的图像绘制到屏幕上的方法,可以使用这个类。然后通过下面的方法绘制纹理: objc - (void)renderWithTexture:(unsigned int)name size:(CGSize)size ...
音量随距离增大进行指数衰减 RTCVideoEngineParams csharp public struct bytertc.RTCVideoEngineParams引擎初始化参数 Defined in : IRTCVideo.cs 成员变量类型 名称 AppID 应用 ID。 Params 初始化参数。 AudioP... 为保证图片内容不变形,图片按短边缩放至与视频帧一致,使图片填满视频帧,对多出的高或宽进行剪裁。+ 自定义图片带有局部透明效果时,透明部分由黑色代替。 ZoomConfigType csharp public enum bytertc.ZoomConfigTyp...
CVPixelBufferRef copyPixelBuffer BOOL isSupportHDR BOOL isSupportSR void setFFmpegProtocol: void snapshot: 变量说明 playbackSpeedobjectivec @property (nonatomic, assign) CGFloat playbackSpeed;设置播... 静态函数返回 名称 BOOL debugToolIsShowing void showDebugTool: void showDebugTool:inRect: void refreshCurrentVideoEngine: void removeDebugTool 函数说明 debugToolIsShowingobjectivec + (BOOL)debugTool...
Interval 为 10,表示每 10 秒截取一张缩略小图,一共截取 27 张,由 CaptureNum 表示。// 每张雪碧大图包含 5*5 = 25 张缩略小图,所以需要 2 张雪碧大图。// 两张雪碧大图的 URL 可从 StoreUrls 参数中获取。[{ ... // 缩略小图总个数。@property (nonatomic, assign) NSInteger imageNum; // 每张缩略小图的宽,单位为 pixel。@property (nonatomic, assign) NSInteger imageXSize;// 每张缩略小图的高,单位为 pixel。@property ...
@end@implementation CustomVideoRenderView/** * 视频帧回调 * @param pixelBuffer 视频的 PixelBuffer * @param rotation 视频旋转角度,参看 ByteRTCVideoRotation * @param contentType 视频内部类型 参看 Byte... CVImageBuffer:pixelBuffer]]; imageView.contentMode = UIViewContentModeScaleAspectFill; switch (rotation) { case VideoRotation_0: imageView.transform = CGAffin...
new GlRectDrawer());videoCapturerSurfaceTextureHelper = SurfaceTextureHelper.create("VideoCapturerThread", eglBase.getEglBaseContext());```步骤六、设置采集数据回调方法,参考代码如下:```e... (TextureBufferImpl) frame.getBuffer(), /* mirror= */ isCameraFrontFacing, /* rotation= */ -cameraOrientation), ...
buffer, BEF_AI_PIX_FMT_BGRA8888, width, height, ... bef_ai_pixel_format pixel_format, int image_width, int image_height, int image_stride, bef_ai_rotate_type orientation, unsigned long long detect_config, bef_ai_face_info *p_face_info);参数说明 参数名...
因此我们建议使用glTexture2D作为输入,从而减少数据在CPU内存和显存中进出导致的时间损耗;如果使用其他格式的数据作为输入,我们在底层使用Shader完成buffer数据向纹理的转换,再执行特效处理,这种方式会增加性能开销... bef_ai_pixel_format fmt_in, int image_width, int image_height, int image_stride, double timestamp);参数说明 参数名 参数类型 参数说明 handle bef_effect_handle_t 已...