我想根据MSDN读写AVI Stream的代码写自己的AVI色彩深度转换程序。http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_avistreamread.asp
for (lStreamSize = AVIStreamStart(ps); lStreamSize <
AVIStreamEnd(ps); lStreamSize++) {
hr = AVIStreamRead(ps, lStreamSize, 1, lpOld, bi.biSizeImage,
NULL, NULL);
// Do something with the data and write it to lpNew buffer.
// Save the compressed data using AVIStreamWrite.
hr = AVIStreamWrite(psSmall, lStreamSize, 1, lpNew,
biNew.biSizeImage, AVIIF_KEYFRAME, NULL, NULL);
}
举例从24bit专为16bit,请问这段代码里面Do something with the data and write it to lpNew buffer.需要做什么?
最后十分了,不好意思。
顶
小龙淫怎么也跑这来?
没听说过用WM SDK可以直接转换色彩空间。
Windows系统自带有个Filter倒是可以转换。
是的。要用DX
呵呵
那等高人来解释吧
我一旁听着学习:)