static void n_EncodePicture_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayILorg_jcodec_common_model_Picture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3, IntPtr native_p4) { global::Org.Jcodec.Codecs.Prores.ProresEncoder __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Prores.ProresEncoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Nio.ByteBuffer p0 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer); int[][] p1 = (int[][])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(int[])); int[][] p2 = (int[][])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(int[])); int[] p3 = (int[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(int)); global::Org.Jcodec.Common.Model.Picture p4 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p4, JniHandleOwnership.DoNotTransfer); __this.EncodePicture(p0, p1, p2, p3, p4); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } if (p2 != null) { JNIEnv.CopyArray(p2, native_p2); } if (p3 != null) { JNIEnv.CopyArray(p3, native_p3); } }
public virtual unsafe void Transform(global::Org.Jcodec.Common.Model.Picture p0, global::Org.Jcodec.Common.Model.Picture p1) { if (id_transform_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_ == IntPtr.Zero) { id_transform_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "transform", "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/Picture;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_transform_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "transform", "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/Picture;)V"), __args); } } finally { } }
public virtual unsafe void Yuv42210BitTObgr24(global::Org.Jcodec.Common.Model.Picture p0, global::Java.Nio.ByteBuffer p1) { if (id_yuv42210BitTObgr24_Lorg_jcodec_common_model_Picture_Ljava_nio_ByteBuffer_ == IntPtr.Zero) { id_yuv42210BitTObgr24_Lorg_jcodec_common_model_Picture_Ljava_nio_ByteBuffer_ = JNIEnv.GetMethodID(class_ref, "yuv42210BitTObgr24", "(Lorg/jcodec/common/model/Picture;Ljava/nio/ByteBuffer;)V"); } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_yuv42210BitTObgr24_Lorg_jcodec_common_model_Picture_Ljava_nio_ByteBuffer_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "yuv42210BitTObgr24", "(Lorg/jcodec/common/model/Picture;Ljava/nio/ByteBuffer;)V"), __args); } } finally { } }
public virtual unsafe bool Compatible(global::Org.Jcodec.Common.Model.Picture p0) { if (id_compatible_Lorg_jcodec_common_model_Picture_ == IntPtr.Zero) { id_compatible_Lorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "compatible", "(Lorg/jcodec/common/model/Picture;)Z"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_compatible_Lorg_jcodec_common_model_Picture_, __args); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "compatible", "(Lorg/jcodec/common/model/Picture;)Z"), __args); } return(__ret); } finally { } }
public virtual unsafe global::Java.Nio.ByteBuffer EncodeFrame(global::Org.Jcodec.Common.Model.Picture p0) { if (id_encodeFrame_Lorg_jcodec_common_model_Picture_ == IntPtr.Zero) { id_encodeFrame_Lorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "encodeFrame", "(Lorg/jcodec/common/model/Picture;)Ljava/nio/ByteBuffer;"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); global::Java.Nio.ByteBuffer __ret; if (GetType() == ThresholdType) { __ret = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_encodeFrame_Lorg_jcodec_common_model_Picture_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "encodeFrame", "(Lorg/jcodec/common/model/Picture;)Ljava/nio/ByteBuffer;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }
static int n_EncodeSlice_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayIIIILorg_jcodec_common_model_Picture_IIIZ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2, IntPtr native_p3, int p4, int p5, int p6, IntPtr native_p7, int p8, int p9, int p10, bool p11) { global::Org.Jcodec.Codecs.Prores.ProresEncoder __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.Prores.ProresEncoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Nio.ByteBuffer p0 = global::Java.Lang.Object.GetObject <global::Java.Nio.ByteBuffer> (native_p0, JniHandleOwnership.DoNotTransfer); int[][] p1 = (int[][])JNIEnv.GetArray(native_p1, JniHandleOwnership.DoNotTransfer, typeof(int[])); int[][] p2 = (int[][])JNIEnv.GetArray(native_p2, JniHandleOwnership.DoNotTransfer, typeof(int[])); int[] p3 = (int[])JNIEnv.GetArray(native_p3, JniHandleOwnership.DoNotTransfer, typeof(int)); global::Org.Jcodec.Common.Model.Picture p7 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p7, JniHandleOwnership.DoNotTransfer); int __ret = __this.EncodeSlice(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); if (p1 != null) { JNIEnv.CopyArray(p1, native_p1); } if (p2 != null) { JNIEnv.CopyArray(p2, native_p2); } if (p3 != null) { JNIEnv.CopyArray(p3, native_p3); } return(__ret); }
static IntPtr n_Cropped(IntPtr jnienv, IntPtr native__this) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.Cropped())); }
static void n_CopyFrom_Lorg_jcodec_common_model_Picture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Picture p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p0, JniHandleOwnership.DoNotTransfer); __this.CopyFrom(p0); }
static int n_GetHeight(IntPtr jnienv, IntPtr native__this) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.Height); }
static void n_SetCrop_Lorg_jcodec_common_model_Rect_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Rect p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Rect> (native_p0, JniHandleOwnership.DoNotTransfer); __this.Crop = p0; }
public virtual unsafe void DecodeMBlockIPCM(global::Org.Jcodec.Common.IO.BitReader p0, int p1, global::Org.Jcodec.Common.Model.Picture p2) { if (id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_ == IntPtr.Zero) { id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "decodeMBlockIPCM", "(Lorg/jcodec/common/io/BitReader;ILorg/jcodec/common/model/Picture;)V"); } try { JValue *__args = stackalloc JValue [3]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_decodeMBlockIPCM_Lorg_jcodec_common_io_BitReader_ILorg_jcodec_common_model_Picture_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "decodeMBlockIPCM", "(Lorg/jcodec/common/io/BitReader;ILorg/jcodec/common/model/Picture;)V"), __args); } } finally { } }
static void n_DeblockFrame_Lorg_jcodec_common_model_Picture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Codecs.H264.Decode.Deblock.DeblockingFilter __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Codecs.H264.Decode.Deblock.DeblockingFilter> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Picture p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p0, JniHandleOwnership.DoNotTransfer); __this.DeblockFrame(p0); }
protected virtual unsafe int EncodeSlice(global::Java.Nio.ByteBuffer p0, int[][] p1, int[][] p2, int[] p3, int p4, int p5, int p6, global::Org.Jcodec.Common.Model.Picture p7, int p8, int p9, int p10, bool p11) { if (id_encodeSlice_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayIIIILorg_jcodec_common_model_Picture_IIIZ == IntPtr.Zero) { id_encodeSlice_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayIIIILorg_jcodec_common_model_Picture_IIIZ = JNIEnv.GetMethodID(class_ref, "encodeSlice", "(Ljava/nio/ByteBuffer;[[I[[I[IIIILorg/jcodec/common/model/Picture;IIIZ)I"); } IntPtr native_p1 = JNIEnv.NewArray(p1); IntPtr native_p2 = JNIEnv.NewArray(p2); IntPtr native_p3 = JNIEnv.NewArray(p3); try { JValue *__args = stackalloc JValue [12]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); __args [6] = new JValue(p6); __args [7] = new JValue(p7); __args [8] = new JValue(p8); __args [9] = new JValue(p9); __args [10] = new JValue(p10); __args [11] = new JValue(p11); int __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallIntMethod(((global::Java.Lang.Object) this).Handle, id_encodeSlice_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayIIIILorg_jcodec_common_model_Picture_IIIZ, __args); } else { __ret = JNIEnv.CallNonvirtualIntMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "encodeSlice", "(Ljava/nio/ByteBuffer;[[I[[I[IIIILorg/jcodec/common/model/Picture;IIIZ)I"), __args); } return(__ret); } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } } }
protected virtual unsafe void EncodePicture(global::Java.Nio.ByteBuffer p0, int[][] p1, int[][] p2, int[] p3, global::Org.Jcodec.Common.Model.Picture p4) { if (id_encodePicture_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayILorg_jcodec_common_model_Picture_ == IntPtr.Zero) { id_encodePicture_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayILorg_jcodec_common_model_Picture_ = JNIEnv.GetMethodID(class_ref, "encodePicture", "(Ljava/nio/ByteBuffer;[[I[[I[ILorg/jcodec/common/model/Picture;)V"); } IntPtr native_p1 = JNIEnv.NewArray(p1); IntPtr native_p2 = JNIEnv.NewArray(p2); IntPtr native_p3 = JNIEnv.NewArray(p3); try { JValue *__args = stackalloc JValue [5]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_encodePicture_Ljava_nio_ByteBuffer_arrayarrayIarrayarrayIarrayILorg_jcodec_common_model_Picture_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "encodePicture", "(Ljava/nio/ByteBuffer;[[I[[I[ILorg/jcodec/common/model/Picture;)V"), __args); } } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } } }
static IntPtr n_GetPlaneData_I(IntPtr jnienv, IntPtr native__this, int p0) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewArray(__this.GetPlaneData(p0))); }
static int n_GetPlaneWidth_I(IntPtr jnienv, IntPtr native__this, int p0) { global::Org.Jcodec.Common.Model.Picture __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.GetPlaneWidth(p0)); }
protected static unsafe void EncodeSliceData(global::Java.Nio.ByteBuffer p0, int[] p1, int[] p2, int[] p3, int p4, global::Org.Jcodec.Common.Model.Picture p5, int p6, int[] p7) { if (id_encodeSliceData_Ljava_nio_ByteBuffer_arrayIarrayIarrayIILorg_jcodec_common_model_Picture_IarrayI == IntPtr.Zero) { id_encodeSliceData_Ljava_nio_ByteBuffer_arrayIarrayIarrayIILorg_jcodec_common_model_Picture_IarrayI = JNIEnv.GetStaticMethodID(class_ref, "encodeSliceData", "(Ljava/nio/ByteBuffer;[I[I[IILorg/jcodec/common/model/Picture;I[I)V"); } IntPtr native_p1 = JNIEnv.NewArray(p1); IntPtr native_p2 = JNIEnv.NewArray(p2); IntPtr native_p3 = JNIEnv.NewArray(p3); IntPtr native_p7 = JNIEnv.NewArray(p7); try { JValue *__args = stackalloc JValue [8]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(native_p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); __args [6] = new JValue(p6); __args [7] = new JValue(native_p7); JNIEnv.CallStaticVoidMethod(class_ref, id_encodeSliceData_Ljava_nio_ByteBuffer_arrayIarrayIarrayIILorg_jcodec_common_model_Picture_IarrayI, __args); } finally { if (p1 != null) { JNIEnv.CopyArray(native_p1, p1); JNIEnv.DeleteLocalRef(native_p1); } if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } if (p3 != null) { JNIEnv.CopyArray(native_p3, p3); JNIEnv.DeleteLocalRef(native_p3); } if (p7 != null) { JNIEnv.CopyArray(native_p7, p7); JNIEnv.DeleteLocalRef(native_p7); } } }
static void n_EncodeNativeFrame_Lorg_jcodec_common_model_Picture_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Org.Jcodec.Api.SequenceEncoder __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Api.SequenceEncoder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Org.Jcodec.Common.Model.Picture p0 = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Model.Picture> (native_p0, JniHandleOwnership.DoNotTransfer); __this.EncodeNativeFrame(p0); }
public static unsafe void GetBlockLuma(global::Org.Jcodec.Common.Model.Picture p0, global::Org.Jcodec.Common.Model.Picture p1, int p2, int p3, int p4, int p5, int p6) { if (id_getBlockLuma_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_IIIII == IntPtr.Zero) { id_getBlockLuma_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_IIIII = JNIEnv.GetStaticMethodID(class_ref, "getBlockLuma", "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/Picture;IIIII)V"); } try { JValue *__args = stackalloc JValue [7]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); __args [2] = new JValue(p2); __args [3] = new JValue(p3); __args [4] = new JValue(p4); __args [5] = new JValue(p5); __args [6] = new JValue(p6); JNIEnv.CallStaticVoidMethod(class_ref, id_getBlockLuma_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_Picture_IIIII, __args); } finally { } }