public distortion_metric(distortion_metric_header header) : this(c_csharp_metricsPINVOKE.new_distortion_metric__SWIG_1(distortion_metric_header.getCPtr(header)), true) { if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve(); } }
public base_distortion_metrics(vector_distortion_metrics vec, short version, distortion_metric_header header) : this(c_csharp_metricsPINVOKE.new_base_distortion_metrics__SWIG_4(vector_distortion_metrics.getCPtr(vec), version, distortion_metric_header.getCPtr(header)), true) { if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve(); } }
public void populate_coefficients_for(distortion_metric_header header, uint channel, uint curve_index, float_vector coeff) { c_csharp_metricsPINVOKE.distortion_metric_populate_coefficients_for__SWIG_0(swigCPtr, distortion_metric_header.getCPtr(header), channel, curve_index, float_vector.getCPtr(coeff)); if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve(); } }
public float absolute_distortion(distortion_metric_header header, uint channel, uint curve_index, uint image_width) { float ret = c_csharp_metricsPINVOKE.distortion_metric_absolute_distortion(swigCPtr, distortion_metric_header.getCPtr(header), channel, curve_index, image_width); if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void populate_coefficients_for(distortion_metric_header header, uint channel, uint curve_index, float[] buffer, uint arg4) { unsafe { fixed(float *swig_ptrTo_buffer = buffer) { { c_csharp_metricsPINVOKE.distortion_metric_populate_coefficients_for__SWIG_1(swigCPtr, distortion_metric_header.getCPtr(header), channel, curve_index, (global::System.IntPtr)swig_ptrTo_buffer, arg4); if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve(); } } } } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(distortion_metric_header obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public new static distortion_metric_header default_header() { distortion_metric_header ret = new distortion_metric_header(c_csharp_metricsPINVOKE.distortion_metric_header_default_header(), true); return(ret); }