/// <summary> /// Returns the specified VideoWriter property /// </summary> /// <param name="propId"> Property identifier from cv::VideoWriterProperties (eg. cv::VIDEOWRITER_PROP_QUALITY) or one of @ref videoio_flags_others</param> /// <returns>Value for the specified property. Value 0 is returned when querying a property that is not supported by the backend used by the VideoWriter instance.</returns> public double Get(VideoWriterProperties propId) { ThrowIfDisposed(); NativeMethods.HandleException( NativeMethods.videoio_VideoWriter_get(ptr, (int)propId, out var ret)); GC.KeepAlive(this); return(ret); }
/// <summary> /// Sets a property in the VideoWriter. /// </summary> /// <param name="propId">Property identifier from cv::VideoWriterProperties (eg. cv::VIDEOWRITER_PROP_QUALITY) or one of @ref videoio_flags_others</param> /// <param name="value">Value of the property.</param> /// <returns>`true` if the property is supported by the backend used by the VideoWriter instance.</returns> public bool Set(VideoWriterProperties propId, double value) { ThrowIfDisposed(); NativeMethods.HandleException( NativeMethods.videoio_VideoWriter_set(ptr, (int)propId, value, out var ret)); GC.KeepAlive(this); return(ret != 0); }