Write a question that Transform Filter encountered (2)

zhaozj2021-02-16  62

HRESULT CHECKTRANSFORM (const cmediatype * mtin, const cmediatype * mtout) {

..memcmp (& pinput-> bmiheader, & poutput-> bmiheader, sizeof (bitmapinfoheader); // orthodontics, huh

}

CheckTransform first call

Pinput-> Bmiheader and Poutput-> BMIHeader content is the same

But again, it will become the three members of BIWIDTH BIHEIGHT BisizeImage.

It should be the next level of Filter's Input PIN modification (here is Video Render)

What did you learn? Familiar with DirectShow's working mode as much as possible to understand its way, you can't want to be of course

转载请注明原文地址:https://www.9cbs.com/read-18050.html

New Post(0)