Exemple #1
0
 public NREncoder(NativeEncodeConfig config)
 {
     EncodeConfig  = new NativeEncodeConfig(config);
     NativeEncoder = new NativeEncoder();
     NativeEncoder.Create();
 }
Exemple #2
0
        public void SetConfigration(NativeEncodeConfig config)
        {
            var result = NativeApi.HWEncoderSetConfigration(EncodeHandle, LitJson.JsonMapper.ToJson(config));

            NRDebugger.Log("[Encode] SetConfigration :" + (result == 0).ToString());
        }
Exemple #3
0
 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();
 }