public NREncoder(NativeEncodeConfig config) { EncodeConfig = new NativeEncodeConfig(config); NativeEncoder = new NativeEncoder(); NativeEncoder.Create(); }
public void SetConfigration(NativeEncodeConfig config) { var result = NativeApi.HWEncoderSetConfigration(EncodeHandle, LitJson.JsonMapper.ToJson(config)); NRDebugger.Log("[Encode] SetConfigration :" + (result == 0).ToString()); }
public NREncoder(int width, int height, int bitRate, int fps, CodecType codectype, string path) { EncodeConfig = new NativeEncodeConfig(width, height, bitRate, fps, codectype, path); NativeEncoder = new NativeEncoder(); NativeEncoder.Create(); }