/// <summary> /// Sets the frame containing the data to be uploaded. /// </summary> /// <param name="frame">The frame to upload.</param> /// <param name="freeFrameDelegate">A function to free the frame on disposal.</param> internal VideoTextureUpload(AVFrame *frame, FFmpegFuncs.AvFrameFreeDelegate freeFrameDelegate) { Frame = frame; this.freeFrameDelegate = freeFrameDelegate; }
/// <summary> /// Sets the frame cotaining the data to be uploaded /// </summary> /// <param name="frame">The libav frame to upload.</param> /// <param name="free">A function to free the frame on disposal.</param> public VideoTextureUpload(AVFrame *frame, FFmpegFuncs.AvFrameFreeDelegate free) : base(0, 0) { Frame = frame; freeFrame = free; }