月柱癸卯代表什么:根据API函数如何取得数据?

来源:百度文库 编辑:高校问答 时间:2024/05/04 08:42:53
API函数如下定义:
CAMLINKAPI BOOL CAMLINK_GetRGBBits (
DWORD dwSlot,
WORD wBitCount,
LPBYTE pBits,
WORD wWidth,
WORD wHeight
);
其他参数应该没问题,就是pBits的问题,我想请问如何来处理这个参数LPBYTE pBits,这是个出口参数,指向数据的指针.
pBits
[out] pointer to a valid buffer that receives the RGB bit values read from the camera driver.
This buffer should equal or larger than ( wBitCount / 8 * wWidth * wHeight * sizeof(BYTE) ).
我的大小是3*320*240,这个问题我搞了很久了,请指教:)

buffer需要大于3*320*240*8