public unsafe VP8Encoder(global::Org.Jcodec.Codecs.Vpx.IRateControl p0)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                if (GetType() != typeof(VP8Encoder))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/codecs/vpx/RateControl;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/codecs/vpx/RateControl;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_codecs_vpx_RateControl_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_codecs_vpx_RateControl_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/codecs/vpx/RateControl;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_codecs_vpx_RateControl_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_codecs_vpx_RateControl_, __args);
            } finally {
            }
        }
Beispiel #2
0
 static int n_GetSegment(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Vpx.IRateControl __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Vpx.IRateControl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.Segment);
 }
Beispiel #3
0
 static void n_Reset(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Vpx.IRateControl __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Vpx.IRateControl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Reset();
 }
Beispiel #4
0
 static IntPtr n_GetSegmentQps(IntPtr jnienv, IntPtr native__this)
 {
     global::Org.Jcodec.Codecs.Vpx.IRateControl __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Vpx.IRateControl> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewArray(__this.GetSegmentQps()));
 }