I have written a video player using SlimDX and DirectShow which is displaying the video on a SlimDX texture.
I am extracting the video frames using the ISampleGrabberCB interface from DirectShow and storing them in a byte array, writing the array into the texture whenever a new frame is available.
The problem is that my video is exhibiting tearing when playing a high definition video, but displays correctly for normal video playback, what can the causes for this problem be, and what possible solutions are there for displaying high definition video from DirectShow via SlimDX?
_OutputFrame.LockRectangle(i, LockFlags.Discard).Data.WriteRange<byte>_VideoFrameBytes);
_OutputFrame.UnlockRectangle(i);