QNCaptureVideoCallback
/**
* 当绘帧时触发
*
* @param textureId 待渲染的 SurfaceTexture 对象的 texture ID
* @param width 绘制的 surface 宽度
* @param height 绘制的 surface 高度
* @param type 绘制的纹理类型,包括 OES、RGB
* @param timestampNs 该帧的时间戳,单位 Ns
* @return textureId 新创建的制定给 SurfaceTexuture 对象的 texture ID,类型必须为 GL_TEXTURE_2D
*/
int onRenderingFrame(int textureId, int width, int height, VideoFrame.TextureBuffer.Type type, long timestampNs);
/**
* 当摄像头回调一帧的数据时触发
*
* @param data 摄像头返回视频帧的 YUV 数据
* @param width 该视频帧的宽度
* @param height 该视频帧的高度
* @param rotation 该视频帧的旋转角度
* @param fmt 该视频帧的 YUV 数据类型(目前仅返回 NV21 类型)
* @param timestampNs 该帧的时间戳,单位 Ns
*/
void onPreviewFrame(byte[] data, int width, int height, int rotation, int fmt, long timestampNs);