如何实时缩放视频的大小,注意是视频的放大和缩小
各位大虾:
我在C++ Builder中用摄像头捕获了视频,
想求解:如何实时缩放视频的大小??????
先谢了!
捕获代码:
void __fastcall TcamaraForm::FormCreate(TObject *Sender)
{
char szDeviceName[80];
char szDeviceVersion[80];
int nDeviceFount(0);
for(int nIndex=0;nIndex<10;nIndex++)
{
if(capGetDriverDescription(nIndex,szDeviceName,sizeof(szDeviceName),szDeviceVersion,size(szDeviceVersion)))
{
ComboBox1->Items->Add(szDeviceName);
}
}
if(ComboBox1->Items->Count>0)
ComboBox1->ItemIndex=0;
else
{
ShowMessage("没有找到视频软件");
}
hWndC = capCreateCaptureWindow (TEXT("My Capture Window"),WS_CHILD | WS_VISIBLE,0, 0, 640, 480,(HWND) Panel1->Handle,ComboBox1->ItemIndex+1);
capDriverConnect(hWndC,0);
capPreviewRate(hWndC, 50);
capPreview(hWndC, TRUE);
}
[解决办法]
看这个
http://www.cppfans.com/d_cpp_source/BcbPlayCap.asp