cDevice::GrabImage() now returns a pointer to the image in memory; cDevice::GrabImageFile() grabs the image to a file

This commit is contained in:
Klaus Schmidinger
2005-12-29 14:51:59 +01:00
parent 5f7df33b1c
commit cb428520e6
6 changed files with 106 additions and 81 deletions

View File

@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
* $Id: svdrp.c 1.85 2005/12/29 12:17:27 kls Exp $
* $Id: svdrp.c 1.86 2005/12/29 13:33:43 kls Exp $
*/
#include "svdrp.h"
@@ -711,7 +711,7 @@ void cSVDRP::CmdGRAB(const char *Option)
Reply(501, "Unexpected parameter \"%s\"", p);
return;
}
if (cDevice::PrimaryDevice()->GrabImage(FileName, Jpeg, Quality, SizeX, SizeY))
if (cDevice::PrimaryDevice()->GrabImageFile(FileName, Jpeg, Quality, SizeX, SizeY))
Reply(250, "Grabbed image %s", Option);
else
Reply(451, "Grab image failed");