video/image gets flipped by video renderer

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have search posts regarding this issue and I cannot seem to find the
desired answer. Basically I built my own filter using DSWizard as a
template, wrote my own transform function, used GetVideoInfoParameters
DBI helper function to take care of the top-down or bottom-up image
issue. I ran the code and everything seems to work correctly EXCEPT
when the data gets pass to the Video Renderer the image somehow gets
flipped, hence displaying the image upside-down. I can also see it in
the pin property of the filter and video renderer that prior to
pressing the play button the height of the image is always positive,
after I press the play button the height value in the Video Renderer
gets flipped to negative and the height value on the outpin of my
filter stays positive.

And my graph basically flows like this: "some video file"->"some
decoder then my filter"->"video renderer"

.


Quantcast