AVI色彩深度转换的问题
我想根据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.需要做什么?
问题点数:20、回复次数:3Top
1 楼dirdirdir3(风)回复于 2005-08-01 18:25:55 得分 10
逐个点把24位的数据转化为16位数据Top
2 楼Eastunfail(龍子龍孫) (Serpent's Embrace)回复于 2005-08-01 18:36:35 得分 10
顶~~~~Top
3 楼trademark2004()回复于 2005-08-01 18:43:28 得分 0
能详细的讲讲吗?Top




