Dear All,
I wrote a avstream video capture driver based on the avshws
driver sample code. But I found that the FormatRGB24Bpp_Capture
structure's bimHeader.biHeight is -D_Y. It's negative value. It will
fail to connect the Video renderer in graphedit. If I change it to
positive D_Y, then it can render OK. But the video is upside-down. I
searched the answer in the web, it looks the negative Height is
indicate the bottom-up bitmap. The imageSynth will create a bottom-up
frame data to fill into the mapping buffer of the stream queue. But my
PCI device can generate only top-down video. And I don't want to use
CPU to flip the video data. Is there any way to fix this problem?
I ever tried to return my pin's descriptor VideoInfoHeader in
the IntersectHandler routine. If can pass the pin connection with
negative Height value and the video is correct showing. But the
negative Height setting will cause black display in YUY2 format when
use AMCAP to preview. Any response is appreciated!
Best regards
Jerry Pan